{-# 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.RecommendationTarget
-- 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.RecommendationTarget
  ( RecommendationTarget
      ( ..,
        RecommendationTarget_CROSS_INSTANCE_FAMILY,
        RecommendationTarget_SAME_INSTANCE_FAMILY
      ),
  )
where

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

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

pattern RecommendationTarget_CROSS_INSTANCE_FAMILY :: RecommendationTarget
pattern $bRecommendationTarget_CROSS_INSTANCE_FAMILY :: RecommendationTarget
$mRecommendationTarget_CROSS_INSTANCE_FAMILY :: forall r. RecommendationTarget -> (Void# -> r) -> (Void# -> r) -> r
RecommendationTarget_CROSS_INSTANCE_FAMILY = RecommendationTarget' "CROSS_INSTANCE_FAMILY"

pattern RecommendationTarget_SAME_INSTANCE_FAMILY :: RecommendationTarget
pattern $bRecommendationTarget_SAME_INSTANCE_FAMILY :: RecommendationTarget
$mRecommendationTarget_SAME_INSTANCE_FAMILY :: forall r. RecommendationTarget -> (Void# -> r) -> (Void# -> r) -> r
RecommendationTarget_SAME_INSTANCE_FAMILY = RecommendationTarget' "SAME_INSTANCE_FAMILY"

{-# COMPLETE
  RecommendationTarget_CROSS_INSTANCE_FAMILY,
  RecommendationTarget_SAME_INSTANCE_FAMILY,
  RecommendationTarget'
  #-}