{-# 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.SavingsPlans.Types.SavingsPlanRateFilterName
-- 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.SavingsPlans.Types.SavingsPlanRateFilterName
  ( SavingsPlanRateFilterName
      ( ..,
        SavingsPlanRateFilterName_InstanceType,
        SavingsPlanRateFilterName_Operation,
        SavingsPlanRateFilterName_ProductDescription,
        SavingsPlanRateFilterName_ProductType,
        SavingsPlanRateFilterName_Region,
        SavingsPlanRateFilterName_ServiceCode,
        SavingsPlanRateFilterName_Tenancy,
        SavingsPlanRateFilterName_UsageType
      ),
  )
where

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

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

pattern SavingsPlanRateFilterName_InstanceType :: SavingsPlanRateFilterName
pattern $bSavingsPlanRateFilterName_InstanceType :: SavingsPlanRateFilterName
$mSavingsPlanRateFilterName_InstanceType :: forall r.
SavingsPlanRateFilterName -> (Void# -> r) -> (Void# -> r) -> r
SavingsPlanRateFilterName_InstanceType = SavingsPlanRateFilterName' "instanceType"

pattern SavingsPlanRateFilterName_Operation :: SavingsPlanRateFilterName
pattern $bSavingsPlanRateFilterName_Operation :: SavingsPlanRateFilterName
$mSavingsPlanRateFilterName_Operation :: forall r.
SavingsPlanRateFilterName -> (Void# -> r) -> (Void# -> r) -> r
SavingsPlanRateFilterName_Operation = SavingsPlanRateFilterName' "operation"

pattern SavingsPlanRateFilterName_ProductDescription :: SavingsPlanRateFilterName
pattern $bSavingsPlanRateFilterName_ProductDescription :: SavingsPlanRateFilterName
$mSavingsPlanRateFilterName_ProductDescription :: forall r.
SavingsPlanRateFilterName -> (Void# -> r) -> (Void# -> r) -> r
SavingsPlanRateFilterName_ProductDescription = SavingsPlanRateFilterName' "productDescription"

pattern SavingsPlanRateFilterName_ProductType :: SavingsPlanRateFilterName
pattern $bSavingsPlanRateFilterName_ProductType :: SavingsPlanRateFilterName
$mSavingsPlanRateFilterName_ProductType :: forall r.
SavingsPlanRateFilterName -> (Void# -> r) -> (Void# -> r) -> r
SavingsPlanRateFilterName_ProductType = SavingsPlanRateFilterName' "productType"

pattern SavingsPlanRateFilterName_Region :: SavingsPlanRateFilterName
pattern $bSavingsPlanRateFilterName_Region :: SavingsPlanRateFilterName
$mSavingsPlanRateFilterName_Region :: forall r.
SavingsPlanRateFilterName -> (Void# -> r) -> (Void# -> r) -> r
SavingsPlanRateFilterName_Region = SavingsPlanRateFilterName' "region"

pattern SavingsPlanRateFilterName_ServiceCode :: SavingsPlanRateFilterName
pattern $bSavingsPlanRateFilterName_ServiceCode :: SavingsPlanRateFilterName
$mSavingsPlanRateFilterName_ServiceCode :: forall r.
SavingsPlanRateFilterName -> (Void# -> r) -> (Void# -> r) -> r
SavingsPlanRateFilterName_ServiceCode = SavingsPlanRateFilterName' "serviceCode"

pattern SavingsPlanRateFilterName_Tenancy :: SavingsPlanRateFilterName
pattern $bSavingsPlanRateFilterName_Tenancy :: SavingsPlanRateFilterName
$mSavingsPlanRateFilterName_Tenancy :: forall r.
SavingsPlanRateFilterName -> (Void# -> r) -> (Void# -> r) -> r
SavingsPlanRateFilterName_Tenancy = SavingsPlanRateFilterName' "tenancy"

pattern SavingsPlanRateFilterName_UsageType :: SavingsPlanRateFilterName
pattern $bSavingsPlanRateFilterName_UsageType :: SavingsPlanRateFilterName
$mSavingsPlanRateFilterName_UsageType :: forall r.
SavingsPlanRateFilterName -> (Void# -> r) -> (Void# -> r) -> r
SavingsPlanRateFilterName_UsageType = SavingsPlanRateFilterName' "usageType"

{-# COMPLETE
  SavingsPlanRateFilterName_InstanceType,
  SavingsPlanRateFilterName_Operation,
  SavingsPlanRateFilterName_ProductDescription,
  SavingsPlanRateFilterName_ProductType,
  SavingsPlanRateFilterName_Region,
  SavingsPlanRateFilterName_ServiceCode,
  SavingsPlanRateFilterName_Tenancy,
  SavingsPlanRateFilterName_UsageType,
  SavingsPlanRateFilterName'
  #-}