{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.FMS.Types.RuleOrder
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.FMS.Types.RuleOrder
  ( RuleOrder
      ( ..,
        RuleOrder_DEFAULT_ACTION_ORDER,
        RuleOrder_STRICT_ORDER
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype RuleOrder = RuleOrder'
  { RuleOrder -> Text
fromRuleOrder ::
      Data.Text
  }
  deriving stock
    ( Int -> RuleOrder -> ShowS
[RuleOrder] -> ShowS
RuleOrder -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RuleOrder] -> ShowS
$cshowList :: [RuleOrder] -> ShowS
show :: RuleOrder -> String
$cshow :: RuleOrder -> String
showsPrec :: Int -> RuleOrder -> ShowS
$cshowsPrec :: Int -> RuleOrder -> ShowS
Prelude.Show,
      ReadPrec [RuleOrder]
ReadPrec RuleOrder
Int -> ReadS RuleOrder
ReadS [RuleOrder]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RuleOrder]
$creadListPrec :: ReadPrec [RuleOrder]
readPrec :: ReadPrec RuleOrder
$creadPrec :: ReadPrec RuleOrder
readList :: ReadS [RuleOrder]
$creadList :: ReadS [RuleOrder]
readsPrec :: Int -> ReadS RuleOrder
$creadsPrec :: Int -> ReadS RuleOrder
Prelude.Read,
      RuleOrder -> RuleOrder -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RuleOrder -> RuleOrder -> Bool
$c/= :: RuleOrder -> RuleOrder -> Bool
== :: RuleOrder -> RuleOrder -> Bool
$c== :: RuleOrder -> RuleOrder -> Bool
Prelude.Eq,
      Eq RuleOrder
RuleOrder -> RuleOrder -> Bool
RuleOrder -> RuleOrder -> Ordering
RuleOrder -> RuleOrder -> RuleOrder
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: RuleOrder -> RuleOrder -> RuleOrder
$cmin :: RuleOrder -> RuleOrder -> RuleOrder
max :: RuleOrder -> RuleOrder -> RuleOrder
$cmax :: RuleOrder -> RuleOrder -> RuleOrder
>= :: RuleOrder -> RuleOrder -> Bool
$c>= :: RuleOrder -> RuleOrder -> Bool
> :: RuleOrder -> RuleOrder -> Bool
$c> :: RuleOrder -> RuleOrder -> Bool
<= :: RuleOrder -> RuleOrder -> Bool
$c<= :: RuleOrder -> RuleOrder -> Bool
< :: RuleOrder -> RuleOrder -> Bool
$c< :: RuleOrder -> RuleOrder -> Bool
compare :: RuleOrder -> RuleOrder -> Ordering
$ccompare :: RuleOrder -> RuleOrder -> Ordering
Prelude.Ord,
      forall x. Rep RuleOrder x -> RuleOrder
forall x. RuleOrder -> Rep RuleOrder x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep RuleOrder x -> RuleOrder
$cfrom :: forall x. RuleOrder -> Rep RuleOrder x
Prelude.Generic
    )
  deriving newtype
    ( Eq RuleOrder
Int -> RuleOrder -> Int
RuleOrder -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: RuleOrder -> Int
$chash :: RuleOrder -> Int
hashWithSalt :: Int -> RuleOrder -> Int
$chashWithSalt :: Int -> RuleOrder -> Int
Prelude.Hashable,
      RuleOrder -> ()
forall a. (a -> ()) -> NFData a
rnf :: RuleOrder -> ()
$crnf :: RuleOrder -> ()
Prelude.NFData,
      Text -> Either String RuleOrder
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String RuleOrder
$cfromText :: Text -> Either String RuleOrder
Data.FromText,
      RuleOrder -> Text
forall a. (a -> Text) -> ToText a
toText :: RuleOrder -> Text
$ctoText :: RuleOrder -> Text
Data.ToText,
      RuleOrder -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: RuleOrder -> ByteString
$ctoBS :: RuleOrder -> ByteString
Data.ToByteString,
      RuleOrder -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: RuleOrder -> ByteStringBuilder
$cbuild :: RuleOrder -> ByteStringBuilder
Data.ToLog,
      HeaderName -> RuleOrder -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> RuleOrder -> [Header]
$ctoHeader :: HeaderName -> RuleOrder -> [Header]
Data.ToHeader,
      RuleOrder -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: RuleOrder -> QueryString
$ctoQuery :: RuleOrder -> QueryString
Data.ToQuery,
      Value -> Parser [RuleOrder]
Value -> Parser RuleOrder
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [RuleOrder]
$cparseJSONList :: Value -> Parser [RuleOrder]
parseJSON :: Value -> Parser RuleOrder
$cparseJSON :: Value -> Parser RuleOrder
Data.FromJSON,
      FromJSONKeyFunction [RuleOrder]
FromJSONKeyFunction RuleOrder
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [RuleOrder]
$cfromJSONKeyList :: FromJSONKeyFunction [RuleOrder]
fromJSONKey :: FromJSONKeyFunction RuleOrder
$cfromJSONKey :: FromJSONKeyFunction RuleOrder
Data.FromJSONKey,
      [RuleOrder] -> Encoding
[RuleOrder] -> Value
RuleOrder -> Encoding
RuleOrder -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [RuleOrder] -> Encoding
$ctoEncodingList :: [RuleOrder] -> Encoding
toJSONList :: [RuleOrder] -> Value
$ctoJSONList :: [RuleOrder] -> Value
toEncoding :: RuleOrder -> Encoding
$ctoEncoding :: RuleOrder -> Encoding
toJSON :: RuleOrder -> Value
$ctoJSON :: RuleOrder -> Value
Data.ToJSON,
      ToJSONKeyFunction [RuleOrder]
ToJSONKeyFunction RuleOrder
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [RuleOrder]
$ctoJSONKeyList :: ToJSONKeyFunction [RuleOrder]
toJSONKey :: ToJSONKeyFunction RuleOrder
$ctoJSONKey :: ToJSONKeyFunction RuleOrder
Data.ToJSONKey,
      [Node] -> Either String RuleOrder
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String RuleOrder
$cparseXML :: [Node] -> Either String RuleOrder
Data.FromXML,
      RuleOrder -> XML
forall a. (a -> XML) -> ToXML a
toXML :: RuleOrder -> XML
$ctoXML :: RuleOrder -> XML
Data.ToXML
    )

pattern RuleOrder_DEFAULT_ACTION_ORDER :: RuleOrder
pattern $bRuleOrder_DEFAULT_ACTION_ORDER :: RuleOrder
$mRuleOrder_DEFAULT_ACTION_ORDER :: forall {r}. RuleOrder -> ((# #) -> r) -> ((# #) -> r) -> r
RuleOrder_DEFAULT_ACTION_ORDER = RuleOrder' "DEFAULT_ACTION_ORDER"

pattern RuleOrder_STRICT_ORDER :: RuleOrder
pattern $bRuleOrder_STRICT_ORDER :: RuleOrder
$mRuleOrder_STRICT_ORDER :: forall {r}. RuleOrder -> ((# #) -> r) -> ((# #) -> r) -> r
RuleOrder_STRICT_ORDER = RuleOrder' "STRICT_ORDER"

{-# COMPLETE
  RuleOrder_DEFAULT_ACTION_ORDER,
  RuleOrder_STRICT_ORDER,
  RuleOrder'
  #-}