{-# 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.LicenseManager.Types.ReportFrequencyType
-- 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.LicenseManager.Types.ReportFrequencyType
  ( ReportFrequencyType
      ( ..,
        ReportFrequencyType_DAY,
        ReportFrequencyType_MONTH,
        ReportFrequencyType_WEEK
      ),
  )
where

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

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

pattern ReportFrequencyType_DAY :: ReportFrequencyType
pattern $bReportFrequencyType_DAY :: ReportFrequencyType
$mReportFrequencyType_DAY :: forall r. ReportFrequencyType -> (Void# -> r) -> (Void# -> r) -> r
ReportFrequencyType_DAY = ReportFrequencyType' "DAY"

pattern ReportFrequencyType_MONTH :: ReportFrequencyType
pattern $bReportFrequencyType_MONTH :: ReportFrequencyType
$mReportFrequencyType_MONTH :: forall r. ReportFrequencyType -> (Void# -> r) -> (Void# -> r) -> r
ReportFrequencyType_MONTH = ReportFrequencyType' "MONTH"

pattern ReportFrequencyType_WEEK :: ReportFrequencyType
pattern $bReportFrequencyType_WEEK :: ReportFrequencyType
$mReportFrequencyType_WEEK :: forall r. ReportFrequencyType -> (Void# -> r) -> (Void# -> r) -> r
ReportFrequencyType_WEEK = ReportFrequencyType' "WEEK"

{-# COMPLETE
  ReportFrequencyType_DAY,
  ReportFrequencyType_MONTH,
  ReportFrequencyType_WEEK,
  ReportFrequencyType'
  #-}