{-# 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-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.AppStream.Types.UsageReportSchedule
  ( UsageReportSchedule
      ( ..,
        UsageReportSchedule_DAILY
      ),
  )
where

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

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

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

{-# COMPLETE
  UsageReportSchedule_DAILY,
  UsageReportSchedule'
  #-}