{-# 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.OfferingClassType
-- 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.OfferingClassType
  ( OfferingClassType
      ( ..,
        OfferingClassType_Convertible,
        OfferingClassType_Standard
      ),
  )
where

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

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

pattern OfferingClassType_Convertible :: OfferingClassType
pattern $bOfferingClassType_Convertible :: OfferingClassType
$mOfferingClassType_Convertible :: forall {r}. OfferingClassType -> ((# #) -> r) -> ((# #) -> r) -> r
OfferingClassType_Convertible = OfferingClassType' "convertible"

pattern OfferingClassType_Standard :: OfferingClassType
pattern $bOfferingClassType_Standard :: OfferingClassType
$mOfferingClassType_Standard :: forall {r}. OfferingClassType -> ((# #) -> r) -> ((# #) -> r) -> r
OfferingClassType_Standard = OfferingClassType' "standard"

{-# COMPLETE
  OfferingClassType_Convertible,
  OfferingClassType_Standard,
  OfferingClassType'
  #-}