{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.EC2.Types.ElasticGpuSpecificationResponse where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.EC2.Internal
import qualified Amazonka.Prelude as Prelude
data ElasticGpuSpecificationResponse = ElasticGpuSpecificationResponse'
{
ElasticGpuSpecificationResponse -> Maybe Text
type' :: Prelude.Maybe Prelude.Text
}
deriving (ElasticGpuSpecificationResponse
-> ElasticGpuSpecificationResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ElasticGpuSpecificationResponse
-> ElasticGpuSpecificationResponse -> Bool
$c/= :: ElasticGpuSpecificationResponse
-> ElasticGpuSpecificationResponse -> Bool
== :: ElasticGpuSpecificationResponse
-> ElasticGpuSpecificationResponse -> Bool
$c== :: ElasticGpuSpecificationResponse
-> ElasticGpuSpecificationResponse -> Bool
Prelude.Eq, ReadPrec [ElasticGpuSpecificationResponse]
ReadPrec ElasticGpuSpecificationResponse
Int -> ReadS ElasticGpuSpecificationResponse
ReadS [ElasticGpuSpecificationResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ElasticGpuSpecificationResponse]
$creadListPrec :: ReadPrec [ElasticGpuSpecificationResponse]
readPrec :: ReadPrec ElasticGpuSpecificationResponse
$creadPrec :: ReadPrec ElasticGpuSpecificationResponse
readList :: ReadS [ElasticGpuSpecificationResponse]
$creadList :: ReadS [ElasticGpuSpecificationResponse]
readsPrec :: Int -> ReadS ElasticGpuSpecificationResponse
$creadsPrec :: Int -> ReadS ElasticGpuSpecificationResponse
Prelude.Read, Int -> ElasticGpuSpecificationResponse -> ShowS
[ElasticGpuSpecificationResponse] -> ShowS
ElasticGpuSpecificationResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ElasticGpuSpecificationResponse] -> ShowS
$cshowList :: [ElasticGpuSpecificationResponse] -> ShowS
show :: ElasticGpuSpecificationResponse -> String
$cshow :: ElasticGpuSpecificationResponse -> String
showsPrec :: Int -> ElasticGpuSpecificationResponse -> ShowS
$cshowsPrec :: Int -> ElasticGpuSpecificationResponse -> ShowS
Prelude.Show, forall x.
Rep ElasticGpuSpecificationResponse x
-> ElasticGpuSpecificationResponse
forall x.
ElasticGpuSpecificationResponse
-> Rep ElasticGpuSpecificationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ElasticGpuSpecificationResponse x
-> ElasticGpuSpecificationResponse
$cfrom :: forall x.
ElasticGpuSpecificationResponse
-> Rep ElasticGpuSpecificationResponse x
Prelude.Generic)
newElasticGpuSpecificationResponse ::
ElasticGpuSpecificationResponse
newElasticGpuSpecificationResponse :: ElasticGpuSpecificationResponse
newElasticGpuSpecificationResponse =
ElasticGpuSpecificationResponse'
{ $sel:type':ElasticGpuSpecificationResponse' :: Maybe Text
type' =
forall a. Maybe a
Prelude.Nothing
}
elasticGpuSpecificationResponse_type :: Lens.Lens' ElasticGpuSpecificationResponse (Prelude.Maybe Prelude.Text)
elasticGpuSpecificationResponse_type :: Lens' ElasticGpuSpecificationResponse (Maybe Text)
elasticGpuSpecificationResponse_type = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ElasticGpuSpecificationResponse' {Maybe Text
type' :: Maybe Text
$sel:type':ElasticGpuSpecificationResponse' :: ElasticGpuSpecificationResponse -> Maybe Text
type'} -> Maybe Text
type') (\s :: ElasticGpuSpecificationResponse
s@ElasticGpuSpecificationResponse' {} Maybe Text
a -> ElasticGpuSpecificationResponse
s {$sel:type':ElasticGpuSpecificationResponse' :: Maybe Text
type' = Maybe Text
a} :: ElasticGpuSpecificationResponse)
instance Data.FromXML ElasticGpuSpecificationResponse where
parseXML :: [Node] -> Either String ElasticGpuSpecificationResponse
parseXML [Node]
x =
Maybe Text -> ElasticGpuSpecificationResponse
ElasticGpuSpecificationResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"type")
instance
Prelude.Hashable
ElasticGpuSpecificationResponse
where
hashWithSalt :: Int -> ElasticGpuSpecificationResponse -> Int
hashWithSalt
Int
_salt
ElasticGpuSpecificationResponse' {Maybe Text
type' :: Maybe Text
$sel:type':ElasticGpuSpecificationResponse' :: ElasticGpuSpecificationResponse -> Maybe Text
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
type'
instance
Prelude.NFData
ElasticGpuSpecificationResponse
where
rnf :: ElasticGpuSpecificationResponse -> ()
rnf ElasticGpuSpecificationResponse' {Maybe Text
type' :: Maybe Text
$sel:type':ElasticGpuSpecificationResponse' :: ElasticGpuSpecificationResponse -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
type'