{-# 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.CognitoIdentityProvider.Types.VerifySoftwareTokenResponseType
-- 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.CognitoIdentityProvider.Types.VerifySoftwareTokenResponseType
  ( VerifySoftwareTokenResponseType
      ( ..,
        VerifySoftwareTokenResponseType_ERROR,
        VerifySoftwareTokenResponseType_SUCCESS
      ),
  )
where

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

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

pattern VerifySoftwareTokenResponseType_ERROR :: VerifySoftwareTokenResponseType
pattern $bVerifySoftwareTokenResponseType_ERROR :: VerifySoftwareTokenResponseType
$mVerifySoftwareTokenResponseType_ERROR :: forall {r}.
VerifySoftwareTokenResponseType
-> ((# #) -> r) -> ((# #) -> r) -> r
VerifySoftwareTokenResponseType_ERROR = VerifySoftwareTokenResponseType' "ERROR"

pattern VerifySoftwareTokenResponseType_SUCCESS :: VerifySoftwareTokenResponseType
pattern $bVerifySoftwareTokenResponseType_SUCCESS :: VerifySoftwareTokenResponseType
$mVerifySoftwareTokenResponseType_SUCCESS :: forall {r}.
VerifySoftwareTokenResponseType
-> ((# #) -> r) -> ((# #) -> r) -> r
VerifySoftwareTokenResponseType_SUCCESS = VerifySoftwareTokenResponseType' "SUCCESS"

{-# COMPLETE
  VerifySoftwareTokenResponseType_ERROR,
  VerifySoftwareTokenResponseType_SUCCESS,
  VerifySoftwareTokenResponseType'
  #-}