{-# 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.PlatformDifference
-- 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.PlatformDifference
  ( PlatformDifference
      ( ..,
        PlatformDifference_Architecture,
        PlatformDifference_Hypervisor,
        PlatformDifference_InstanceStoreAvailability,
        PlatformDifference_NetworkInterface,
        PlatformDifference_StorageInterface,
        PlatformDifference_VirtualizationType
      ),
  )
where

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

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

pattern PlatformDifference_Architecture :: PlatformDifference
pattern $bPlatformDifference_Architecture :: PlatformDifference
$mPlatformDifference_Architecture :: forall r. PlatformDifference -> (Void# -> r) -> (Void# -> r) -> r
PlatformDifference_Architecture = PlatformDifference' "Architecture"

pattern PlatformDifference_Hypervisor :: PlatformDifference
pattern $bPlatformDifference_Hypervisor :: PlatformDifference
$mPlatformDifference_Hypervisor :: forall r. PlatformDifference -> (Void# -> r) -> (Void# -> r) -> r
PlatformDifference_Hypervisor = PlatformDifference' "Hypervisor"

pattern PlatformDifference_InstanceStoreAvailability :: PlatformDifference
pattern $bPlatformDifference_InstanceStoreAvailability :: PlatformDifference
$mPlatformDifference_InstanceStoreAvailability :: forall r. PlatformDifference -> (Void# -> r) -> (Void# -> r) -> r
PlatformDifference_InstanceStoreAvailability = PlatformDifference' "InstanceStoreAvailability"

pattern PlatformDifference_NetworkInterface :: PlatformDifference
pattern $bPlatformDifference_NetworkInterface :: PlatformDifference
$mPlatformDifference_NetworkInterface :: forall r. PlatformDifference -> (Void# -> r) -> (Void# -> r) -> r
PlatformDifference_NetworkInterface = PlatformDifference' "NetworkInterface"

pattern PlatformDifference_StorageInterface :: PlatformDifference
pattern $bPlatformDifference_StorageInterface :: PlatformDifference
$mPlatformDifference_StorageInterface :: forall r. PlatformDifference -> (Void# -> r) -> (Void# -> r) -> r
PlatformDifference_StorageInterface = PlatformDifference' "StorageInterface"

pattern PlatformDifference_VirtualizationType :: PlatformDifference
pattern $bPlatformDifference_VirtualizationType :: PlatformDifference
$mPlatformDifference_VirtualizationType :: forall r. PlatformDifference -> (Void# -> r) -> (Void# -> r) -> r
PlatformDifference_VirtualizationType = PlatformDifference' "VirtualizationType"

{-# COMPLETE
  PlatformDifference_Architecture,
  PlatformDifference_Hypervisor,
  PlatformDifference_InstanceStoreAvailability,
  PlatformDifference_NetworkInterface,
  PlatformDifference_StorageInterface,
  PlatformDifference_VirtualizationType,
  PlatformDifference'
  #-}