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