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