{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.DevOpsGuru.Types.CostEstimationStatus
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.DevOpsGuru.Types.CostEstimationStatus
  ( CostEstimationStatus
      ( ..,
        CostEstimationStatus_COMPLETED,
        CostEstimationStatus_ONGOING
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

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

pattern CostEstimationStatus_COMPLETED :: CostEstimationStatus
pattern $bCostEstimationStatus_COMPLETED :: CostEstimationStatus
$mCostEstimationStatus_COMPLETED :: forall {r}.
CostEstimationStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CostEstimationStatus_COMPLETED = CostEstimationStatus' "COMPLETED"

pattern CostEstimationStatus_ONGOING :: CostEstimationStatus
pattern $bCostEstimationStatus_ONGOING :: CostEstimationStatus
$mCostEstimationStatus_ONGOING :: forall {r}.
CostEstimationStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CostEstimationStatus_ONGOING = CostEstimationStatus' "ONGOING"

{-# COMPLETE
  CostEstimationStatus_COMPLETED,
  CostEstimationStatus_ONGOING,
  CostEstimationStatus'
  #-}