{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Nimble.GetLaunchProfileInitialization
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Get a launch profile initialization.
module Amazonka.Nimble.GetLaunchProfileInitialization
  ( -- * Creating a Request
    GetLaunchProfileInitialization (..),
    newGetLaunchProfileInitialization,

    -- * Request Lenses
    getLaunchProfileInitialization_studioId,
    getLaunchProfileInitialization_launchProfileProtocolVersions,
    getLaunchProfileInitialization_launchPurpose,
    getLaunchProfileInitialization_launchProfileId,
    getLaunchProfileInitialization_platform,

    -- * Destructuring the Response
    GetLaunchProfileInitializationResponse (..),
    newGetLaunchProfileInitializationResponse,

    -- * Response Lenses
    getLaunchProfileInitializationResponse_launchProfileInitialization,
    getLaunchProfileInitializationResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Nimble.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newGetLaunchProfileInitialization' smart constructor.
data GetLaunchProfileInitialization = GetLaunchProfileInitialization'
  { -- | The studio ID.
    GetLaunchProfileInitialization -> Text
studioId :: Prelude.Text,
    -- | A collection of launch profile protocol versions.
    GetLaunchProfileInitialization -> [Text]
launchProfileProtocolVersions :: [Prelude.Text],
    -- | The launch purpose.
    GetLaunchProfileInitialization -> Text
launchPurpose :: Prelude.Text,
    -- | The launch profile ID.
    GetLaunchProfileInitialization -> Text
launchProfileId :: Prelude.Text,
    -- | The platform.
    GetLaunchProfileInitialization -> Text
platform :: Prelude.Text
  }
  deriving (GetLaunchProfileInitialization
-> GetLaunchProfileInitialization -> Bool
(GetLaunchProfileInitialization
 -> GetLaunchProfileInitialization -> Bool)
-> (GetLaunchProfileInitialization
    -> GetLaunchProfileInitialization -> Bool)
-> Eq GetLaunchProfileInitialization
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetLaunchProfileInitialization
-> GetLaunchProfileInitialization -> Bool
$c/= :: GetLaunchProfileInitialization
-> GetLaunchProfileInitialization -> Bool
== :: GetLaunchProfileInitialization
-> GetLaunchProfileInitialization -> Bool
$c== :: GetLaunchProfileInitialization
-> GetLaunchProfileInitialization -> Bool
Prelude.Eq, ReadPrec [GetLaunchProfileInitialization]
ReadPrec GetLaunchProfileInitialization
Int -> ReadS GetLaunchProfileInitialization
ReadS [GetLaunchProfileInitialization]
(Int -> ReadS GetLaunchProfileInitialization)
-> ReadS [GetLaunchProfileInitialization]
-> ReadPrec GetLaunchProfileInitialization
-> ReadPrec [GetLaunchProfileInitialization]
-> Read GetLaunchProfileInitialization
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetLaunchProfileInitialization]
$creadListPrec :: ReadPrec [GetLaunchProfileInitialization]
readPrec :: ReadPrec GetLaunchProfileInitialization
$creadPrec :: ReadPrec GetLaunchProfileInitialization
readList :: ReadS [GetLaunchProfileInitialization]
$creadList :: ReadS [GetLaunchProfileInitialization]
readsPrec :: Int -> ReadS GetLaunchProfileInitialization
$creadsPrec :: Int -> ReadS GetLaunchProfileInitialization
Prelude.Read, Int -> GetLaunchProfileInitialization -> ShowS
[GetLaunchProfileInitialization] -> ShowS
GetLaunchProfileInitialization -> String
(Int -> GetLaunchProfileInitialization -> ShowS)
-> (GetLaunchProfileInitialization -> String)
-> ([GetLaunchProfileInitialization] -> ShowS)
-> Show GetLaunchProfileInitialization
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetLaunchProfileInitialization] -> ShowS
$cshowList :: [GetLaunchProfileInitialization] -> ShowS
show :: GetLaunchProfileInitialization -> String
$cshow :: GetLaunchProfileInitialization -> String
showsPrec :: Int -> GetLaunchProfileInitialization -> ShowS
$cshowsPrec :: Int -> GetLaunchProfileInitialization -> ShowS
Prelude.Show, (forall x.
 GetLaunchProfileInitialization
 -> Rep GetLaunchProfileInitialization x)
-> (forall x.
    Rep GetLaunchProfileInitialization x
    -> GetLaunchProfileInitialization)
-> Generic GetLaunchProfileInitialization
forall x.
Rep GetLaunchProfileInitialization x
-> GetLaunchProfileInitialization
forall x.
GetLaunchProfileInitialization
-> Rep GetLaunchProfileInitialization x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetLaunchProfileInitialization x
-> GetLaunchProfileInitialization
$cfrom :: forall x.
GetLaunchProfileInitialization
-> Rep GetLaunchProfileInitialization x
Prelude.Generic)

-- |
-- Create a value of 'GetLaunchProfileInitialization' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'studioId', 'getLaunchProfileInitialization_studioId' - The studio ID.
--
-- 'launchProfileProtocolVersions', 'getLaunchProfileInitialization_launchProfileProtocolVersions' - A collection of launch profile protocol versions.
--
-- 'launchPurpose', 'getLaunchProfileInitialization_launchPurpose' - The launch purpose.
--
-- 'launchProfileId', 'getLaunchProfileInitialization_launchProfileId' - The launch profile ID.
--
-- 'platform', 'getLaunchProfileInitialization_platform' - The platform.
newGetLaunchProfileInitialization ::
  -- | 'studioId'
  Prelude.Text ->
  -- | 'launchPurpose'
  Prelude.Text ->
  -- | 'launchProfileId'
  Prelude.Text ->
  -- | 'platform'
  Prelude.Text ->
  GetLaunchProfileInitialization
newGetLaunchProfileInitialization :: Text -> Text -> Text -> Text -> GetLaunchProfileInitialization
newGetLaunchProfileInitialization
  Text
pStudioId_
  Text
pLaunchPurpose_
  Text
pLaunchProfileId_
  Text
pPlatform_ =
    GetLaunchProfileInitialization' :: Text
-> [Text] -> Text -> Text -> Text -> GetLaunchProfileInitialization
GetLaunchProfileInitialization'
      { $sel:studioId:GetLaunchProfileInitialization' :: Text
studioId =
          Text
pStudioId_,
        $sel:launchProfileProtocolVersions:GetLaunchProfileInitialization' :: [Text]
launchProfileProtocolVersions =
          [Text]
forall a. Monoid a => a
Prelude.mempty,
        $sel:launchPurpose:GetLaunchProfileInitialization' :: Text
launchPurpose = Text
pLaunchPurpose_,
        $sel:launchProfileId:GetLaunchProfileInitialization' :: Text
launchProfileId = Text
pLaunchProfileId_,
        $sel:platform:GetLaunchProfileInitialization' :: Text
platform = Text
pPlatform_
      }

-- | The studio ID.
getLaunchProfileInitialization_studioId :: Lens.Lens' GetLaunchProfileInitialization Prelude.Text
getLaunchProfileInitialization_studioId :: (Text -> f Text)
-> GetLaunchProfileInitialization
-> f GetLaunchProfileInitialization
getLaunchProfileInitialization_studioId = (GetLaunchProfileInitialization -> Text)
-> (GetLaunchProfileInitialization
    -> Text -> GetLaunchProfileInitialization)
-> Lens
     GetLaunchProfileInitialization
     GetLaunchProfileInitialization
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetLaunchProfileInitialization' {Text
studioId :: Text
$sel:studioId:GetLaunchProfileInitialization' :: GetLaunchProfileInitialization -> Text
studioId} -> Text
studioId) (\s :: GetLaunchProfileInitialization
s@GetLaunchProfileInitialization' {} Text
a -> GetLaunchProfileInitialization
s {$sel:studioId:GetLaunchProfileInitialization' :: Text
studioId = Text
a} :: GetLaunchProfileInitialization)

-- | A collection of launch profile protocol versions.
getLaunchProfileInitialization_launchProfileProtocolVersions :: Lens.Lens' GetLaunchProfileInitialization [Prelude.Text]
getLaunchProfileInitialization_launchProfileProtocolVersions :: ([Text] -> f [Text])
-> GetLaunchProfileInitialization
-> f GetLaunchProfileInitialization
getLaunchProfileInitialization_launchProfileProtocolVersions = (GetLaunchProfileInitialization -> [Text])
-> (GetLaunchProfileInitialization
    -> [Text] -> GetLaunchProfileInitialization)
-> Lens
     GetLaunchProfileInitialization
     GetLaunchProfileInitialization
     [Text]
     [Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetLaunchProfileInitialization' {[Text]
launchProfileProtocolVersions :: [Text]
$sel:launchProfileProtocolVersions:GetLaunchProfileInitialization' :: GetLaunchProfileInitialization -> [Text]
launchProfileProtocolVersions} -> [Text]
launchProfileProtocolVersions) (\s :: GetLaunchProfileInitialization
s@GetLaunchProfileInitialization' {} [Text]
a -> GetLaunchProfileInitialization
s {$sel:launchProfileProtocolVersions:GetLaunchProfileInitialization' :: [Text]
launchProfileProtocolVersions = [Text]
a} :: GetLaunchProfileInitialization) (([Text] -> f [Text])
 -> GetLaunchProfileInitialization
 -> f GetLaunchProfileInitialization)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> GetLaunchProfileInitialization
-> f GetLaunchProfileInitialization
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Text] -> f [Text]) -> [Text] -> f [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The launch purpose.
getLaunchProfileInitialization_launchPurpose :: Lens.Lens' GetLaunchProfileInitialization Prelude.Text
getLaunchProfileInitialization_launchPurpose :: (Text -> f Text)
-> GetLaunchProfileInitialization
-> f GetLaunchProfileInitialization
getLaunchProfileInitialization_launchPurpose = (GetLaunchProfileInitialization -> Text)
-> (GetLaunchProfileInitialization
    -> Text -> GetLaunchProfileInitialization)
-> Lens
     GetLaunchProfileInitialization
     GetLaunchProfileInitialization
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetLaunchProfileInitialization' {Text
launchPurpose :: Text
$sel:launchPurpose:GetLaunchProfileInitialization' :: GetLaunchProfileInitialization -> Text
launchPurpose} -> Text
launchPurpose) (\s :: GetLaunchProfileInitialization
s@GetLaunchProfileInitialization' {} Text
a -> GetLaunchProfileInitialization
s {$sel:launchPurpose:GetLaunchProfileInitialization' :: Text
launchPurpose = Text
a} :: GetLaunchProfileInitialization)

-- | The launch profile ID.
getLaunchProfileInitialization_launchProfileId :: Lens.Lens' GetLaunchProfileInitialization Prelude.Text
getLaunchProfileInitialization_launchProfileId :: (Text -> f Text)
-> GetLaunchProfileInitialization
-> f GetLaunchProfileInitialization
getLaunchProfileInitialization_launchProfileId = (GetLaunchProfileInitialization -> Text)
-> (GetLaunchProfileInitialization
    -> Text -> GetLaunchProfileInitialization)
-> Lens
     GetLaunchProfileInitialization
     GetLaunchProfileInitialization
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetLaunchProfileInitialization' {Text
launchProfileId :: Text
$sel:launchProfileId:GetLaunchProfileInitialization' :: GetLaunchProfileInitialization -> Text
launchProfileId} -> Text
launchProfileId) (\s :: GetLaunchProfileInitialization
s@GetLaunchProfileInitialization' {} Text
a -> GetLaunchProfileInitialization
s {$sel:launchProfileId:GetLaunchProfileInitialization' :: Text
launchProfileId = Text
a} :: GetLaunchProfileInitialization)

-- | The platform.
getLaunchProfileInitialization_platform :: Lens.Lens' GetLaunchProfileInitialization Prelude.Text
getLaunchProfileInitialization_platform :: (Text -> f Text)
-> GetLaunchProfileInitialization
-> f GetLaunchProfileInitialization
getLaunchProfileInitialization_platform = (GetLaunchProfileInitialization -> Text)
-> (GetLaunchProfileInitialization
    -> Text -> GetLaunchProfileInitialization)
-> Lens
     GetLaunchProfileInitialization
     GetLaunchProfileInitialization
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetLaunchProfileInitialization' {Text
platform :: Text
$sel:platform:GetLaunchProfileInitialization' :: GetLaunchProfileInitialization -> Text
platform} -> Text
platform) (\s :: GetLaunchProfileInitialization
s@GetLaunchProfileInitialization' {} Text
a -> GetLaunchProfileInitialization
s {$sel:platform:GetLaunchProfileInitialization' :: Text
platform = Text
a} :: GetLaunchProfileInitialization)

instance
  Core.AWSRequest
    GetLaunchProfileInitialization
  where
  type
    AWSResponse GetLaunchProfileInitialization =
      GetLaunchProfileInitializationResponse
  request :: GetLaunchProfileInitialization
-> Request GetLaunchProfileInitialization
request = Service
-> GetLaunchProfileInitialization
-> Request GetLaunchProfileInitialization
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy GetLaunchProfileInitialization
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse GetLaunchProfileInitialization)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse GetLaunchProfileInitialization))
-> Logger
-> Service
-> Proxy GetLaunchProfileInitialization
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse GetLaunchProfileInitialization)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe LaunchProfileInitialization
-> Int -> GetLaunchProfileInitializationResponse
GetLaunchProfileInitializationResponse'
            (Maybe LaunchProfileInitialization
 -> Int -> GetLaunchProfileInitializationResponse)
-> Either String (Maybe LaunchProfileInitialization)
-> Either String (Int -> GetLaunchProfileInitializationResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe LaunchProfileInitialization)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"launchProfileInitialization")
            Either String (Int -> GetLaunchProfileInitializationResponse)
-> Either String Int
-> Either String GetLaunchProfileInitializationResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance
  Prelude.Hashable
    GetLaunchProfileInitialization

instance
  Prelude.NFData
    GetLaunchProfileInitialization

instance
  Core.ToHeaders
    GetLaunchProfileInitialization
  where
  toHeaders :: GetLaunchProfileInitialization -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> GetLaunchProfileInitialization -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToPath GetLaunchProfileInitialization where
  toPath :: GetLaunchProfileInitialization -> ByteString
toPath GetLaunchProfileInitialization' {[Text]
Text
platform :: Text
launchProfileId :: Text
launchPurpose :: Text
launchProfileProtocolVersions :: [Text]
studioId :: Text
$sel:platform:GetLaunchProfileInitialization' :: GetLaunchProfileInitialization -> Text
$sel:launchProfileId:GetLaunchProfileInitialization' :: GetLaunchProfileInitialization -> Text
$sel:launchPurpose:GetLaunchProfileInitialization' :: GetLaunchProfileInitialization -> Text
$sel:launchProfileProtocolVersions:GetLaunchProfileInitialization' :: GetLaunchProfileInitialization -> [Text]
$sel:studioId:GetLaunchProfileInitialization' :: GetLaunchProfileInitialization -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/2020-08-01/studios/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
studioId,
        ByteString
"/launch-profiles/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
launchProfileId,
        ByteString
"/init"
      ]

instance Core.ToQuery GetLaunchProfileInitialization where
  toQuery :: GetLaunchProfileInitialization -> QueryString
toQuery GetLaunchProfileInitialization' {[Text]
Text
platform :: Text
launchProfileId :: Text
launchPurpose :: Text
launchProfileProtocolVersions :: [Text]
studioId :: Text
$sel:platform:GetLaunchProfileInitialization' :: GetLaunchProfileInitialization -> Text
$sel:launchProfileId:GetLaunchProfileInitialization' :: GetLaunchProfileInitialization -> Text
$sel:launchPurpose:GetLaunchProfileInitialization' :: GetLaunchProfileInitialization -> Text
$sel:launchProfileProtocolVersions:GetLaunchProfileInitialization' :: GetLaunchProfileInitialization -> [Text]
$sel:studioId:GetLaunchProfileInitialization' :: GetLaunchProfileInitialization -> Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"launchProfileProtocolVersions"
          ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList
            ByteString
"member"
            [Text]
launchProfileProtocolVersions,
        ByteString
"launchPurpose" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
launchPurpose,
        ByteString
"platform" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
platform
      ]

-- | /See:/ 'newGetLaunchProfileInitializationResponse' smart constructor.
data GetLaunchProfileInitializationResponse = GetLaunchProfileInitializationResponse'
  { -- | The launch profile initialization.
    GetLaunchProfileInitializationResponse
-> Maybe LaunchProfileInitialization
launchProfileInitialization :: Prelude.Maybe LaunchProfileInitialization,
    -- | The response's http status code.
    GetLaunchProfileInitializationResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetLaunchProfileInitializationResponse
-> GetLaunchProfileInitializationResponse -> Bool
(GetLaunchProfileInitializationResponse
 -> GetLaunchProfileInitializationResponse -> Bool)
-> (GetLaunchProfileInitializationResponse
    -> GetLaunchProfileInitializationResponse -> Bool)
-> Eq GetLaunchProfileInitializationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetLaunchProfileInitializationResponse
-> GetLaunchProfileInitializationResponse -> Bool
$c/= :: GetLaunchProfileInitializationResponse
-> GetLaunchProfileInitializationResponse -> Bool
== :: GetLaunchProfileInitializationResponse
-> GetLaunchProfileInitializationResponse -> Bool
$c== :: GetLaunchProfileInitializationResponse
-> GetLaunchProfileInitializationResponse -> Bool
Prelude.Eq, ReadPrec [GetLaunchProfileInitializationResponse]
ReadPrec GetLaunchProfileInitializationResponse
Int -> ReadS GetLaunchProfileInitializationResponse
ReadS [GetLaunchProfileInitializationResponse]
(Int -> ReadS GetLaunchProfileInitializationResponse)
-> ReadS [GetLaunchProfileInitializationResponse]
-> ReadPrec GetLaunchProfileInitializationResponse
-> ReadPrec [GetLaunchProfileInitializationResponse]
-> Read GetLaunchProfileInitializationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetLaunchProfileInitializationResponse]
$creadListPrec :: ReadPrec [GetLaunchProfileInitializationResponse]
readPrec :: ReadPrec GetLaunchProfileInitializationResponse
$creadPrec :: ReadPrec GetLaunchProfileInitializationResponse
readList :: ReadS [GetLaunchProfileInitializationResponse]
$creadList :: ReadS [GetLaunchProfileInitializationResponse]
readsPrec :: Int -> ReadS GetLaunchProfileInitializationResponse
$creadsPrec :: Int -> ReadS GetLaunchProfileInitializationResponse
Prelude.Read, Int -> GetLaunchProfileInitializationResponse -> ShowS
[GetLaunchProfileInitializationResponse] -> ShowS
GetLaunchProfileInitializationResponse -> String
(Int -> GetLaunchProfileInitializationResponse -> ShowS)
-> (GetLaunchProfileInitializationResponse -> String)
-> ([GetLaunchProfileInitializationResponse] -> ShowS)
-> Show GetLaunchProfileInitializationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetLaunchProfileInitializationResponse] -> ShowS
$cshowList :: [GetLaunchProfileInitializationResponse] -> ShowS
show :: GetLaunchProfileInitializationResponse -> String
$cshow :: GetLaunchProfileInitializationResponse -> String
showsPrec :: Int -> GetLaunchProfileInitializationResponse -> ShowS
$cshowsPrec :: Int -> GetLaunchProfileInitializationResponse -> ShowS
Prelude.Show, (forall x.
 GetLaunchProfileInitializationResponse
 -> Rep GetLaunchProfileInitializationResponse x)
-> (forall x.
    Rep GetLaunchProfileInitializationResponse x
    -> GetLaunchProfileInitializationResponse)
-> Generic GetLaunchProfileInitializationResponse
forall x.
Rep GetLaunchProfileInitializationResponse x
-> GetLaunchProfileInitializationResponse
forall x.
GetLaunchProfileInitializationResponse
-> Rep GetLaunchProfileInitializationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetLaunchProfileInitializationResponse x
-> GetLaunchProfileInitializationResponse
$cfrom :: forall x.
GetLaunchProfileInitializationResponse
-> Rep GetLaunchProfileInitializationResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetLaunchProfileInitializationResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'launchProfileInitialization', 'getLaunchProfileInitializationResponse_launchProfileInitialization' - The launch profile initialization.
--
-- 'httpStatus', 'getLaunchProfileInitializationResponse_httpStatus' - The response's http status code.
newGetLaunchProfileInitializationResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetLaunchProfileInitializationResponse
newGetLaunchProfileInitializationResponse :: Int -> GetLaunchProfileInitializationResponse
newGetLaunchProfileInitializationResponse
  Int
pHttpStatus_ =
    GetLaunchProfileInitializationResponse' :: Maybe LaunchProfileInitialization
-> Int -> GetLaunchProfileInitializationResponse
GetLaunchProfileInitializationResponse'
      { $sel:launchProfileInitialization:GetLaunchProfileInitializationResponse' :: Maybe LaunchProfileInitialization
launchProfileInitialization =
          Maybe LaunchProfileInitialization
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:GetLaunchProfileInitializationResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The launch profile initialization.
getLaunchProfileInitializationResponse_launchProfileInitialization :: Lens.Lens' GetLaunchProfileInitializationResponse (Prelude.Maybe LaunchProfileInitialization)
getLaunchProfileInitializationResponse_launchProfileInitialization :: (Maybe LaunchProfileInitialization
 -> f (Maybe LaunchProfileInitialization))
-> GetLaunchProfileInitializationResponse
-> f GetLaunchProfileInitializationResponse
getLaunchProfileInitializationResponse_launchProfileInitialization = (GetLaunchProfileInitializationResponse
 -> Maybe LaunchProfileInitialization)
-> (GetLaunchProfileInitializationResponse
    -> Maybe LaunchProfileInitialization
    -> GetLaunchProfileInitializationResponse)
-> Lens
     GetLaunchProfileInitializationResponse
     GetLaunchProfileInitializationResponse
     (Maybe LaunchProfileInitialization)
     (Maybe LaunchProfileInitialization)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetLaunchProfileInitializationResponse' {Maybe LaunchProfileInitialization
launchProfileInitialization :: Maybe LaunchProfileInitialization
$sel:launchProfileInitialization:GetLaunchProfileInitializationResponse' :: GetLaunchProfileInitializationResponse
-> Maybe LaunchProfileInitialization
launchProfileInitialization} -> Maybe LaunchProfileInitialization
launchProfileInitialization) (\s :: GetLaunchProfileInitializationResponse
s@GetLaunchProfileInitializationResponse' {} Maybe LaunchProfileInitialization
a -> GetLaunchProfileInitializationResponse
s {$sel:launchProfileInitialization:GetLaunchProfileInitializationResponse' :: Maybe LaunchProfileInitialization
launchProfileInitialization = Maybe LaunchProfileInitialization
a} :: GetLaunchProfileInitializationResponse)

-- | The response's http status code.
getLaunchProfileInitializationResponse_httpStatus :: Lens.Lens' GetLaunchProfileInitializationResponse Prelude.Int
getLaunchProfileInitializationResponse_httpStatus :: (Int -> f Int)
-> GetLaunchProfileInitializationResponse
-> f GetLaunchProfileInitializationResponse
getLaunchProfileInitializationResponse_httpStatus = (GetLaunchProfileInitializationResponse -> Int)
-> (GetLaunchProfileInitializationResponse
    -> Int -> GetLaunchProfileInitializationResponse)
-> Lens
     GetLaunchProfileInitializationResponse
     GetLaunchProfileInitializationResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetLaunchProfileInitializationResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetLaunchProfileInitializationResponse' :: GetLaunchProfileInitializationResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetLaunchProfileInitializationResponse
s@GetLaunchProfileInitializationResponse' {} Int
a -> GetLaunchProfileInitializationResponse
s {$sel:httpStatus:GetLaunchProfileInitializationResponse' :: Int
httpStatus = Int
a} :: GetLaunchProfileInitializationResponse)

instance
  Prelude.NFData
    GetLaunchProfileInitializationResponse