{-# 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.SavingsPlanOfferingPropertyKey
-- 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.SavingsPlanOfferingPropertyKey
  ( SavingsPlanOfferingPropertyKey
      ( ..,
        SavingsPlanOfferingPropertyKey_InstanceFamily,
        SavingsPlanOfferingPropertyKey_Region
      ),
  )
where

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

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

pattern SavingsPlanOfferingPropertyKey_InstanceFamily :: SavingsPlanOfferingPropertyKey
pattern $bSavingsPlanOfferingPropertyKey_InstanceFamily :: SavingsPlanOfferingPropertyKey
$mSavingsPlanOfferingPropertyKey_InstanceFamily :: forall r.
SavingsPlanOfferingPropertyKey -> (Void# -> r) -> (Void# -> r) -> r
SavingsPlanOfferingPropertyKey_InstanceFamily = SavingsPlanOfferingPropertyKey' "instanceFamily"

pattern SavingsPlanOfferingPropertyKey_Region :: SavingsPlanOfferingPropertyKey
pattern $bSavingsPlanOfferingPropertyKey_Region :: SavingsPlanOfferingPropertyKey
$mSavingsPlanOfferingPropertyKey_Region :: forall r.
SavingsPlanOfferingPropertyKey -> (Void# -> r) -> (Void# -> r) -> r
SavingsPlanOfferingPropertyKey_Region = SavingsPlanOfferingPropertyKey' "region"

{-# COMPLETE
  SavingsPlanOfferingPropertyKey_InstanceFamily,
  SavingsPlanOfferingPropertyKey_Region,
  SavingsPlanOfferingPropertyKey'
  #-}