{-# 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.ApplicationCostProfiler.Types.ReportFrequency
-- 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.ApplicationCostProfiler.Types.ReportFrequency
  ( ReportFrequency
      ( ..,
        ReportFrequency_ALL,
        ReportFrequency_DAILY,
        ReportFrequency_MONTHLY
      ),
  )
where

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

newtype ReportFrequency = ReportFrequency'
  { ReportFrequency -> Text
fromReportFrequency ::
      Core.Text
  }
  deriving stock
    ( Int -> ReportFrequency -> ShowS
[ReportFrequency] -> ShowS
ReportFrequency -> String
(Int -> ReportFrequency -> ShowS)
-> (ReportFrequency -> String)
-> ([ReportFrequency] -> ShowS)
-> Show ReportFrequency
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ReportFrequency] -> ShowS
$cshowList :: [ReportFrequency] -> ShowS
show :: ReportFrequency -> String
$cshow :: ReportFrequency -> String
showsPrec :: Int -> ReportFrequency -> ShowS
$cshowsPrec :: Int -> ReportFrequency -> ShowS
Prelude.Show,
      ReadPrec [ReportFrequency]
ReadPrec ReportFrequency
Int -> ReadS ReportFrequency
ReadS [ReportFrequency]
(Int -> ReadS ReportFrequency)
-> ReadS [ReportFrequency]
-> ReadPrec ReportFrequency
-> ReadPrec [ReportFrequency]
-> Read ReportFrequency
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ReportFrequency]
$creadListPrec :: ReadPrec [ReportFrequency]
readPrec :: ReadPrec ReportFrequency
$creadPrec :: ReadPrec ReportFrequency
readList :: ReadS [ReportFrequency]
$creadList :: ReadS [ReportFrequency]
readsPrec :: Int -> ReadS ReportFrequency
$creadsPrec :: Int -> ReadS ReportFrequency
Prelude.Read,
      ReportFrequency -> ReportFrequency -> Bool
(ReportFrequency -> ReportFrequency -> Bool)
-> (ReportFrequency -> ReportFrequency -> Bool)
-> Eq ReportFrequency
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ReportFrequency -> ReportFrequency -> Bool
$c/= :: ReportFrequency -> ReportFrequency -> Bool
== :: ReportFrequency -> ReportFrequency -> Bool
$c== :: ReportFrequency -> ReportFrequency -> Bool
Prelude.Eq,
      Eq ReportFrequency
Eq ReportFrequency
-> (ReportFrequency -> ReportFrequency -> Ordering)
-> (ReportFrequency -> ReportFrequency -> Bool)
-> (ReportFrequency -> ReportFrequency -> Bool)
-> (ReportFrequency -> ReportFrequency -> Bool)
-> (ReportFrequency -> ReportFrequency -> Bool)
-> (ReportFrequency -> ReportFrequency -> ReportFrequency)
-> (ReportFrequency -> ReportFrequency -> ReportFrequency)
-> Ord ReportFrequency
ReportFrequency -> ReportFrequency -> Bool
ReportFrequency -> ReportFrequency -> Ordering
ReportFrequency -> ReportFrequency -> ReportFrequency
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 :: ReportFrequency -> ReportFrequency -> ReportFrequency
$cmin :: ReportFrequency -> ReportFrequency -> ReportFrequency
max :: ReportFrequency -> ReportFrequency -> ReportFrequency
$cmax :: ReportFrequency -> ReportFrequency -> ReportFrequency
>= :: ReportFrequency -> ReportFrequency -> Bool
$c>= :: ReportFrequency -> ReportFrequency -> Bool
> :: ReportFrequency -> ReportFrequency -> Bool
$c> :: ReportFrequency -> ReportFrequency -> Bool
<= :: ReportFrequency -> ReportFrequency -> Bool
$c<= :: ReportFrequency -> ReportFrequency -> Bool
< :: ReportFrequency -> ReportFrequency -> Bool
$c< :: ReportFrequency -> ReportFrequency -> Bool
compare :: ReportFrequency -> ReportFrequency -> Ordering
$ccompare :: ReportFrequency -> ReportFrequency -> Ordering
$cp1Ord :: Eq ReportFrequency
Prelude.Ord,
      (forall x. ReportFrequency -> Rep ReportFrequency x)
-> (forall x. Rep ReportFrequency x -> ReportFrequency)
-> Generic ReportFrequency
forall x. Rep ReportFrequency x -> ReportFrequency
forall x. ReportFrequency -> Rep ReportFrequency x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ReportFrequency x -> ReportFrequency
$cfrom :: forall x. ReportFrequency -> Rep ReportFrequency x
Prelude.Generic
    )
  deriving newtype
    ( Int -> ReportFrequency -> Int
ReportFrequency -> Int
(Int -> ReportFrequency -> Int)
-> (ReportFrequency -> Int) -> Hashable ReportFrequency
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ReportFrequency -> Int
$chash :: ReportFrequency -> Int
hashWithSalt :: Int -> ReportFrequency -> Int
$chashWithSalt :: Int -> ReportFrequency -> Int
Prelude.Hashable,
      ReportFrequency -> ()
(ReportFrequency -> ()) -> NFData ReportFrequency
forall a. (a -> ()) -> NFData a
rnf :: ReportFrequency -> ()
$crnf :: ReportFrequency -> ()
Prelude.NFData,
      Text -> Either String ReportFrequency
(Text -> Either String ReportFrequency) -> FromText ReportFrequency
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ReportFrequency
$cfromText :: Text -> Either String ReportFrequency
Core.FromText,
      ReportFrequency -> Text
(ReportFrequency -> Text) -> ToText ReportFrequency
forall a. (a -> Text) -> ToText a
toText :: ReportFrequency -> Text
$ctoText :: ReportFrequency -> Text
Core.ToText,
      ReportFrequency -> ByteString
(ReportFrequency -> ByteString) -> ToByteString ReportFrequency
forall a. (a -> ByteString) -> ToByteString a
toBS :: ReportFrequency -> ByteString
$ctoBS :: ReportFrequency -> ByteString
Core.ToByteString,
      ReportFrequency -> ByteStringBuilder
(ReportFrequency -> ByteStringBuilder) -> ToLog ReportFrequency
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ReportFrequency -> ByteStringBuilder
$cbuild :: ReportFrequency -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ReportFrequency -> [Header]
(HeaderName -> ReportFrequency -> [Header])
-> ToHeader ReportFrequency
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ReportFrequency -> [Header]
$ctoHeader :: HeaderName -> ReportFrequency -> [Header]
Core.ToHeader,
      ReportFrequency -> QueryString
(ReportFrequency -> QueryString) -> ToQuery ReportFrequency
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ReportFrequency -> QueryString
$ctoQuery :: ReportFrequency -> QueryString
Core.ToQuery,
      Value -> Parser [ReportFrequency]
Value -> Parser ReportFrequency
(Value -> Parser ReportFrequency)
-> (Value -> Parser [ReportFrequency]) -> FromJSON ReportFrequency
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ReportFrequency]
$cparseJSONList :: Value -> Parser [ReportFrequency]
parseJSON :: Value -> Parser ReportFrequency
$cparseJSON :: Value -> Parser ReportFrequency
Core.FromJSON,
      FromJSONKeyFunction [ReportFrequency]
FromJSONKeyFunction ReportFrequency
FromJSONKeyFunction ReportFrequency
-> FromJSONKeyFunction [ReportFrequency]
-> FromJSONKey ReportFrequency
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ReportFrequency]
$cfromJSONKeyList :: FromJSONKeyFunction [ReportFrequency]
fromJSONKey :: FromJSONKeyFunction ReportFrequency
$cfromJSONKey :: FromJSONKeyFunction ReportFrequency
Core.FromJSONKey,
      [ReportFrequency] -> Encoding
[ReportFrequency] -> Value
ReportFrequency -> Encoding
ReportFrequency -> Value
(ReportFrequency -> Value)
-> (ReportFrequency -> Encoding)
-> ([ReportFrequency] -> Value)
-> ([ReportFrequency] -> Encoding)
-> ToJSON ReportFrequency
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ReportFrequency] -> Encoding
$ctoEncodingList :: [ReportFrequency] -> Encoding
toJSONList :: [ReportFrequency] -> Value
$ctoJSONList :: [ReportFrequency] -> Value
toEncoding :: ReportFrequency -> Encoding
$ctoEncoding :: ReportFrequency -> Encoding
toJSON :: ReportFrequency -> Value
$ctoJSON :: ReportFrequency -> Value
Core.ToJSON,
      ToJSONKeyFunction [ReportFrequency]
ToJSONKeyFunction ReportFrequency
ToJSONKeyFunction ReportFrequency
-> ToJSONKeyFunction [ReportFrequency] -> ToJSONKey ReportFrequency
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ReportFrequency]
$ctoJSONKeyList :: ToJSONKeyFunction [ReportFrequency]
toJSONKey :: ToJSONKeyFunction ReportFrequency
$ctoJSONKey :: ToJSONKeyFunction ReportFrequency
Core.ToJSONKey,
      [Node] -> Either String ReportFrequency
([Node] -> Either String ReportFrequency)
-> FromXML ReportFrequency
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ReportFrequency
$cparseXML :: [Node] -> Either String ReportFrequency
Core.FromXML,
      ReportFrequency -> XML
(ReportFrequency -> XML) -> ToXML ReportFrequency
forall a. (a -> XML) -> ToXML a
toXML :: ReportFrequency -> XML
$ctoXML :: ReportFrequency -> XML
Core.ToXML
    )

pattern ReportFrequency_ALL :: ReportFrequency
pattern $bReportFrequency_ALL :: ReportFrequency
$mReportFrequency_ALL :: forall r. ReportFrequency -> (Void# -> r) -> (Void# -> r) -> r
ReportFrequency_ALL = ReportFrequency' "ALL"

pattern ReportFrequency_DAILY :: ReportFrequency
pattern $bReportFrequency_DAILY :: ReportFrequency
$mReportFrequency_DAILY :: forall r. ReportFrequency -> (Void# -> r) -> (Void# -> r) -> r
ReportFrequency_DAILY = ReportFrequency' "DAILY"

pattern ReportFrequency_MONTHLY :: ReportFrequency
pattern $bReportFrequency_MONTHLY :: ReportFrequency
$mReportFrequency_MONTHLY :: forall r. ReportFrequency -> (Void# -> r) -> (Void# -> r) -> r
ReportFrequency_MONTHLY = ReportFrequency' "MONTHLY"

{-# COMPLETE
  ReportFrequency_ALL,
  ReportFrequency_DAILY,
  ReportFrequency_MONTHLY,
  ReportFrequency'
  #-}