{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude

newtype SupportedSavingsPlansType = SupportedSavingsPlansType'
  { SupportedSavingsPlansType -> Text
fromSupportedSavingsPlansType ::
      Core.Text
  }
  deriving stock
    ( Int -> SupportedSavingsPlansType -> ShowS
[SupportedSavingsPlansType] -> ShowS
SupportedSavingsPlansType -> String
(Int -> SupportedSavingsPlansType -> ShowS)
-> (SupportedSavingsPlansType -> String)
-> ([SupportedSavingsPlansType] -> ShowS)
-> Show SupportedSavingsPlansType
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]
(Int -> ReadS SupportedSavingsPlansType)
-> ReadS [SupportedSavingsPlansType]
-> ReadPrec SupportedSavingsPlansType
-> ReadPrec [SupportedSavingsPlansType]
-> Read 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
(SupportedSavingsPlansType -> SupportedSavingsPlansType -> Bool)
-> (SupportedSavingsPlansType -> SupportedSavingsPlansType -> Bool)
-> Eq SupportedSavingsPlansType
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
Eq SupportedSavingsPlansType
-> (SupportedSavingsPlansType
    -> SupportedSavingsPlansType -> Ordering)
-> (SupportedSavingsPlansType -> SupportedSavingsPlansType -> Bool)
-> (SupportedSavingsPlansType -> SupportedSavingsPlansType -> Bool)
-> (SupportedSavingsPlansType -> SupportedSavingsPlansType -> Bool)
-> (SupportedSavingsPlansType -> SupportedSavingsPlansType -> Bool)
-> (SupportedSavingsPlansType
    -> SupportedSavingsPlansType -> SupportedSavingsPlansType)
-> (SupportedSavingsPlansType
    -> SupportedSavingsPlansType -> SupportedSavingsPlansType)
-> Ord 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
$cp1Ord :: Eq SupportedSavingsPlansType
Prelude.Ord,
      (forall x.
 SupportedSavingsPlansType -> Rep SupportedSavingsPlansType x)
-> (forall x.
    Rep SupportedSavingsPlansType x -> SupportedSavingsPlansType)
-> Generic SupportedSavingsPlansType
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
    ( Int -> SupportedSavingsPlansType -> Int
SupportedSavingsPlansType -> Int
(Int -> SupportedSavingsPlansType -> Int)
-> (SupportedSavingsPlansType -> Int)
-> Hashable SupportedSavingsPlansType
forall 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 -> ()
(SupportedSavingsPlansType -> ())
-> NFData SupportedSavingsPlansType
forall a. (a -> ()) -> NFData a
rnf :: SupportedSavingsPlansType -> ()
$crnf :: SupportedSavingsPlansType -> ()
Prelude.NFData,
      Text -> Either String SupportedSavingsPlansType
(Text -> Either String SupportedSavingsPlansType)
-> FromText SupportedSavingsPlansType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String SupportedSavingsPlansType
$cfromText :: Text -> Either String SupportedSavingsPlansType
Core.FromText,
      SupportedSavingsPlansType -> Text
(SupportedSavingsPlansType -> Text)
-> ToText SupportedSavingsPlansType
forall a. (a -> Text) -> ToText a
toText :: SupportedSavingsPlansType -> Text
$ctoText :: SupportedSavingsPlansType -> Text
Core.ToText,
      SupportedSavingsPlansType -> ByteString
(SupportedSavingsPlansType -> ByteString)
-> ToByteString SupportedSavingsPlansType
forall a. (a -> ByteString) -> ToByteString a
toBS :: SupportedSavingsPlansType -> ByteString
$ctoBS :: SupportedSavingsPlansType -> ByteString
Core.ToByteString,
      SupportedSavingsPlansType -> ByteStringBuilder
(SupportedSavingsPlansType -> ByteStringBuilder)
-> ToLog SupportedSavingsPlansType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: SupportedSavingsPlansType -> ByteStringBuilder
$cbuild :: SupportedSavingsPlansType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> SupportedSavingsPlansType -> [Header]
(HeaderName -> SupportedSavingsPlansType -> [Header])
-> ToHeader SupportedSavingsPlansType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> SupportedSavingsPlansType -> [Header]
$ctoHeader :: HeaderName -> SupportedSavingsPlansType -> [Header]
Core.ToHeader,
      SupportedSavingsPlansType -> QueryString
(SupportedSavingsPlansType -> QueryString)
-> ToQuery SupportedSavingsPlansType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: SupportedSavingsPlansType -> QueryString
$ctoQuery :: SupportedSavingsPlansType -> QueryString
Core.ToQuery,
      Value -> Parser [SupportedSavingsPlansType]
Value -> Parser SupportedSavingsPlansType
(Value -> Parser SupportedSavingsPlansType)
-> (Value -> Parser [SupportedSavingsPlansType])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [SupportedSavingsPlansType]
FromJSONKeyFunction SupportedSavingsPlansType
FromJSONKeyFunction SupportedSavingsPlansType
-> FromJSONKeyFunction [SupportedSavingsPlansType]
-> FromJSONKey SupportedSavingsPlansType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [SupportedSavingsPlansType]
$cfromJSONKeyList :: FromJSONKeyFunction [SupportedSavingsPlansType]
fromJSONKey :: FromJSONKeyFunction SupportedSavingsPlansType
$cfromJSONKey :: FromJSONKeyFunction SupportedSavingsPlansType
Core.FromJSONKey,
      [SupportedSavingsPlansType] -> Encoding
[SupportedSavingsPlansType] -> Value
SupportedSavingsPlansType -> Encoding
SupportedSavingsPlansType -> Value
(SupportedSavingsPlansType -> Value)
-> (SupportedSavingsPlansType -> Encoding)
-> ([SupportedSavingsPlansType] -> Value)
-> ([SupportedSavingsPlansType] -> Encoding)
-> ToJSON SupportedSavingsPlansType
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
Core.ToJSON,
      ToJSONKeyFunction [SupportedSavingsPlansType]
ToJSONKeyFunction SupportedSavingsPlansType
ToJSONKeyFunction SupportedSavingsPlansType
-> ToJSONKeyFunction [SupportedSavingsPlansType]
-> ToJSONKey SupportedSavingsPlansType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [SupportedSavingsPlansType]
$ctoJSONKeyList :: ToJSONKeyFunction [SupportedSavingsPlansType]
toJSONKey :: ToJSONKeyFunction SupportedSavingsPlansType
$ctoJSONKey :: ToJSONKeyFunction SupportedSavingsPlansType
Core.ToJSONKey,
      [Node] -> Either String SupportedSavingsPlansType
([Node] -> Either String SupportedSavingsPlansType)
-> FromXML SupportedSavingsPlansType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String SupportedSavingsPlansType
$cparseXML :: [Node] -> Either String SupportedSavingsPlansType
Core.FromXML,
      SupportedSavingsPlansType -> XML
(SupportedSavingsPlansType -> XML)
-> ToXML SupportedSavingsPlansType
forall a. (a -> XML) -> ToXML a
toXML :: SupportedSavingsPlansType -> XML
$ctoXML :: SupportedSavingsPlansType -> XML
Core.ToXML
    )

pattern SupportedSavingsPlansType_COMPUTE_SP :: SupportedSavingsPlansType
pattern $bSupportedSavingsPlansType_COMPUTE_SP :: SupportedSavingsPlansType
$mSupportedSavingsPlansType_COMPUTE_SP :: forall r.
SupportedSavingsPlansType -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> r) -> r
SupportedSavingsPlansType_SAGEMAKER_SP = SupportedSavingsPlansType' "SAGEMAKER_SP"

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