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