{-# 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.ElasticGpuSpecification 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 ElasticGpuSpecification = ElasticGpuSpecification'
{
ElasticGpuSpecification -> Text
type' :: Prelude.Text
}
deriving (ElasticGpuSpecification -> ElasticGpuSpecification -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ElasticGpuSpecification -> ElasticGpuSpecification -> Bool
$c/= :: ElasticGpuSpecification -> ElasticGpuSpecification -> Bool
== :: ElasticGpuSpecification -> ElasticGpuSpecification -> Bool
$c== :: ElasticGpuSpecification -> ElasticGpuSpecification -> Bool
Prelude.Eq, ReadPrec [ElasticGpuSpecification]
ReadPrec ElasticGpuSpecification
Int -> ReadS ElasticGpuSpecification
ReadS [ElasticGpuSpecification]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ElasticGpuSpecification]
$creadListPrec :: ReadPrec [ElasticGpuSpecification]
readPrec :: ReadPrec ElasticGpuSpecification
$creadPrec :: ReadPrec ElasticGpuSpecification
readList :: ReadS [ElasticGpuSpecification]
$creadList :: ReadS [ElasticGpuSpecification]
readsPrec :: Int -> ReadS ElasticGpuSpecification
$creadsPrec :: Int -> ReadS ElasticGpuSpecification
Prelude.Read, Int -> ElasticGpuSpecification -> ShowS
[ElasticGpuSpecification] -> ShowS
ElasticGpuSpecification -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ElasticGpuSpecification] -> ShowS
$cshowList :: [ElasticGpuSpecification] -> ShowS
show :: ElasticGpuSpecification -> String
$cshow :: ElasticGpuSpecification -> String
showsPrec :: Int -> ElasticGpuSpecification -> ShowS
$cshowsPrec :: Int -> ElasticGpuSpecification -> ShowS
Prelude.Show, forall x. Rep ElasticGpuSpecification x -> ElasticGpuSpecification
forall x. ElasticGpuSpecification -> Rep ElasticGpuSpecification x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ElasticGpuSpecification x -> ElasticGpuSpecification
$cfrom :: forall x. ElasticGpuSpecification -> Rep ElasticGpuSpecification x
Prelude.Generic)
newElasticGpuSpecification ::
Prelude.Text ->
ElasticGpuSpecification
newElasticGpuSpecification :: Text -> ElasticGpuSpecification
newElasticGpuSpecification Text
pType_ =
ElasticGpuSpecification' {$sel:type':ElasticGpuSpecification' :: Text
type' = Text
pType_}
elasticGpuSpecification_type :: Lens.Lens' ElasticGpuSpecification Prelude.Text
elasticGpuSpecification_type :: Lens' ElasticGpuSpecification Text
elasticGpuSpecification_type = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ElasticGpuSpecification' {Text
type' :: Text
$sel:type':ElasticGpuSpecification' :: ElasticGpuSpecification -> Text
type'} -> Text
type') (\s :: ElasticGpuSpecification
s@ElasticGpuSpecification' {} Text
a -> ElasticGpuSpecification
s {$sel:type':ElasticGpuSpecification' :: Text
type' = Text
a} :: ElasticGpuSpecification)
instance Prelude.Hashable ElasticGpuSpecification where
hashWithSalt :: Int -> ElasticGpuSpecification -> Int
hashWithSalt Int
_salt ElasticGpuSpecification' {Text
type' :: Text
$sel:type':ElasticGpuSpecification' :: ElasticGpuSpecification -> Text
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
type'
instance Prelude.NFData ElasticGpuSpecification where
rnf :: ElasticGpuSpecification -> ()
rnf ElasticGpuSpecification' {Text
type' :: Text
$sel:type':ElasticGpuSpecification' :: ElasticGpuSpecification -> Text
..} = forall a. NFData a => a -> ()
Prelude.rnf Text
type'
instance Data.ToQuery ElasticGpuSpecification where
toQuery :: ElasticGpuSpecification -> QueryString
toQuery ElasticGpuSpecification' {Text
type' :: Text
$sel:type':ElasticGpuSpecification' :: ElasticGpuSpecification -> Text
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"Type" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Text
type']