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