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