{-# 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.CostExplorer.Types.SupportedSavingsPlansType
-- 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.CostExplorer.Types.SupportedSavingsPlansType
  ( SupportedSavingsPlansType
      ( ..,
        SupportedSavingsPlansType_COMPUTE_SP,
        SupportedSavingsPlansType_EC2_INSTANCE_SP,
        SupportedSavingsPlansType_SAGEMAKER_SP
      ),
  )
where

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

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

pattern SupportedSavingsPlansType_COMPUTE_SP :: SupportedSavingsPlansType
pattern $bSupportedSavingsPlansType_COMPUTE_SP :: SupportedSavingsPlansType
$mSupportedSavingsPlansType_COMPUTE_SP :: forall {r}.
SupportedSavingsPlansType -> ((# #) -> r) -> ((# #) -> r) -> r
SupportedSavingsPlansType_COMPUTE_SP = SupportedSavingsPlansType' "COMPUTE_SP"

pattern SupportedSavingsPlansType_EC2_INSTANCE_SP :: SupportedSavingsPlansType
pattern $bSupportedSavingsPlansType_EC2_INSTANCE_SP :: SupportedSavingsPlansType
$mSupportedSavingsPlansType_EC2_INSTANCE_SP :: forall {r}.
SupportedSavingsPlansType -> ((# #) -> r) -> ((# #) -> r) -> r
SupportedSavingsPlansType_EC2_INSTANCE_SP = SupportedSavingsPlansType' "EC2_INSTANCE_SP"

pattern SupportedSavingsPlansType_SAGEMAKER_SP :: SupportedSavingsPlansType
pattern $bSupportedSavingsPlansType_SAGEMAKER_SP :: SupportedSavingsPlansType
$mSupportedSavingsPlansType_SAGEMAKER_SP :: forall {r}.
SupportedSavingsPlansType -> ((# #) -> r) -> ((# #) -> r) -> r
SupportedSavingsPlansType_SAGEMAKER_SP = SupportedSavingsPlansType' "SAGEMAKER_SP"

{-# COMPLETE
  SupportedSavingsPlansType_COMPUTE_SP,
  SupportedSavingsPlansType_EC2_INSTANCE_SP,
  SupportedSavingsPlansType_SAGEMAKER_SP,
  SupportedSavingsPlansType'
  #-}