{-# 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.AppStream.Types.UsageReportSchedule
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.AppStream.Types.UsageReportSchedule
  ( UsageReportSchedule
      ( ..,
        UsageReportSchedule_DAILY
      ),
  )
where

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

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

pattern UsageReportSchedule_DAILY :: UsageReportSchedule
pattern $bUsageReportSchedule_DAILY :: UsageReportSchedule
$mUsageReportSchedule_DAILY :: forall {r}.
UsageReportSchedule -> ((# #) -> r) -> ((# #) -> r) -> r
UsageReportSchedule_DAILY = UsageReportSchedule' "DAILY"

{-# COMPLETE
  UsageReportSchedule_DAILY,
  UsageReportSchedule'
  #-}