{-# 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.DeviceFarm.Types.RecurringChargeFrequency
-- 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.DeviceFarm.Types.RecurringChargeFrequency
  ( RecurringChargeFrequency
      ( ..,
        RecurringChargeFrequency_MONTHLY
      ),
  )
where

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

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

pattern RecurringChargeFrequency_MONTHLY :: RecurringChargeFrequency
pattern $bRecurringChargeFrequency_MONTHLY :: RecurringChargeFrequency
$mRecurringChargeFrequency_MONTHLY :: forall r.
RecurringChargeFrequency -> (Void# -> r) -> (Void# -> r) -> r
RecurringChargeFrequency_MONTHLY = RecurringChargeFrequency' "MONTHLY"

{-# COMPLETE
  RecurringChargeFrequency_MONTHLY,
  RecurringChargeFrequency'
  #-}