{-# 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.SSMContacts.Types.AcceptCodeValidation
-- 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.SSMContacts.Types.AcceptCodeValidation
  ( AcceptCodeValidation
      ( ..,
        AcceptCodeValidation_ENFORCE,
        AcceptCodeValidation_IGNORE
      ),
  )
where

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

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

pattern AcceptCodeValidation_ENFORCE :: AcceptCodeValidation
pattern $bAcceptCodeValidation_ENFORCE :: AcceptCodeValidation
$mAcceptCodeValidation_ENFORCE :: forall r. AcceptCodeValidation -> (Void# -> r) -> (Void# -> r) -> r
AcceptCodeValidation_ENFORCE = AcceptCodeValidation' "ENFORCE"

pattern AcceptCodeValidation_IGNORE :: AcceptCodeValidation
pattern $bAcceptCodeValidation_IGNORE :: AcceptCodeValidation
$mAcceptCodeValidation_IGNORE :: forall r. AcceptCodeValidation -> (Void# -> r) -> (Void# -> r) -> r
AcceptCodeValidation_IGNORE = AcceptCodeValidation' "IGNORE"

{-# COMPLETE
  AcceptCodeValidation_ENFORCE,
  AcceptCodeValidation_IGNORE,
  AcceptCodeValidation'
  #-}