{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.CognitoIdentityProvider.Types.TimeUnitsType
( TimeUnitsType
( ..,
TimeUnitsType_Days,
TimeUnitsType_Hours,
TimeUnitsType_Minutes,
TimeUnitsType_Seconds
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype TimeUnitsType = TimeUnitsType'
{ TimeUnitsType -> Text
fromTimeUnitsType ::
Data.Text
}
deriving stock
( Int -> TimeUnitsType -> ShowS
[TimeUnitsType] -> ShowS
TimeUnitsType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TimeUnitsType] -> ShowS
$cshowList :: [TimeUnitsType] -> ShowS
show :: TimeUnitsType -> String
$cshow :: TimeUnitsType -> String
showsPrec :: Int -> TimeUnitsType -> ShowS
$cshowsPrec :: Int -> TimeUnitsType -> ShowS
Prelude.Show,
ReadPrec [TimeUnitsType]
ReadPrec TimeUnitsType
Int -> ReadS TimeUnitsType
ReadS [TimeUnitsType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TimeUnitsType]
$creadListPrec :: ReadPrec [TimeUnitsType]
readPrec :: ReadPrec TimeUnitsType
$creadPrec :: ReadPrec TimeUnitsType
readList :: ReadS [TimeUnitsType]
$creadList :: ReadS [TimeUnitsType]
readsPrec :: Int -> ReadS TimeUnitsType
$creadsPrec :: Int -> ReadS TimeUnitsType
Prelude.Read,
TimeUnitsType -> TimeUnitsType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TimeUnitsType -> TimeUnitsType -> Bool
$c/= :: TimeUnitsType -> TimeUnitsType -> Bool
== :: TimeUnitsType -> TimeUnitsType -> Bool
$c== :: TimeUnitsType -> TimeUnitsType -> Bool
Prelude.Eq,
Eq TimeUnitsType
TimeUnitsType -> TimeUnitsType -> Bool
TimeUnitsType -> TimeUnitsType -> Ordering
TimeUnitsType -> TimeUnitsType -> TimeUnitsType
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 :: TimeUnitsType -> TimeUnitsType -> TimeUnitsType
$cmin :: TimeUnitsType -> TimeUnitsType -> TimeUnitsType
max :: TimeUnitsType -> TimeUnitsType -> TimeUnitsType
$cmax :: TimeUnitsType -> TimeUnitsType -> TimeUnitsType
>= :: TimeUnitsType -> TimeUnitsType -> Bool
$c>= :: TimeUnitsType -> TimeUnitsType -> Bool
> :: TimeUnitsType -> TimeUnitsType -> Bool
$c> :: TimeUnitsType -> TimeUnitsType -> Bool
<= :: TimeUnitsType -> TimeUnitsType -> Bool
$c<= :: TimeUnitsType -> TimeUnitsType -> Bool
< :: TimeUnitsType -> TimeUnitsType -> Bool
$c< :: TimeUnitsType -> TimeUnitsType -> Bool
compare :: TimeUnitsType -> TimeUnitsType -> Ordering
$ccompare :: TimeUnitsType -> TimeUnitsType -> Ordering
Prelude.Ord,
forall x. Rep TimeUnitsType x -> TimeUnitsType
forall x. TimeUnitsType -> Rep TimeUnitsType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep TimeUnitsType x -> TimeUnitsType
$cfrom :: forall x. TimeUnitsType -> Rep TimeUnitsType x
Prelude.Generic
)
deriving newtype
( Eq TimeUnitsType
Int -> TimeUnitsType -> Int
TimeUnitsType -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: TimeUnitsType -> Int
$chash :: TimeUnitsType -> Int
hashWithSalt :: Int -> TimeUnitsType -> Int
$chashWithSalt :: Int -> TimeUnitsType -> Int
Prelude.Hashable,
TimeUnitsType -> ()
forall a. (a -> ()) -> NFData a
rnf :: TimeUnitsType -> ()
$crnf :: TimeUnitsType -> ()
Prelude.NFData,
Text -> Either String TimeUnitsType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String TimeUnitsType
$cfromText :: Text -> Either String TimeUnitsType
Data.FromText,
TimeUnitsType -> Text
forall a. (a -> Text) -> ToText a
toText :: TimeUnitsType -> Text
$ctoText :: TimeUnitsType -> Text
Data.ToText,
TimeUnitsType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: TimeUnitsType -> ByteString
$ctoBS :: TimeUnitsType -> ByteString
Data.ToByteString,
TimeUnitsType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: TimeUnitsType -> ByteStringBuilder
$cbuild :: TimeUnitsType -> ByteStringBuilder
Data.ToLog,
HeaderName -> TimeUnitsType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> TimeUnitsType -> [Header]
$ctoHeader :: HeaderName -> TimeUnitsType -> [Header]
Data.ToHeader,
TimeUnitsType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: TimeUnitsType -> QueryString
$ctoQuery :: TimeUnitsType -> QueryString
Data.ToQuery,
Value -> Parser [TimeUnitsType]
Value -> Parser TimeUnitsType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [TimeUnitsType]
$cparseJSONList :: Value -> Parser [TimeUnitsType]
parseJSON :: Value -> Parser TimeUnitsType
$cparseJSON :: Value -> Parser TimeUnitsType
Data.FromJSON,
FromJSONKeyFunction [TimeUnitsType]
FromJSONKeyFunction TimeUnitsType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [TimeUnitsType]
$cfromJSONKeyList :: FromJSONKeyFunction [TimeUnitsType]
fromJSONKey :: FromJSONKeyFunction TimeUnitsType
$cfromJSONKey :: FromJSONKeyFunction TimeUnitsType
Data.FromJSONKey,
[TimeUnitsType] -> Encoding
[TimeUnitsType] -> Value
TimeUnitsType -> Encoding
TimeUnitsType -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [TimeUnitsType] -> Encoding
$ctoEncodingList :: [TimeUnitsType] -> Encoding
toJSONList :: [TimeUnitsType] -> Value
$ctoJSONList :: [TimeUnitsType] -> Value
toEncoding :: TimeUnitsType -> Encoding
$ctoEncoding :: TimeUnitsType -> Encoding
toJSON :: TimeUnitsType -> Value
$ctoJSON :: TimeUnitsType -> Value
Data.ToJSON,
ToJSONKeyFunction [TimeUnitsType]
ToJSONKeyFunction TimeUnitsType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [TimeUnitsType]
$ctoJSONKeyList :: ToJSONKeyFunction [TimeUnitsType]
toJSONKey :: ToJSONKeyFunction TimeUnitsType
$ctoJSONKey :: ToJSONKeyFunction TimeUnitsType
Data.ToJSONKey,
[Node] -> Either String TimeUnitsType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String TimeUnitsType
$cparseXML :: [Node] -> Either String TimeUnitsType
Data.FromXML,
TimeUnitsType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: TimeUnitsType -> XML
$ctoXML :: TimeUnitsType -> XML
Data.ToXML
)
pattern TimeUnitsType_Days :: TimeUnitsType
pattern $bTimeUnitsType_Days :: TimeUnitsType
$mTimeUnitsType_Days :: forall {r}. TimeUnitsType -> ((# #) -> r) -> ((# #) -> r) -> r
TimeUnitsType_Days = TimeUnitsType' "days"
pattern TimeUnitsType_Hours :: TimeUnitsType
pattern $bTimeUnitsType_Hours :: TimeUnitsType
$mTimeUnitsType_Hours :: forall {r}. TimeUnitsType -> ((# #) -> r) -> ((# #) -> r) -> r
TimeUnitsType_Hours = TimeUnitsType' "hours"
pattern TimeUnitsType_Minutes :: TimeUnitsType
pattern $bTimeUnitsType_Minutes :: TimeUnitsType
$mTimeUnitsType_Minutes :: forall {r}. TimeUnitsType -> ((# #) -> r) -> ((# #) -> r) -> r
TimeUnitsType_Minutes = TimeUnitsType' "minutes"
pattern TimeUnitsType_Seconds :: TimeUnitsType
pattern $bTimeUnitsType_Seconds :: TimeUnitsType
$mTimeUnitsType_Seconds :: forall {r}. TimeUnitsType -> ((# #) -> r) -> ((# #) -> r) -> r
TimeUnitsType_Seconds = TimeUnitsType' "seconds"
{-# COMPLETE
TimeUnitsType_Days,
TimeUnitsType_Hours,
TimeUnitsType_Minutes,
TimeUnitsType_Seconds,
TimeUnitsType'
#-}