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