{-# 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.SavingsPlanRateFilterAttribute
-- 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.SavingsPlanRateFilterAttribute
  ( SavingsPlanRateFilterAttribute
      ( ..,
        SavingsPlanRateFilterAttribute_InstanceFamily,
        SavingsPlanRateFilterAttribute_InstanceType,
        SavingsPlanRateFilterAttribute_ProductDescription,
        SavingsPlanRateFilterAttribute_ProductId,
        SavingsPlanRateFilterAttribute_Region,
        SavingsPlanRateFilterAttribute_Tenancy
      ),
  )
where

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

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

pattern SavingsPlanRateFilterAttribute_InstanceFamily :: SavingsPlanRateFilterAttribute
pattern $bSavingsPlanRateFilterAttribute_InstanceFamily :: SavingsPlanRateFilterAttribute
$mSavingsPlanRateFilterAttribute_InstanceFamily :: forall r.
SavingsPlanRateFilterAttribute -> (Void# -> r) -> (Void# -> r) -> r
SavingsPlanRateFilterAttribute_InstanceFamily = SavingsPlanRateFilterAttribute' "instanceFamily"

pattern SavingsPlanRateFilterAttribute_InstanceType :: SavingsPlanRateFilterAttribute
pattern $bSavingsPlanRateFilterAttribute_InstanceType :: SavingsPlanRateFilterAttribute
$mSavingsPlanRateFilterAttribute_InstanceType :: forall r.
SavingsPlanRateFilterAttribute -> (Void# -> r) -> (Void# -> r) -> r
SavingsPlanRateFilterAttribute_InstanceType = SavingsPlanRateFilterAttribute' "instanceType"

pattern SavingsPlanRateFilterAttribute_ProductDescription :: SavingsPlanRateFilterAttribute
pattern $bSavingsPlanRateFilterAttribute_ProductDescription :: SavingsPlanRateFilterAttribute
$mSavingsPlanRateFilterAttribute_ProductDescription :: forall r.
SavingsPlanRateFilterAttribute -> (Void# -> r) -> (Void# -> r) -> r
SavingsPlanRateFilterAttribute_ProductDescription = SavingsPlanRateFilterAttribute' "productDescription"

pattern SavingsPlanRateFilterAttribute_ProductId :: SavingsPlanRateFilterAttribute
pattern $bSavingsPlanRateFilterAttribute_ProductId :: SavingsPlanRateFilterAttribute
$mSavingsPlanRateFilterAttribute_ProductId :: forall r.
SavingsPlanRateFilterAttribute -> (Void# -> r) -> (Void# -> r) -> r
SavingsPlanRateFilterAttribute_ProductId = SavingsPlanRateFilterAttribute' "productId"

pattern SavingsPlanRateFilterAttribute_Region :: SavingsPlanRateFilterAttribute
pattern $bSavingsPlanRateFilterAttribute_Region :: SavingsPlanRateFilterAttribute
$mSavingsPlanRateFilterAttribute_Region :: forall r.
SavingsPlanRateFilterAttribute -> (Void# -> r) -> (Void# -> r) -> r
SavingsPlanRateFilterAttribute_Region = SavingsPlanRateFilterAttribute' "region"

pattern SavingsPlanRateFilterAttribute_Tenancy :: SavingsPlanRateFilterAttribute
pattern $bSavingsPlanRateFilterAttribute_Tenancy :: SavingsPlanRateFilterAttribute
$mSavingsPlanRateFilterAttribute_Tenancy :: forall r.
SavingsPlanRateFilterAttribute -> (Void# -> r) -> (Void# -> r) -> r
SavingsPlanRateFilterAttribute_Tenancy = SavingsPlanRateFilterAttribute' "tenancy"

{-# COMPLETE
  SavingsPlanRateFilterAttribute_InstanceFamily,
  SavingsPlanRateFilterAttribute_InstanceType,
  SavingsPlanRateFilterAttribute_ProductDescription,
  SavingsPlanRateFilterAttribute_ProductId,
  SavingsPlanRateFilterAttribute_Region,
  SavingsPlanRateFilterAttribute_Tenancy,
  SavingsPlanRateFilterAttribute'
  #-}