{-# 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.ComputeOptimizer.Types.InferredWorkloadTypesPreference
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.ComputeOptimizer.Types.InferredWorkloadTypesPreference
  ( InferredWorkloadTypesPreference
      ( ..,
        InferredWorkloadTypesPreference_Active,
        InferredWorkloadTypesPreference_Inactive
      ),
  )
where

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

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

pattern InferredWorkloadTypesPreference_Active :: InferredWorkloadTypesPreference
pattern $bInferredWorkloadTypesPreference_Active :: InferredWorkloadTypesPreference
$mInferredWorkloadTypesPreference_Active :: forall {r}.
InferredWorkloadTypesPreference
-> ((# #) -> r) -> ((# #) -> r) -> r
InferredWorkloadTypesPreference_Active = InferredWorkloadTypesPreference' "Active"

pattern InferredWorkloadTypesPreference_Inactive :: InferredWorkloadTypesPreference
pattern $bInferredWorkloadTypesPreference_Inactive :: InferredWorkloadTypesPreference
$mInferredWorkloadTypesPreference_Inactive :: forall {r}.
InferredWorkloadTypesPreference
-> ((# #) -> r) -> ((# #) -> r) -> r
InferredWorkloadTypesPreference_Inactive = InferredWorkloadTypesPreference' "Inactive"

{-# COMPLETE
  InferredWorkloadTypesPreference_Active,
  InferredWorkloadTypesPreference_Inactive,
  InferredWorkloadTypesPreference'
  #-}