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