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