{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.CertificateManagerPCA.Types.ValidityPeriodType
( ValidityPeriodType
( ..,
ValidityPeriodType_ABSOLUTE,
ValidityPeriodType_DAYS,
ValidityPeriodType_END_DATE,
ValidityPeriodType_MONTHS,
ValidityPeriodType_YEARS
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ValidityPeriodType = ValidityPeriodType'
{ ValidityPeriodType -> Text
fromValidityPeriodType ::
Core.Text
}
deriving stock
( Int -> ValidityPeriodType -> ShowS
[ValidityPeriodType] -> ShowS
ValidityPeriodType -> String
(Int -> ValidityPeriodType -> ShowS)
-> (ValidityPeriodType -> String)
-> ([ValidityPeriodType] -> ShowS)
-> Show ValidityPeriodType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ValidityPeriodType] -> ShowS
$cshowList :: [ValidityPeriodType] -> ShowS
show :: ValidityPeriodType -> String
$cshow :: ValidityPeriodType -> String
showsPrec :: Int -> ValidityPeriodType -> ShowS
$cshowsPrec :: Int -> ValidityPeriodType -> ShowS
Prelude.Show,
ReadPrec [ValidityPeriodType]
ReadPrec ValidityPeriodType
Int -> ReadS ValidityPeriodType
ReadS [ValidityPeriodType]
(Int -> ReadS ValidityPeriodType)
-> ReadS [ValidityPeriodType]
-> ReadPrec ValidityPeriodType
-> ReadPrec [ValidityPeriodType]
-> Read ValidityPeriodType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ValidityPeriodType]
$creadListPrec :: ReadPrec [ValidityPeriodType]
readPrec :: ReadPrec ValidityPeriodType
$creadPrec :: ReadPrec ValidityPeriodType
readList :: ReadS [ValidityPeriodType]
$creadList :: ReadS [ValidityPeriodType]
readsPrec :: Int -> ReadS ValidityPeriodType
$creadsPrec :: Int -> ReadS ValidityPeriodType
Prelude.Read,
ValidityPeriodType -> ValidityPeriodType -> Bool
(ValidityPeriodType -> ValidityPeriodType -> Bool)
-> (ValidityPeriodType -> ValidityPeriodType -> Bool)
-> Eq ValidityPeriodType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ValidityPeriodType -> ValidityPeriodType -> Bool
$c/= :: ValidityPeriodType -> ValidityPeriodType -> Bool
== :: ValidityPeriodType -> ValidityPeriodType -> Bool
$c== :: ValidityPeriodType -> ValidityPeriodType -> Bool
Prelude.Eq,
Eq ValidityPeriodType
Eq ValidityPeriodType
-> (ValidityPeriodType -> ValidityPeriodType -> Ordering)
-> (ValidityPeriodType -> ValidityPeriodType -> Bool)
-> (ValidityPeriodType -> ValidityPeriodType -> Bool)
-> (ValidityPeriodType -> ValidityPeriodType -> Bool)
-> (ValidityPeriodType -> ValidityPeriodType -> Bool)
-> (ValidityPeriodType -> ValidityPeriodType -> ValidityPeriodType)
-> (ValidityPeriodType -> ValidityPeriodType -> ValidityPeriodType)
-> Ord ValidityPeriodType
ValidityPeriodType -> ValidityPeriodType -> Bool
ValidityPeriodType -> ValidityPeriodType -> Ordering
ValidityPeriodType -> ValidityPeriodType -> ValidityPeriodType
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 :: ValidityPeriodType -> ValidityPeriodType -> ValidityPeriodType
$cmin :: ValidityPeriodType -> ValidityPeriodType -> ValidityPeriodType
max :: ValidityPeriodType -> ValidityPeriodType -> ValidityPeriodType
$cmax :: ValidityPeriodType -> ValidityPeriodType -> ValidityPeriodType
>= :: ValidityPeriodType -> ValidityPeriodType -> Bool
$c>= :: ValidityPeriodType -> ValidityPeriodType -> Bool
> :: ValidityPeriodType -> ValidityPeriodType -> Bool
$c> :: ValidityPeriodType -> ValidityPeriodType -> Bool
<= :: ValidityPeriodType -> ValidityPeriodType -> Bool
$c<= :: ValidityPeriodType -> ValidityPeriodType -> Bool
< :: ValidityPeriodType -> ValidityPeriodType -> Bool
$c< :: ValidityPeriodType -> ValidityPeriodType -> Bool
compare :: ValidityPeriodType -> ValidityPeriodType -> Ordering
$ccompare :: ValidityPeriodType -> ValidityPeriodType -> Ordering
$cp1Ord :: Eq ValidityPeriodType
Prelude.Ord,
(forall x. ValidityPeriodType -> Rep ValidityPeriodType x)
-> (forall x. Rep ValidityPeriodType x -> ValidityPeriodType)
-> Generic ValidityPeriodType
forall x. Rep ValidityPeriodType x -> ValidityPeriodType
forall x. ValidityPeriodType -> Rep ValidityPeriodType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ValidityPeriodType x -> ValidityPeriodType
$cfrom :: forall x. ValidityPeriodType -> Rep ValidityPeriodType x
Prelude.Generic
)
deriving newtype
( Int -> ValidityPeriodType -> Int
ValidityPeriodType -> Int
(Int -> ValidityPeriodType -> Int)
-> (ValidityPeriodType -> Int) -> Hashable ValidityPeriodType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ValidityPeriodType -> Int
$chash :: ValidityPeriodType -> Int
hashWithSalt :: Int -> ValidityPeriodType -> Int
$chashWithSalt :: Int -> ValidityPeriodType -> Int
Prelude.Hashable,
ValidityPeriodType -> ()
(ValidityPeriodType -> ()) -> NFData ValidityPeriodType
forall a. (a -> ()) -> NFData a
rnf :: ValidityPeriodType -> ()
$crnf :: ValidityPeriodType -> ()
Prelude.NFData,
Text -> Either String ValidityPeriodType
(Text -> Either String ValidityPeriodType)
-> FromText ValidityPeriodType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ValidityPeriodType
$cfromText :: Text -> Either String ValidityPeriodType
Core.FromText,
ValidityPeriodType -> Text
(ValidityPeriodType -> Text) -> ToText ValidityPeriodType
forall a. (a -> Text) -> ToText a
toText :: ValidityPeriodType -> Text
$ctoText :: ValidityPeriodType -> Text
Core.ToText,
ValidityPeriodType -> ByteString
(ValidityPeriodType -> ByteString)
-> ToByteString ValidityPeriodType
forall a. (a -> ByteString) -> ToByteString a
toBS :: ValidityPeriodType -> ByteString
$ctoBS :: ValidityPeriodType -> ByteString
Core.ToByteString,
ValidityPeriodType -> ByteStringBuilder
(ValidityPeriodType -> ByteStringBuilder)
-> ToLog ValidityPeriodType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ValidityPeriodType -> ByteStringBuilder
$cbuild :: ValidityPeriodType -> ByteStringBuilder
Core.ToLog,
HeaderName -> ValidityPeriodType -> [Header]
(HeaderName -> ValidityPeriodType -> [Header])
-> ToHeader ValidityPeriodType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ValidityPeriodType -> [Header]
$ctoHeader :: HeaderName -> ValidityPeriodType -> [Header]
Core.ToHeader,
ValidityPeriodType -> QueryString
(ValidityPeriodType -> QueryString) -> ToQuery ValidityPeriodType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ValidityPeriodType -> QueryString
$ctoQuery :: ValidityPeriodType -> QueryString
Core.ToQuery,
Value -> Parser [ValidityPeriodType]
Value -> Parser ValidityPeriodType
(Value -> Parser ValidityPeriodType)
-> (Value -> Parser [ValidityPeriodType])
-> FromJSON ValidityPeriodType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ValidityPeriodType]
$cparseJSONList :: Value -> Parser [ValidityPeriodType]
parseJSON :: Value -> Parser ValidityPeriodType
$cparseJSON :: Value -> Parser ValidityPeriodType
Core.FromJSON,
FromJSONKeyFunction [ValidityPeriodType]
FromJSONKeyFunction ValidityPeriodType
FromJSONKeyFunction ValidityPeriodType
-> FromJSONKeyFunction [ValidityPeriodType]
-> FromJSONKey ValidityPeriodType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ValidityPeriodType]
$cfromJSONKeyList :: FromJSONKeyFunction [ValidityPeriodType]
fromJSONKey :: FromJSONKeyFunction ValidityPeriodType
$cfromJSONKey :: FromJSONKeyFunction ValidityPeriodType
Core.FromJSONKey,
[ValidityPeriodType] -> Encoding
[ValidityPeriodType] -> Value
ValidityPeriodType -> Encoding
ValidityPeriodType -> Value
(ValidityPeriodType -> Value)
-> (ValidityPeriodType -> Encoding)
-> ([ValidityPeriodType] -> Value)
-> ([ValidityPeriodType] -> Encoding)
-> ToJSON ValidityPeriodType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ValidityPeriodType] -> Encoding
$ctoEncodingList :: [ValidityPeriodType] -> Encoding
toJSONList :: [ValidityPeriodType] -> Value
$ctoJSONList :: [ValidityPeriodType] -> Value
toEncoding :: ValidityPeriodType -> Encoding
$ctoEncoding :: ValidityPeriodType -> Encoding
toJSON :: ValidityPeriodType -> Value
$ctoJSON :: ValidityPeriodType -> Value
Core.ToJSON,
ToJSONKeyFunction [ValidityPeriodType]
ToJSONKeyFunction ValidityPeriodType
ToJSONKeyFunction ValidityPeriodType
-> ToJSONKeyFunction [ValidityPeriodType]
-> ToJSONKey ValidityPeriodType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ValidityPeriodType]
$ctoJSONKeyList :: ToJSONKeyFunction [ValidityPeriodType]
toJSONKey :: ToJSONKeyFunction ValidityPeriodType
$ctoJSONKey :: ToJSONKeyFunction ValidityPeriodType
Core.ToJSONKey,
[Node] -> Either String ValidityPeriodType
([Node] -> Either String ValidityPeriodType)
-> FromXML ValidityPeriodType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ValidityPeriodType
$cparseXML :: [Node] -> Either String ValidityPeriodType
Core.FromXML,
ValidityPeriodType -> XML
(ValidityPeriodType -> XML) -> ToXML ValidityPeriodType
forall a. (a -> XML) -> ToXML a
toXML :: ValidityPeriodType -> XML
$ctoXML :: ValidityPeriodType -> XML
Core.ToXML
)
pattern ValidityPeriodType_ABSOLUTE :: ValidityPeriodType
pattern $bValidityPeriodType_ABSOLUTE :: ValidityPeriodType
$mValidityPeriodType_ABSOLUTE :: forall r. ValidityPeriodType -> (Void# -> r) -> (Void# -> r) -> r
ValidityPeriodType_ABSOLUTE = ValidityPeriodType' "ABSOLUTE"
pattern ValidityPeriodType_DAYS :: ValidityPeriodType
pattern $bValidityPeriodType_DAYS :: ValidityPeriodType
$mValidityPeriodType_DAYS :: forall r. ValidityPeriodType -> (Void# -> r) -> (Void# -> r) -> r
ValidityPeriodType_DAYS = ValidityPeriodType' "DAYS"
pattern ValidityPeriodType_END_DATE :: ValidityPeriodType
pattern $bValidityPeriodType_END_DATE :: ValidityPeriodType
$mValidityPeriodType_END_DATE :: forall r. ValidityPeriodType -> (Void# -> r) -> (Void# -> r) -> r
ValidityPeriodType_END_DATE = ValidityPeriodType' "END_DATE"
pattern ValidityPeriodType_MONTHS :: ValidityPeriodType
pattern $bValidityPeriodType_MONTHS :: ValidityPeriodType
$mValidityPeriodType_MONTHS :: forall r. ValidityPeriodType -> (Void# -> r) -> (Void# -> r) -> r
ValidityPeriodType_MONTHS = ValidityPeriodType' "MONTHS"
pattern ValidityPeriodType_YEARS :: ValidityPeriodType
pattern $bValidityPeriodType_YEARS :: ValidityPeriodType
$mValidityPeriodType_YEARS :: forall r. ValidityPeriodType -> (Void# -> r) -> (Void# -> r) -> r
ValidityPeriodType_YEARS = ValidityPeriodType' "YEARS"
{-# COMPLETE
ValidityPeriodType_ABSOLUTE,
ValidityPeriodType_DAYS,
ValidityPeriodType_END_DATE,
ValidityPeriodType_MONTHS,
ValidityPeriodType_YEARS,
ValidityPeriodType'
#-}