{-# 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.EC2.Types.ElasticGpuState
-- 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.EC2.Types.ElasticGpuState
  ( ElasticGpuState
      ( ..,
        ElasticGpuState_ATTACHED
      ),
  )
where

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

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

pattern ElasticGpuState_ATTACHED :: ElasticGpuState
pattern $bElasticGpuState_ATTACHED :: ElasticGpuState
$mElasticGpuState_ATTACHED :: forall {r}. ElasticGpuState -> ((# #) -> r) -> ((# #) -> r) -> r
ElasticGpuState_ATTACHED = ElasticGpuState' "ATTACHED"

{-# COMPLETE
  ElasticGpuState_ATTACHED,
  ElasticGpuState'
  #-}