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

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

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

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

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

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