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