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