{-# 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.DeviceRememberedStatusType
-- 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.DeviceRememberedStatusType
  ( DeviceRememberedStatusType
      ( ..,
        DeviceRememberedStatusType_Not_remembered,
        DeviceRememberedStatusType_Remembered
      ),
  )
where

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

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

pattern DeviceRememberedStatusType_Not_remembered :: DeviceRememberedStatusType
pattern $bDeviceRememberedStatusType_Not_remembered :: DeviceRememberedStatusType
$mDeviceRememberedStatusType_Not_remembered :: forall r.
DeviceRememberedStatusType -> (Void# -> r) -> (Void# -> r) -> r
DeviceRememberedStatusType_Not_remembered = DeviceRememberedStatusType' "not_remembered"

pattern DeviceRememberedStatusType_Remembered :: DeviceRememberedStatusType
pattern $bDeviceRememberedStatusType_Remembered :: DeviceRememberedStatusType
$mDeviceRememberedStatusType_Remembered :: forall r.
DeviceRememberedStatusType -> (Void# -> r) -> (Void# -> r) -> r
DeviceRememberedStatusType_Remembered = DeviceRememberedStatusType' "remembered"

{-# COMPLETE
  DeviceRememberedStatusType_Not_remembered,
  DeviceRememberedStatusType_Remembered,
  DeviceRememberedStatusType'
  #-}