{-# 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.PlatformDifference
-- 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.CostExplorer.Types.PlatformDifference
  ( PlatformDifference
      ( ..,
        PlatformDifference_HYPERVISOR,
        PlatformDifference_INSTANCE_STORE_AVAILABILITY,
        PlatformDifference_NETWORK_INTERFACE,
        PlatformDifference_STORAGE_INTERFACE,
        PlatformDifference_VIRTUALIZATION_TYPE
      ),
  )
where

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

newtype PlatformDifference = PlatformDifference'
  { PlatformDifference -> Text
fromPlatformDifference ::
      Data.Text
  }
  deriving stock
    ( Int -> PlatformDifference -> ShowS
[PlatformDifference] -> ShowS
PlatformDifference -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq PlatformDifference
Int -> PlatformDifference -> Int
PlatformDifference -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: PlatformDifference -> ()
$crnf :: PlatformDifference -> ()
Prelude.NFData,
      Text -> Either String PlatformDifference
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String PlatformDifference
$cfromText :: Text -> Either String PlatformDifference
Data.FromText,
      PlatformDifference -> Text
forall a. (a -> Text) -> ToText a
toText :: PlatformDifference -> Text
$ctoText :: PlatformDifference -> Text
Data.ToText,
      PlatformDifference -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: PlatformDifference -> ByteString
$ctoBS :: PlatformDifference -> ByteString
Data.ToByteString,
      PlatformDifference -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: PlatformDifference -> ByteStringBuilder
$cbuild :: PlatformDifference -> ByteStringBuilder
Data.ToLog,
      HeaderName -> PlatformDifference -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> PlatformDifference -> [Header]
$ctoHeader :: HeaderName -> PlatformDifference -> [Header]
Data.ToHeader,
      PlatformDifference -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: PlatformDifference -> QueryString
$ctoQuery :: PlatformDifference -> QueryString
Data.ToQuery,
      Value -> Parser [PlatformDifference]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [PlatformDifference]
FromJSONKeyFunction PlatformDifference
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [PlatformDifference]
$cfromJSONKeyList :: FromJSONKeyFunction [PlatformDifference]
fromJSONKey :: FromJSONKeyFunction PlatformDifference
$cfromJSONKey :: FromJSONKeyFunction PlatformDifference
Data.FromJSONKey,
      [PlatformDifference] -> Encoding
[PlatformDifference] -> Value
PlatformDifference -> Encoding
PlatformDifference -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [PlatformDifference]
ToJSONKeyFunction PlatformDifference
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [PlatformDifference]
$ctoJSONKeyList :: ToJSONKeyFunction [PlatformDifference]
toJSONKey :: ToJSONKeyFunction PlatformDifference
$ctoJSONKey :: ToJSONKeyFunction PlatformDifference
Data.ToJSONKey,
      [Node] -> Either String PlatformDifference
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String PlatformDifference
$cparseXML :: [Node] -> Either String PlatformDifference
Data.FromXML,
      PlatformDifference -> XML
forall a. (a -> XML) -> ToXML a
toXML :: PlatformDifference -> XML
$ctoXML :: PlatformDifference -> XML
Data.ToXML
    )

pattern PlatformDifference_HYPERVISOR :: PlatformDifference
pattern $bPlatformDifference_HYPERVISOR :: PlatformDifference
$mPlatformDifference_HYPERVISOR :: forall {r}. PlatformDifference -> ((# #) -> r) -> ((# #) -> r) -> r
PlatformDifference_HYPERVISOR = PlatformDifference' "HYPERVISOR"

pattern PlatformDifference_INSTANCE_STORE_AVAILABILITY :: PlatformDifference
pattern $bPlatformDifference_INSTANCE_STORE_AVAILABILITY :: PlatformDifference
$mPlatformDifference_INSTANCE_STORE_AVAILABILITY :: forall {r}. PlatformDifference -> ((# #) -> r) -> ((# #) -> r) -> r
PlatformDifference_INSTANCE_STORE_AVAILABILITY = PlatformDifference' "INSTANCE_STORE_AVAILABILITY"

pattern PlatformDifference_NETWORK_INTERFACE :: PlatformDifference
pattern $bPlatformDifference_NETWORK_INTERFACE :: PlatformDifference
$mPlatformDifference_NETWORK_INTERFACE :: forall {r}. PlatformDifference -> ((# #) -> r) -> ((# #) -> r) -> r
PlatformDifference_NETWORK_INTERFACE = PlatformDifference' "NETWORK_INTERFACE"

pattern PlatformDifference_STORAGE_INTERFACE :: PlatformDifference
pattern $bPlatformDifference_STORAGE_INTERFACE :: PlatformDifference
$mPlatformDifference_STORAGE_INTERFACE :: forall {r}. PlatformDifference -> ((# #) -> r) -> ((# #) -> r) -> r
PlatformDifference_STORAGE_INTERFACE = PlatformDifference' "STORAGE_INTERFACE"

pattern PlatformDifference_VIRTUALIZATION_TYPE :: PlatformDifference
pattern $bPlatformDifference_VIRTUALIZATION_TYPE :: PlatformDifference
$mPlatformDifference_VIRTUALIZATION_TYPE :: forall {r}. PlatformDifference -> ((# #) -> r) -> ((# #) -> r) -> r
PlatformDifference_VIRTUALIZATION_TYPE = PlatformDifference' "VIRTUALIZATION_TYPE"

{-# COMPLETE
  PlatformDifference_HYPERVISOR,
  PlatformDifference_INSTANCE_STORE_AVAILABILITY,
  PlatformDifference_NETWORK_INTERFACE,
  PlatformDifference_STORAGE_INTERFACE,
  PlatformDifference_VIRTUALIZATION_TYPE,
  PlatformDifference'
  #-}