{-# 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.DLM.Types.SettablePolicyStateValues
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.DLM.Types.SettablePolicyStateValues
  ( SettablePolicyStateValues
      ( ..,
        SettablePolicyStateValues_DISABLED,
        SettablePolicyStateValues_ENABLED
      ),
  )
where

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

newtype SettablePolicyStateValues = SettablePolicyStateValues'
  { SettablePolicyStateValues -> Text
fromSettablePolicyStateValues ::
      Core.Text
  }
  deriving stock
    ( Int -> SettablePolicyStateValues -> ShowS
[SettablePolicyStateValues] -> ShowS
SettablePolicyStateValues -> String
(Int -> SettablePolicyStateValues -> ShowS)
-> (SettablePolicyStateValues -> String)
-> ([SettablePolicyStateValues] -> ShowS)
-> Show SettablePolicyStateValues
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]
(Int -> ReadS SettablePolicyStateValues)
-> ReadS [SettablePolicyStateValues]
-> ReadPrec SettablePolicyStateValues
-> ReadPrec [SettablePolicyStateValues]
-> Read 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
(SettablePolicyStateValues -> SettablePolicyStateValues -> Bool)
-> (SettablePolicyStateValues -> SettablePolicyStateValues -> Bool)
-> Eq SettablePolicyStateValues
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
Eq SettablePolicyStateValues
-> (SettablePolicyStateValues
    -> SettablePolicyStateValues -> Ordering)
-> (SettablePolicyStateValues -> SettablePolicyStateValues -> Bool)
-> (SettablePolicyStateValues -> SettablePolicyStateValues -> Bool)
-> (SettablePolicyStateValues -> SettablePolicyStateValues -> Bool)
-> (SettablePolicyStateValues -> SettablePolicyStateValues -> Bool)
-> (SettablePolicyStateValues
    -> SettablePolicyStateValues -> SettablePolicyStateValues)
-> (SettablePolicyStateValues
    -> SettablePolicyStateValues -> SettablePolicyStateValues)
-> Ord 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
$cp1Ord :: Eq SettablePolicyStateValues
Prelude.Ord,
      (forall x.
 SettablePolicyStateValues -> Rep SettablePolicyStateValues x)
-> (forall x.
    Rep SettablePolicyStateValues x -> SettablePolicyStateValues)
-> Generic SettablePolicyStateValues
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
    ( Int -> SettablePolicyStateValues -> Int
SettablePolicyStateValues -> Int
(Int -> SettablePolicyStateValues -> Int)
-> (SettablePolicyStateValues -> Int)
-> Hashable SettablePolicyStateValues
forall 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 -> ()
(SettablePolicyStateValues -> ())
-> NFData SettablePolicyStateValues
forall a. (a -> ()) -> NFData a
rnf :: SettablePolicyStateValues -> ()
$crnf :: SettablePolicyStateValues -> ()
Prelude.NFData,
      Text -> Either String SettablePolicyStateValues
(Text -> Either String SettablePolicyStateValues)
-> FromText SettablePolicyStateValues
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String SettablePolicyStateValues
$cfromText :: Text -> Either String SettablePolicyStateValues
Core.FromText,
      SettablePolicyStateValues -> Text
(SettablePolicyStateValues -> Text)
-> ToText SettablePolicyStateValues
forall a. (a -> Text) -> ToText a
toText :: SettablePolicyStateValues -> Text
$ctoText :: SettablePolicyStateValues -> Text
Core.ToText,
      SettablePolicyStateValues -> ByteString
(SettablePolicyStateValues -> ByteString)
-> ToByteString SettablePolicyStateValues
forall a. (a -> ByteString) -> ToByteString a
toBS :: SettablePolicyStateValues -> ByteString
$ctoBS :: SettablePolicyStateValues -> ByteString
Core.ToByteString,
      SettablePolicyStateValues -> ByteStringBuilder
(SettablePolicyStateValues -> ByteStringBuilder)
-> ToLog SettablePolicyStateValues
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: SettablePolicyStateValues -> ByteStringBuilder
$cbuild :: SettablePolicyStateValues -> ByteStringBuilder
Core.ToLog,
      HeaderName -> SettablePolicyStateValues -> [Header]
(HeaderName -> SettablePolicyStateValues -> [Header])
-> ToHeader SettablePolicyStateValues
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> SettablePolicyStateValues -> [Header]
$ctoHeader :: HeaderName -> SettablePolicyStateValues -> [Header]
Core.ToHeader,
      SettablePolicyStateValues -> QueryString
(SettablePolicyStateValues -> QueryString)
-> ToQuery SettablePolicyStateValues
forall a. (a -> QueryString) -> ToQuery a
toQuery :: SettablePolicyStateValues -> QueryString
$ctoQuery :: SettablePolicyStateValues -> QueryString
Core.ToQuery,
      Value -> Parser [SettablePolicyStateValues]
Value -> Parser SettablePolicyStateValues
(Value -> Parser SettablePolicyStateValues)
-> (Value -> Parser [SettablePolicyStateValues])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [SettablePolicyStateValues]
FromJSONKeyFunction SettablePolicyStateValues
FromJSONKeyFunction SettablePolicyStateValues
-> FromJSONKeyFunction [SettablePolicyStateValues]
-> FromJSONKey SettablePolicyStateValues
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [SettablePolicyStateValues]
$cfromJSONKeyList :: FromJSONKeyFunction [SettablePolicyStateValues]
fromJSONKey :: FromJSONKeyFunction SettablePolicyStateValues
$cfromJSONKey :: FromJSONKeyFunction SettablePolicyStateValues
Core.FromJSONKey,
      [SettablePolicyStateValues] -> Encoding
[SettablePolicyStateValues] -> Value
SettablePolicyStateValues -> Encoding
SettablePolicyStateValues -> Value
(SettablePolicyStateValues -> Value)
-> (SettablePolicyStateValues -> Encoding)
-> ([SettablePolicyStateValues] -> Value)
-> ([SettablePolicyStateValues] -> Encoding)
-> ToJSON SettablePolicyStateValues
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
Core.ToJSON,
      ToJSONKeyFunction [SettablePolicyStateValues]
ToJSONKeyFunction SettablePolicyStateValues
ToJSONKeyFunction SettablePolicyStateValues
-> ToJSONKeyFunction [SettablePolicyStateValues]
-> ToJSONKey SettablePolicyStateValues
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [SettablePolicyStateValues]
$ctoJSONKeyList :: ToJSONKeyFunction [SettablePolicyStateValues]
toJSONKey :: ToJSONKeyFunction SettablePolicyStateValues
$ctoJSONKey :: ToJSONKeyFunction SettablePolicyStateValues
Core.ToJSONKey,
      [Node] -> Either String SettablePolicyStateValues
([Node] -> Either String SettablePolicyStateValues)
-> FromXML SettablePolicyStateValues
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String SettablePolicyStateValues
$cparseXML :: [Node] -> Either String SettablePolicyStateValues
Core.FromXML,
      SettablePolicyStateValues -> XML
(SettablePolicyStateValues -> XML)
-> ToXML SettablePolicyStateValues
forall a. (a -> XML) -> ToXML a
toXML :: SettablePolicyStateValues -> XML
$ctoXML :: SettablePolicyStateValues -> XML
Core.ToXML
    )

pattern SettablePolicyStateValues_DISABLED :: SettablePolicyStateValues
pattern $bSettablePolicyStateValues_DISABLED :: SettablePolicyStateValues
$mSettablePolicyStateValues_DISABLED :: forall r.
SettablePolicyStateValues -> (Void# -> r) -> (Void# -> r) -> r
SettablePolicyStateValues_DISABLED = SettablePolicyStateValues' "DISABLED"

pattern SettablePolicyStateValues_ENABLED :: SettablePolicyStateValues
pattern $bSettablePolicyStateValues_ENABLED :: SettablePolicyStateValues
$mSettablePolicyStateValues_ENABLED :: forall r.
SettablePolicyStateValues -> (Void# -> r) -> (Void# -> r) -> r
SettablePolicyStateValues_ENABLED = SettablePolicyStateValues' "ENABLED"

{-# COMPLETE
  SettablePolicyStateValues_DISABLED,
  SettablePolicyStateValues_ENABLED,
  SettablePolicyStateValues'
  #-}