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