{-# 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.EBSFinding
-- 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.ComputeOptimizer.Types.EBSFinding
  ( EBSFinding
      ( ..,
        EBSFinding_NotOptimized,
        EBSFinding_Optimized
      ),
  )
where

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

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

pattern EBSFinding_NotOptimized :: EBSFinding
pattern $bEBSFinding_NotOptimized :: EBSFinding
$mEBSFinding_NotOptimized :: forall r. EBSFinding -> (Void# -> r) -> (Void# -> r) -> r
EBSFinding_NotOptimized = EBSFinding' "NotOptimized"

pattern EBSFinding_Optimized :: EBSFinding
pattern $bEBSFinding_Optimized :: EBSFinding
$mEBSFinding_Optimized :: forall r. EBSFinding -> (Void# -> r) -> (Void# -> r) -> r
EBSFinding_Optimized = EBSFinding' "Optimized"

{-# COMPLETE
  EBSFinding_NotOptimized,
  EBSFinding_Optimized,
  EBSFinding'
  #-}