{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.EC2.Types.OfferingTypeValues
( OfferingTypeValues
( ..,
OfferingTypeValues_All_Upfront,
OfferingTypeValues_Heavy_Utilization,
OfferingTypeValues_Light_Utilization,
OfferingTypeValues_Medium_Utilization,
OfferingTypeValues_No_Upfront,
OfferingTypeValues_Partial_Upfront
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import Amazonka.EC2.Internal
import qualified Amazonka.Prelude as Prelude
newtype OfferingTypeValues = OfferingTypeValues'
{ OfferingTypeValues -> Text
fromOfferingTypeValues ::
Data.Text
}
deriving stock
( Int -> OfferingTypeValues -> ShowS
[OfferingTypeValues] -> ShowS
OfferingTypeValues -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [OfferingTypeValues] -> ShowS
$cshowList :: [OfferingTypeValues] -> ShowS
show :: OfferingTypeValues -> String
$cshow :: OfferingTypeValues -> String
showsPrec :: Int -> OfferingTypeValues -> ShowS
$cshowsPrec :: Int -> OfferingTypeValues -> ShowS
Prelude.Show,
ReadPrec [OfferingTypeValues]
ReadPrec OfferingTypeValues
Int -> ReadS OfferingTypeValues
ReadS [OfferingTypeValues]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [OfferingTypeValues]
$creadListPrec :: ReadPrec [OfferingTypeValues]
readPrec :: ReadPrec OfferingTypeValues
$creadPrec :: ReadPrec OfferingTypeValues
readList :: ReadS [OfferingTypeValues]
$creadList :: ReadS [OfferingTypeValues]
readsPrec :: Int -> ReadS OfferingTypeValues
$creadsPrec :: Int -> ReadS OfferingTypeValues
Prelude.Read,
OfferingTypeValues -> OfferingTypeValues -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: OfferingTypeValues -> OfferingTypeValues -> Bool
$c/= :: OfferingTypeValues -> OfferingTypeValues -> Bool
== :: OfferingTypeValues -> OfferingTypeValues -> Bool
$c== :: OfferingTypeValues -> OfferingTypeValues -> Bool
Prelude.Eq,
Eq OfferingTypeValues
OfferingTypeValues -> OfferingTypeValues -> Bool
OfferingTypeValues -> OfferingTypeValues -> Ordering
OfferingTypeValues -> OfferingTypeValues -> OfferingTypeValues
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 :: OfferingTypeValues -> OfferingTypeValues -> OfferingTypeValues
$cmin :: OfferingTypeValues -> OfferingTypeValues -> OfferingTypeValues
max :: OfferingTypeValues -> OfferingTypeValues -> OfferingTypeValues
$cmax :: OfferingTypeValues -> OfferingTypeValues -> OfferingTypeValues
>= :: OfferingTypeValues -> OfferingTypeValues -> Bool
$c>= :: OfferingTypeValues -> OfferingTypeValues -> Bool
> :: OfferingTypeValues -> OfferingTypeValues -> Bool
$c> :: OfferingTypeValues -> OfferingTypeValues -> Bool
<= :: OfferingTypeValues -> OfferingTypeValues -> Bool
$c<= :: OfferingTypeValues -> OfferingTypeValues -> Bool
< :: OfferingTypeValues -> OfferingTypeValues -> Bool
$c< :: OfferingTypeValues -> OfferingTypeValues -> Bool
compare :: OfferingTypeValues -> OfferingTypeValues -> Ordering
$ccompare :: OfferingTypeValues -> OfferingTypeValues -> Ordering
Prelude.Ord,
forall x. Rep OfferingTypeValues x -> OfferingTypeValues
forall x. OfferingTypeValues -> Rep OfferingTypeValues x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep OfferingTypeValues x -> OfferingTypeValues
$cfrom :: forall x. OfferingTypeValues -> Rep OfferingTypeValues x
Prelude.Generic
)
deriving newtype
( Eq OfferingTypeValues
Int -> OfferingTypeValues -> Int
OfferingTypeValues -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: OfferingTypeValues -> Int
$chash :: OfferingTypeValues -> Int
hashWithSalt :: Int -> OfferingTypeValues -> Int
$chashWithSalt :: Int -> OfferingTypeValues -> Int
Prelude.Hashable,
OfferingTypeValues -> ()
forall a. (a -> ()) -> NFData a
rnf :: OfferingTypeValues -> ()
$crnf :: OfferingTypeValues -> ()
Prelude.NFData,
Text -> Either String OfferingTypeValues
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String OfferingTypeValues
$cfromText :: Text -> Either String OfferingTypeValues
Data.FromText,
OfferingTypeValues -> Text
forall a. (a -> Text) -> ToText a
toText :: OfferingTypeValues -> Text
$ctoText :: OfferingTypeValues -> Text
Data.ToText,
OfferingTypeValues -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: OfferingTypeValues -> ByteString
$ctoBS :: OfferingTypeValues -> ByteString
Data.ToByteString,
OfferingTypeValues -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: OfferingTypeValues -> ByteStringBuilder
$cbuild :: OfferingTypeValues -> ByteStringBuilder
Data.ToLog,
HeaderName -> OfferingTypeValues -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> OfferingTypeValues -> [Header]
$ctoHeader :: HeaderName -> OfferingTypeValues -> [Header]
Data.ToHeader,
OfferingTypeValues -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: OfferingTypeValues -> QueryString
$ctoQuery :: OfferingTypeValues -> QueryString
Data.ToQuery,
Value -> Parser [OfferingTypeValues]
Value -> Parser OfferingTypeValues
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [OfferingTypeValues]
$cparseJSONList :: Value -> Parser [OfferingTypeValues]
parseJSON :: Value -> Parser OfferingTypeValues
$cparseJSON :: Value -> Parser OfferingTypeValues
Data.FromJSON,
FromJSONKeyFunction [OfferingTypeValues]
FromJSONKeyFunction OfferingTypeValues
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [OfferingTypeValues]
$cfromJSONKeyList :: FromJSONKeyFunction [OfferingTypeValues]
fromJSONKey :: FromJSONKeyFunction OfferingTypeValues
$cfromJSONKey :: FromJSONKeyFunction OfferingTypeValues
Data.FromJSONKey,
[OfferingTypeValues] -> Encoding
[OfferingTypeValues] -> Value
OfferingTypeValues -> Encoding
OfferingTypeValues -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [OfferingTypeValues] -> Encoding
$ctoEncodingList :: [OfferingTypeValues] -> Encoding
toJSONList :: [OfferingTypeValues] -> Value
$ctoJSONList :: [OfferingTypeValues] -> Value
toEncoding :: OfferingTypeValues -> Encoding
$ctoEncoding :: OfferingTypeValues -> Encoding
toJSON :: OfferingTypeValues -> Value
$ctoJSON :: OfferingTypeValues -> Value
Data.ToJSON,
ToJSONKeyFunction [OfferingTypeValues]
ToJSONKeyFunction OfferingTypeValues
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [OfferingTypeValues]
$ctoJSONKeyList :: ToJSONKeyFunction [OfferingTypeValues]
toJSONKey :: ToJSONKeyFunction OfferingTypeValues
$ctoJSONKey :: ToJSONKeyFunction OfferingTypeValues
Data.ToJSONKey,
[Node] -> Either String OfferingTypeValues
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String OfferingTypeValues
$cparseXML :: [Node] -> Either String OfferingTypeValues
Data.FromXML,
OfferingTypeValues -> XML
forall a. (a -> XML) -> ToXML a
toXML :: OfferingTypeValues -> XML
$ctoXML :: OfferingTypeValues -> XML
Data.ToXML
)
pattern OfferingTypeValues_All_Upfront :: OfferingTypeValues
pattern $bOfferingTypeValues_All_Upfront :: OfferingTypeValues
$mOfferingTypeValues_All_Upfront :: forall {r}. OfferingTypeValues -> ((# #) -> r) -> ((# #) -> r) -> r
OfferingTypeValues_All_Upfront = OfferingTypeValues' "All Upfront"
pattern OfferingTypeValues_Heavy_Utilization :: OfferingTypeValues
pattern $bOfferingTypeValues_Heavy_Utilization :: OfferingTypeValues
$mOfferingTypeValues_Heavy_Utilization :: forall {r}. OfferingTypeValues -> ((# #) -> r) -> ((# #) -> r) -> r
OfferingTypeValues_Heavy_Utilization = OfferingTypeValues' "Heavy Utilization"
pattern OfferingTypeValues_Light_Utilization :: OfferingTypeValues
pattern $bOfferingTypeValues_Light_Utilization :: OfferingTypeValues
$mOfferingTypeValues_Light_Utilization :: forall {r}. OfferingTypeValues -> ((# #) -> r) -> ((# #) -> r) -> r
OfferingTypeValues_Light_Utilization = OfferingTypeValues' "Light Utilization"
pattern OfferingTypeValues_Medium_Utilization :: OfferingTypeValues
pattern $bOfferingTypeValues_Medium_Utilization :: OfferingTypeValues
$mOfferingTypeValues_Medium_Utilization :: forall {r}. OfferingTypeValues -> ((# #) -> r) -> ((# #) -> r) -> r
OfferingTypeValues_Medium_Utilization = OfferingTypeValues' "Medium Utilization"
pattern OfferingTypeValues_No_Upfront :: OfferingTypeValues
pattern $bOfferingTypeValues_No_Upfront :: OfferingTypeValues
$mOfferingTypeValues_No_Upfront :: forall {r}. OfferingTypeValues -> ((# #) -> r) -> ((# #) -> r) -> r
OfferingTypeValues_No_Upfront = OfferingTypeValues' "No Upfront"
pattern OfferingTypeValues_Partial_Upfront :: OfferingTypeValues
pattern $bOfferingTypeValues_Partial_Upfront :: OfferingTypeValues
$mOfferingTypeValues_Partial_Upfront :: forall {r}. OfferingTypeValues -> ((# #) -> r) -> ((# #) -> r) -> r
OfferingTypeValues_Partial_Upfront = OfferingTypeValues' "Partial Upfront"
{-# COMPLETE
OfferingTypeValues_All_Upfront,
OfferingTypeValues_Heavy_Utilization,
OfferingTypeValues_Light_Utilization,
OfferingTypeValues_Medium_Utilization,
OfferingTypeValues_No_Upfront,
OfferingTypeValues_Partial_Upfront,
OfferingTypeValues'
#-}