{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Data as Data
import qualified Amazonka.Prelude as Prelude

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

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

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

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