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