{-# 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.ProductCodeValues
-- 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.ProductCodeValues
  ( ProductCodeValues
      ( ..,
        ProductCodeValues_Devpay,
        ProductCodeValues_Marketplace
      ),
  )
where

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

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

pattern ProductCodeValues_Devpay :: ProductCodeValues
pattern $bProductCodeValues_Devpay :: ProductCodeValues
$mProductCodeValues_Devpay :: forall {r}. ProductCodeValues -> ((# #) -> r) -> ((# #) -> r) -> r
ProductCodeValues_Devpay = ProductCodeValues' "devpay"

pattern ProductCodeValues_Marketplace :: ProductCodeValues
pattern $bProductCodeValues_Marketplace :: ProductCodeValues
$mProductCodeValues_Marketplace :: forall {r}. ProductCodeValues -> ((# #) -> r) -> ((# #) -> r) -> r
ProductCodeValues_Marketplace = ProductCodeValues' "marketplace"

{-# COMPLETE
  ProductCodeValues_Devpay,
  ProductCodeValues_Marketplace,
  ProductCodeValues'
  #-}