{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.CostAndUsageReport.Types.ReportVersioning
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.CostAndUsageReport.Types.ReportVersioning
  ( ReportVersioning
      ( ..,
        ReportVersioning_CREATE_NEW_REPORT,
        ReportVersioning_OVERWRITE_REPORT
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

newtype ReportVersioning = ReportVersioning'
  { ReportVersioning -> Text
fromReportVersioning ::
      Core.Text
  }
  deriving stock
    ( Int -> ReportVersioning -> ShowS
[ReportVersioning] -> ShowS
ReportVersioning -> String
(Int -> ReportVersioning -> ShowS)
-> (ReportVersioning -> String)
-> ([ReportVersioning] -> ShowS)
-> Show ReportVersioning
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]
(Int -> ReadS ReportVersioning)
-> ReadS [ReportVersioning]
-> ReadPrec ReportVersioning
-> ReadPrec [ReportVersioning]
-> Read 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
(ReportVersioning -> ReportVersioning -> Bool)
-> (ReportVersioning -> ReportVersioning -> Bool)
-> Eq ReportVersioning
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
Eq ReportVersioning
-> (ReportVersioning -> ReportVersioning -> Ordering)
-> (ReportVersioning -> ReportVersioning -> Bool)
-> (ReportVersioning -> ReportVersioning -> Bool)
-> (ReportVersioning -> ReportVersioning -> Bool)
-> (ReportVersioning -> ReportVersioning -> Bool)
-> (ReportVersioning -> ReportVersioning -> ReportVersioning)
-> (ReportVersioning -> ReportVersioning -> ReportVersioning)
-> Ord 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
$cp1Ord :: Eq ReportVersioning
Prelude.Ord,
      (forall x. ReportVersioning -> Rep ReportVersioning x)
-> (forall x. Rep ReportVersioning x -> ReportVersioning)
-> Generic ReportVersioning
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
    ( Int -> ReportVersioning -> Int
ReportVersioning -> Int
(Int -> ReportVersioning -> Int)
-> (ReportVersioning -> Int) -> Hashable ReportVersioning
forall 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 -> ()
(ReportVersioning -> ()) -> NFData ReportVersioning
forall a. (a -> ()) -> NFData a
rnf :: ReportVersioning -> ()
$crnf :: ReportVersioning -> ()
Prelude.NFData,
      Text -> Either String ReportVersioning
(Text -> Either String ReportVersioning)
-> FromText ReportVersioning
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ReportVersioning
$cfromText :: Text -> Either String ReportVersioning
Core.FromText,
      ReportVersioning -> Text
(ReportVersioning -> Text) -> ToText ReportVersioning
forall a. (a -> Text) -> ToText a
toText :: ReportVersioning -> Text
$ctoText :: ReportVersioning -> Text
Core.ToText,
      ReportVersioning -> ByteString
(ReportVersioning -> ByteString) -> ToByteString ReportVersioning
forall a. (a -> ByteString) -> ToByteString a
toBS :: ReportVersioning -> ByteString
$ctoBS :: ReportVersioning -> ByteString
Core.ToByteString,
      ReportVersioning -> ByteStringBuilder
(ReportVersioning -> ByteStringBuilder) -> ToLog ReportVersioning
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ReportVersioning -> ByteStringBuilder
$cbuild :: ReportVersioning -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ReportVersioning -> [Header]
(HeaderName -> ReportVersioning -> [Header])
-> ToHeader ReportVersioning
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ReportVersioning -> [Header]
$ctoHeader :: HeaderName -> ReportVersioning -> [Header]
Core.ToHeader,
      ReportVersioning -> QueryString
(ReportVersioning -> QueryString) -> ToQuery ReportVersioning
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ReportVersioning -> QueryString
$ctoQuery :: ReportVersioning -> QueryString
Core.ToQuery,
      Value -> Parser [ReportVersioning]
Value -> Parser ReportVersioning
(Value -> Parser ReportVersioning)
-> (Value -> Parser [ReportVersioning])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ReportVersioning]
FromJSONKeyFunction ReportVersioning
FromJSONKeyFunction ReportVersioning
-> FromJSONKeyFunction [ReportVersioning]
-> FromJSONKey ReportVersioning
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ReportVersioning]
$cfromJSONKeyList :: FromJSONKeyFunction [ReportVersioning]
fromJSONKey :: FromJSONKeyFunction ReportVersioning
$cfromJSONKey :: FromJSONKeyFunction ReportVersioning
Core.FromJSONKey,
      [ReportVersioning] -> Encoding
[ReportVersioning] -> Value
ReportVersioning -> Encoding
ReportVersioning -> Value
(ReportVersioning -> Value)
-> (ReportVersioning -> Encoding)
-> ([ReportVersioning] -> Value)
-> ([ReportVersioning] -> Encoding)
-> ToJSON ReportVersioning
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
Core.ToJSON,
      ToJSONKeyFunction [ReportVersioning]
ToJSONKeyFunction ReportVersioning
ToJSONKeyFunction ReportVersioning
-> ToJSONKeyFunction [ReportVersioning]
-> ToJSONKey ReportVersioning
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ReportVersioning]
$ctoJSONKeyList :: ToJSONKeyFunction [ReportVersioning]
toJSONKey :: ToJSONKeyFunction ReportVersioning
$ctoJSONKey :: ToJSONKeyFunction ReportVersioning
Core.ToJSONKey,
      [Node] -> Either String ReportVersioning
([Node] -> Either String ReportVersioning)
-> FromXML ReportVersioning
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ReportVersioning
$cparseXML :: [Node] -> Either String ReportVersioning
Core.FromXML,
      ReportVersioning -> XML
(ReportVersioning -> XML) -> ToXML ReportVersioning
forall a. (a -> XML) -> ToXML a
toXML :: ReportVersioning -> XML
$ctoXML :: ReportVersioning -> XML
Core.ToXML
    )

pattern ReportVersioning_CREATE_NEW_REPORT :: ReportVersioning
pattern $bReportVersioning_CREATE_NEW_REPORT :: ReportVersioning
$mReportVersioning_CREATE_NEW_REPORT :: forall r. ReportVersioning -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> r) -> r
ReportVersioning_OVERWRITE_REPORT = ReportVersioning' "OVERWRITE_REPORT"

{-# COMPLETE
  ReportVersioning_CREATE_NEW_REPORT,
  ReportVersioning_OVERWRITE_REPORT,
  ReportVersioning'
  #-}