{-# 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.EC2.Types.CurrencyCodeValues
-- 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.EC2.Types.CurrencyCodeValues
  ( CurrencyCodeValues
      ( ..,
        CurrencyCodeValues_USD
      ),
  )
where

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

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

pattern CurrencyCodeValues_USD :: CurrencyCodeValues
pattern $bCurrencyCodeValues_USD :: CurrencyCodeValues
$mCurrencyCodeValues_USD :: forall {r}. CurrencyCodeValues -> ((# #) -> r) -> ((# #) -> r) -> r
CurrencyCodeValues_USD = CurrencyCodeValues' "USD"

{-# COMPLETE
  CurrencyCodeValues_USD,
  CurrencyCodeValues'
  #-}