{-# 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.AlexaBusiness.Types.RequirePin
-- 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.AlexaBusiness.Types.RequirePin
  ( RequirePin
      ( ..,
        RequirePin_NO,
        RequirePin_OPTIONAL,
        RequirePin_YES
      ),
  )
where

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

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

pattern RequirePin_NO :: RequirePin
pattern $bRequirePin_NO :: RequirePin
$mRequirePin_NO :: forall r. RequirePin -> (Void# -> r) -> (Void# -> r) -> r
RequirePin_NO = RequirePin' "NO"

pattern RequirePin_OPTIONAL :: RequirePin
pattern $bRequirePin_OPTIONAL :: RequirePin
$mRequirePin_OPTIONAL :: forall r. RequirePin -> (Void# -> r) -> (Void# -> r) -> r
RequirePin_OPTIONAL = RequirePin' "OPTIONAL"

pattern RequirePin_YES :: RequirePin
pattern $bRequirePin_YES :: RequirePin
$mRequirePin_YES :: forall r. RequirePin -> (Void# -> r) -> (Void# -> r) -> r
RequirePin_YES = RequirePin' "YES"

{-# COMPLETE
  RequirePin_NO,
  RequirePin_OPTIONAL,
  RequirePin_YES,
  RequirePin'
  #-}