{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.DLM.Types.SettablePolicyStateValues
( SettablePolicyStateValues
( ..,
SettablePolicyStateValues_DISABLED,
SettablePolicyStateValues_ENABLED
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype SettablePolicyStateValues = SettablePolicyStateValues'
{ SettablePolicyStateValues -> Text
fromSettablePolicyStateValues ::
Data.Text
}
deriving stock
( Int -> SettablePolicyStateValues -> ShowS
[SettablePolicyStateValues] -> ShowS
SettablePolicyStateValues -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SettablePolicyStateValues] -> ShowS
$cshowList :: [SettablePolicyStateValues] -> ShowS
show :: SettablePolicyStateValues -> String
$cshow :: SettablePolicyStateValues -> String
showsPrec :: Int -> SettablePolicyStateValues -> ShowS
$cshowsPrec :: Int -> SettablePolicyStateValues -> ShowS
Prelude.Show,
ReadPrec [SettablePolicyStateValues]
ReadPrec SettablePolicyStateValues
Int -> ReadS SettablePolicyStateValues
ReadS [SettablePolicyStateValues]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SettablePolicyStateValues]
$creadListPrec :: ReadPrec [SettablePolicyStateValues]
readPrec :: ReadPrec SettablePolicyStateValues
$creadPrec :: ReadPrec SettablePolicyStateValues
readList :: ReadS [SettablePolicyStateValues]
$creadList :: ReadS [SettablePolicyStateValues]
readsPrec :: Int -> ReadS SettablePolicyStateValues
$creadsPrec :: Int -> ReadS SettablePolicyStateValues
Prelude.Read,
SettablePolicyStateValues -> SettablePolicyStateValues -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SettablePolicyStateValues -> SettablePolicyStateValues -> Bool
$c/= :: SettablePolicyStateValues -> SettablePolicyStateValues -> Bool
== :: SettablePolicyStateValues -> SettablePolicyStateValues -> Bool
$c== :: SettablePolicyStateValues -> SettablePolicyStateValues -> Bool
Prelude.Eq,
Eq SettablePolicyStateValues
SettablePolicyStateValues -> SettablePolicyStateValues -> Bool
SettablePolicyStateValues -> SettablePolicyStateValues -> Ordering
SettablePolicyStateValues
-> SettablePolicyStateValues -> SettablePolicyStateValues
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 :: SettablePolicyStateValues
-> SettablePolicyStateValues -> SettablePolicyStateValues
$cmin :: SettablePolicyStateValues
-> SettablePolicyStateValues -> SettablePolicyStateValues
max :: SettablePolicyStateValues
-> SettablePolicyStateValues -> SettablePolicyStateValues
$cmax :: SettablePolicyStateValues
-> SettablePolicyStateValues -> SettablePolicyStateValues
>= :: SettablePolicyStateValues -> SettablePolicyStateValues -> Bool
$c>= :: SettablePolicyStateValues -> SettablePolicyStateValues -> Bool
> :: SettablePolicyStateValues -> SettablePolicyStateValues -> Bool
$c> :: SettablePolicyStateValues -> SettablePolicyStateValues -> Bool
<= :: SettablePolicyStateValues -> SettablePolicyStateValues -> Bool
$c<= :: SettablePolicyStateValues -> SettablePolicyStateValues -> Bool
< :: SettablePolicyStateValues -> SettablePolicyStateValues -> Bool
$c< :: SettablePolicyStateValues -> SettablePolicyStateValues -> Bool
compare :: SettablePolicyStateValues -> SettablePolicyStateValues -> Ordering
$ccompare :: SettablePolicyStateValues -> SettablePolicyStateValues -> Ordering
Prelude.Ord,
forall x.
Rep SettablePolicyStateValues x -> SettablePolicyStateValues
forall x.
SettablePolicyStateValues -> Rep SettablePolicyStateValues x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep SettablePolicyStateValues x -> SettablePolicyStateValues
$cfrom :: forall x.
SettablePolicyStateValues -> Rep SettablePolicyStateValues x
Prelude.Generic
)
deriving newtype
( Eq SettablePolicyStateValues
Int -> SettablePolicyStateValues -> Int
SettablePolicyStateValues -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: SettablePolicyStateValues -> Int
$chash :: SettablePolicyStateValues -> Int
hashWithSalt :: Int -> SettablePolicyStateValues -> Int
$chashWithSalt :: Int -> SettablePolicyStateValues -> Int
Prelude.Hashable,
SettablePolicyStateValues -> ()
forall a. (a -> ()) -> NFData a
rnf :: SettablePolicyStateValues -> ()
$crnf :: SettablePolicyStateValues -> ()
Prelude.NFData,
Text -> Either String SettablePolicyStateValues
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String SettablePolicyStateValues
$cfromText :: Text -> Either String SettablePolicyStateValues
Data.FromText,
SettablePolicyStateValues -> Text
forall a. (a -> Text) -> ToText a
toText :: SettablePolicyStateValues -> Text
$ctoText :: SettablePolicyStateValues -> Text
Data.ToText,
SettablePolicyStateValues -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: SettablePolicyStateValues -> ByteString
$ctoBS :: SettablePolicyStateValues -> ByteString
Data.ToByteString,
SettablePolicyStateValues -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: SettablePolicyStateValues -> ByteStringBuilder
$cbuild :: SettablePolicyStateValues -> ByteStringBuilder
Data.ToLog,
HeaderName -> SettablePolicyStateValues -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> SettablePolicyStateValues -> [Header]
$ctoHeader :: HeaderName -> SettablePolicyStateValues -> [Header]
Data.ToHeader,
SettablePolicyStateValues -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: SettablePolicyStateValues -> QueryString
$ctoQuery :: SettablePolicyStateValues -> QueryString
Data.ToQuery,
Value -> Parser [SettablePolicyStateValues]
Value -> Parser SettablePolicyStateValues
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [SettablePolicyStateValues]
$cparseJSONList :: Value -> Parser [SettablePolicyStateValues]
parseJSON :: Value -> Parser SettablePolicyStateValues
$cparseJSON :: Value -> Parser SettablePolicyStateValues
Data.FromJSON,
FromJSONKeyFunction [SettablePolicyStateValues]
FromJSONKeyFunction SettablePolicyStateValues
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [SettablePolicyStateValues]
$cfromJSONKeyList :: FromJSONKeyFunction [SettablePolicyStateValues]
fromJSONKey :: FromJSONKeyFunction SettablePolicyStateValues
$cfromJSONKey :: FromJSONKeyFunction SettablePolicyStateValues
Data.FromJSONKey,
[SettablePolicyStateValues] -> Encoding
[SettablePolicyStateValues] -> Value
SettablePolicyStateValues -> Encoding
SettablePolicyStateValues -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [SettablePolicyStateValues] -> Encoding
$ctoEncodingList :: [SettablePolicyStateValues] -> Encoding
toJSONList :: [SettablePolicyStateValues] -> Value
$ctoJSONList :: [SettablePolicyStateValues] -> Value
toEncoding :: SettablePolicyStateValues -> Encoding
$ctoEncoding :: SettablePolicyStateValues -> Encoding
toJSON :: SettablePolicyStateValues -> Value
$ctoJSON :: SettablePolicyStateValues -> Value
Data.ToJSON,
ToJSONKeyFunction [SettablePolicyStateValues]
ToJSONKeyFunction SettablePolicyStateValues
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [SettablePolicyStateValues]
$ctoJSONKeyList :: ToJSONKeyFunction [SettablePolicyStateValues]
toJSONKey :: ToJSONKeyFunction SettablePolicyStateValues
$ctoJSONKey :: ToJSONKeyFunction SettablePolicyStateValues
Data.ToJSONKey,
[Node] -> Either String SettablePolicyStateValues
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String SettablePolicyStateValues
$cparseXML :: [Node] -> Either String SettablePolicyStateValues
Data.FromXML,
SettablePolicyStateValues -> XML
forall a. (a -> XML) -> ToXML a
toXML :: SettablePolicyStateValues -> XML
$ctoXML :: SettablePolicyStateValues -> XML
Data.ToXML
)
pattern SettablePolicyStateValues_DISABLED :: SettablePolicyStateValues
pattern $bSettablePolicyStateValues_DISABLED :: SettablePolicyStateValues
$mSettablePolicyStateValues_DISABLED :: forall {r}.
SettablePolicyStateValues -> ((# #) -> r) -> ((# #) -> r) -> r
SettablePolicyStateValues_DISABLED = SettablePolicyStateValues' "DISABLED"
pattern SettablePolicyStateValues_ENABLED :: SettablePolicyStateValues
pattern $bSettablePolicyStateValues_ENABLED :: SettablePolicyStateValues
$mSettablePolicyStateValues_ENABLED :: forall {r}.
SettablePolicyStateValues -> ((# #) -> r) -> ((# #) -> r) -> r
SettablePolicyStateValues_ENABLED = SettablePolicyStateValues' "ENABLED"
{-# COMPLETE
SettablePolicyStateValues_DISABLED,
SettablePolicyStateValues_ENABLED,
SettablePolicyStateValues'
#-}