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

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

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

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

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

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