{-# 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.AmplifyBackend.Types.AdditionalConstraintsElement
-- 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.AmplifyBackend.Types.AdditionalConstraintsElement
  ( AdditionalConstraintsElement
      ( ..,
        AdditionalConstraintsElement_REQUIRE_DIGIT,
        AdditionalConstraintsElement_REQUIRE_LOWERCASE,
        AdditionalConstraintsElement_REQUIRE_SYMBOL,
        AdditionalConstraintsElement_REQUIRE_UPPERCASE
      ),
  )
where

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

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

pattern AdditionalConstraintsElement_REQUIRE_DIGIT :: AdditionalConstraintsElement
pattern $bAdditionalConstraintsElement_REQUIRE_DIGIT :: AdditionalConstraintsElement
$mAdditionalConstraintsElement_REQUIRE_DIGIT :: forall r.
AdditionalConstraintsElement -> (Void# -> r) -> (Void# -> r) -> r
AdditionalConstraintsElement_REQUIRE_DIGIT = AdditionalConstraintsElement' "REQUIRE_DIGIT"

pattern AdditionalConstraintsElement_REQUIRE_LOWERCASE :: AdditionalConstraintsElement
pattern $bAdditionalConstraintsElement_REQUIRE_LOWERCASE :: AdditionalConstraintsElement
$mAdditionalConstraintsElement_REQUIRE_LOWERCASE :: forall r.
AdditionalConstraintsElement -> (Void# -> r) -> (Void# -> r) -> r
AdditionalConstraintsElement_REQUIRE_LOWERCASE = AdditionalConstraintsElement' "REQUIRE_LOWERCASE"

pattern AdditionalConstraintsElement_REQUIRE_SYMBOL :: AdditionalConstraintsElement
pattern $bAdditionalConstraintsElement_REQUIRE_SYMBOL :: AdditionalConstraintsElement
$mAdditionalConstraintsElement_REQUIRE_SYMBOL :: forall r.
AdditionalConstraintsElement -> (Void# -> r) -> (Void# -> r) -> r
AdditionalConstraintsElement_REQUIRE_SYMBOL = AdditionalConstraintsElement' "REQUIRE_SYMBOL"

pattern AdditionalConstraintsElement_REQUIRE_UPPERCASE :: AdditionalConstraintsElement
pattern $bAdditionalConstraintsElement_REQUIRE_UPPERCASE :: AdditionalConstraintsElement
$mAdditionalConstraintsElement_REQUIRE_UPPERCASE :: forall r.
AdditionalConstraintsElement -> (Void# -> r) -> (Void# -> r) -> r
AdditionalConstraintsElement_REQUIRE_UPPERCASE = AdditionalConstraintsElement' "REQUIRE_UPPERCASE"

{-# COMPLETE
  AdditionalConstraintsElement_REQUIRE_DIGIT,
  AdditionalConstraintsElement_REQUIRE_LOWERCASE,
  AdditionalConstraintsElement_REQUIRE_SYMBOL,
  AdditionalConstraintsElement_REQUIRE_UPPERCASE,
  AdditionalConstraintsElement'
  #-}