{-# 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.ELB.SetLoadBalancerListenerSSLCertificate
-- 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)
--
-- Sets the certificate that terminates the specified listener\'s SSL
-- connections. The specified certificate replaces any prior certificate
-- that was used on the same load balancer and port.
--
-- For more information about updating your SSL certificate, see
-- <https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-update-ssl-cert.html Replace the SSL Certificate for Your Load Balancer>
-- in the /Classic Load Balancers Guide/.
module Amazonka.ELB.SetLoadBalancerListenerSSLCertificate
  ( -- * Creating a Request
    SetLoadBalancerListenerSSLCertificate (..),
    newSetLoadBalancerListenerSSLCertificate,

    -- * Request Lenses
    setLoadBalancerListenerSSLCertificate_loadBalancerName,
    setLoadBalancerListenerSSLCertificate_loadBalancerPort,
    setLoadBalancerListenerSSLCertificate_sSLCertificateId,

    -- * Destructuring the Response
    SetLoadBalancerListenerSSLCertificateResponse (..),
    newSetLoadBalancerListenerSSLCertificateResponse,

    -- * Response Lenses
    setLoadBalancerListenerSSLCertificateResponse_httpStatus,
  )
where

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

-- | Contains the parameters for SetLoadBalancerListenerSSLCertificate.
--
-- /See:/ 'newSetLoadBalancerListenerSSLCertificate' smart constructor.
data SetLoadBalancerListenerSSLCertificate = SetLoadBalancerListenerSSLCertificate'
  { -- | The name of the load balancer.
    SetLoadBalancerListenerSSLCertificate -> Text
loadBalancerName :: Prelude.Text,
    -- | The port that uses the specified SSL certificate.
    SetLoadBalancerListenerSSLCertificate -> Int
loadBalancerPort :: Prelude.Int,
    -- | The Amazon Resource Name (ARN) of the SSL certificate.
    SetLoadBalancerListenerSSLCertificate -> Text
sSLCertificateId :: Prelude.Text
  }
  deriving (SetLoadBalancerListenerSSLCertificate
-> SetLoadBalancerListenerSSLCertificate -> Bool
(SetLoadBalancerListenerSSLCertificate
 -> SetLoadBalancerListenerSSLCertificate -> Bool)
-> (SetLoadBalancerListenerSSLCertificate
    -> SetLoadBalancerListenerSSLCertificate -> Bool)
-> Eq SetLoadBalancerListenerSSLCertificate
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SetLoadBalancerListenerSSLCertificate
-> SetLoadBalancerListenerSSLCertificate -> Bool
$c/= :: SetLoadBalancerListenerSSLCertificate
-> SetLoadBalancerListenerSSLCertificate -> Bool
== :: SetLoadBalancerListenerSSLCertificate
-> SetLoadBalancerListenerSSLCertificate -> Bool
$c== :: SetLoadBalancerListenerSSLCertificate
-> SetLoadBalancerListenerSSLCertificate -> Bool
Prelude.Eq, ReadPrec [SetLoadBalancerListenerSSLCertificate]
ReadPrec SetLoadBalancerListenerSSLCertificate
Int -> ReadS SetLoadBalancerListenerSSLCertificate
ReadS [SetLoadBalancerListenerSSLCertificate]
(Int -> ReadS SetLoadBalancerListenerSSLCertificate)
-> ReadS [SetLoadBalancerListenerSSLCertificate]
-> ReadPrec SetLoadBalancerListenerSSLCertificate
-> ReadPrec [SetLoadBalancerListenerSSLCertificate]
-> Read SetLoadBalancerListenerSSLCertificate
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SetLoadBalancerListenerSSLCertificate]
$creadListPrec :: ReadPrec [SetLoadBalancerListenerSSLCertificate]
readPrec :: ReadPrec SetLoadBalancerListenerSSLCertificate
$creadPrec :: ReadPrec SetLoadBalancerListenerSSLCertificate
readList :: ReadS [SetLoadBalancerListenerSSLCertificate]
$creadList :: ReadS [SetLoadBalancerListenerSSLCertificate]
readsPrec :: Int -> ReadS SetLoadBalancerListenerSSLCertificate
$creadsPrec :: Int -> ReadS SetLoadBalancerListenerSSLCertificate
Prelude.Read, Int -> SetLoadBalancerListenerSSLCertificate -> ShowS
[SetLoadBalancerListenerSSLCertificate] -> ShowS
SetLoadBalancerListenerSSLCertificate -> String
(Int -> SetLoadBalancerListenerSSLCertificate -> ShowS)
-> (SetLoadBalancerListenerSSLCertificate -> String)
-> ([SetLoadBalancerListenerSSLCertificate] -> ShowS)
-> Show SetLoadBalancerListenerSSLCertificate
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SetLoadBalancerListenerSSLCertificate] -> ShowS
$cshowList :: [SetLoadBalancerListenerSSLCertificate] -> ShowS
show :: SetLoadBalancerListenerSSLCertificate -> String
$cshow :: SetLoadBalancerListenerSSLCertificate -> String
showsPrec :: Int -> SetLoadBalancerListenerSSLCertificate -> ShowS
$cshowsPrec :: Int -> SetLoadBalancerListenerSSLCertificate -> ShowS
Prelude.Show, (forall x.
 SetLoadBalancerListenerSSLCertificate
 -> Rep SetLoadBalancerListenerSSLCertificate x)
-> (forall x.
    Rep SetLoadBalancerListenerSSLCertificate x
    -> SetLoadBalancerListenerSSLCertificate)
-> Generic SetLoadBalancerListenerSSLCertificate
forall x.
Rep SetLoadBalancerListenerSSLCertificate x
-> SetLoadBalancerListenerSSLCertificate
forall x.
SetLoadBalancerListenerSSLCertificate
-> Rep SetLoadBalancerListenerSSLCertificate x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep SetLoadBalancerListenerSSLCertificate x
-> SetLoadBalancerListenerSSLCertificate
$cfrom :: forall x.
SetLoadBalancerListenerSSLCertificate
-> Rep SetLoadBalancerListenerSSLCertificate x
Prelude.Generic)

-- |
-- Create a value of 'SetLoadBalancerListenerSSLCertificate' 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:
--
-- 'loadBalancerName', 'setLoadBalancerListenerSSLCertificate_loadBalancerName' - The name of the load balancer.
--
-- 'loadBalancerPort', 'setLoadBalancerListenerSSLCertificate_loadBalancerPort' - The port that uses the specified SSL certificate.
--
-- 'sSLCertificateId', 'setLoadBalancerListenerSSLCertificate_sSLCertificateId' - The Amazon Resource Name (ARN) of the SSL certificate.
newSetLoadBalancerListenerSSLCertificate ::
  -- | 'loadBalancerName'
  Prelude.Text ->
  -- | 'loadBalancerPort'
  Prelude.Int ->
  -- | 'sSLCertificateId'
  Prelude.Text ->
  SetLoadBalancerListenerSSLCertificate
newSetLoadBalancerListenerSSLCertificate :: Text -> Int -> Text -> SetLoadBalancerListenerSSLCertificate
newSetLoadBalancerListenerSSLCertificate
  Text
pLoadBalancerName_
  Int
pLoadBalancerPort_
  Text
pSSLCertificateId_ =
    SetLoadBalancerListenerSSLCertificate' :: Text -> Int -> Text -> SetLoadBalancerListenerSSLCertificate
SetLoadBalancerListenerSSLCertificate'
      { $sel:loadBalancerName:SetLoadBalancerListenerSSLCertificate' :: Text
loadBalancerName =
          Text
pLoadBalancerName_,
        $sel:loadBalancerPort:SetLoadBalancerListenerSSLCertificate' :: Int
loadBalancerPort =
          Int
pLoadBalancerPort_,
        $sel:sSLCertificateId:SetLoadBalancerListenerSSLCertificate' :: Text
sSLCertificateId =
          Text
pSSLCertificateId_
      }

-- | The name of the load balancer.
setLoadBalancerListenerSSLCertificate_loadBalancerName :: Lens.Lens' SetLoadBalancerListenerSSLCertificate Prelude.Text
setLoadBalancerListenerSSLCertificate_loadBalancerName :: (Text -> f Text)
-> SetLoadBalancerListenerSSLCertificate
-> f SetLoadBalancerListenerSSLCertificate
setLoadBalancerListenerSSLCertificate_loadBalancerName = (SetLoadBalancerListenerSSLCertificate -> Text)
-> (SetLoadBalancerListenerSSLCertificate
    -> Text -> SetLoadBalancerListenerSSLCertificate)
-> Lens
     SetLoadBalancerListenerSSLCertificate
     SetLoadBalancerListenerSSLCertificate
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SetLoadBalancerListenerSSLCertificate' {Text
loadBalancerName :: Text
$sel:loadBalancerName:SetLoadBalancerListenerSSLCertificate' :: SetLoadBalancerListenerSSLCertificate -> Text
loadBalancerName} -> Text
loadBalancerName) (\s :: SetLoadBalancerListenerSSLCertificate
s@SetLoadBalancerListenerSSLCertificate' {} Text
a -> SetLoadBalancerListenerSSLCertificate
s {$sel:loadBalancerName:SetLoadBalancerListenerSSLCertificate' :: Text
loadBalancerName = Text
a} :: SetLoadBalancerListenerSSLCertificate)

-- | The port that uses the specified SSL certificate.
setLoadBalancerListenerSSLCertificate_loadBalancerPort :: Lens.Lens' SetLoadBalancerListenerSSLCertificate Prelude.Int
setLoadBalancerListenerSSLCertificate_loadBalancerPort :: (Int -> f Int)
-> SetLoadBalancerListenerSSLCertificate
-> f SetLoadBalancerListenerSSLCertificate
setLoadBalancerListenerSSLCertificate_loadBalancerPort = (SetLoadBalancerListenerSSLCertificate -> Int)
-> (SetLoadBalancerListenerSSLCertificate
    -> Int -> SetLoadBalancerListenerSSLCertificate)
-> Lens
     SetLoadBalancerListenerSSLCertificate
     SetLoadBalancerListenerSSLCertificate
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SetLoadBalancerListenerSSLCertificate' {Int
loadBalancerPort :: Int
$sel:loadBalancerPort:SetLoadBalancerListenerSSLCertificate' :: SetLoadBalancerListenerSSLCertificate -> Int
loadBalancerPort} -> Int
loadBalancerPort) (\s :: SetLoadBalancerListenerSSLCertificate
s@SetLoadBalancerListenerSSLCertificate' {} Int
a -> SetLoadBalancerListenerSSLCertificate
s {$sel:loadBalancerPort:SetLoadBalancerListenerSSLCertificate' :: Int
loadBalancerPort = Int
a} :: SetLoadBalancerListenerSSLCertificate)

-- | The Amazon Resource Name (ARN) of the SSL certificate.
setLoadBalancerListenerSSLCertificate_sSLCertificateId :: Lens.Lens' SetLoadBalancerListenerSSLCertificate Prelude.Text
setLoadBalancerListenerSSLCertificate_sSLCertificateId :: (Text -> f Text)
-> SetLoadBalancerListenerSSLCertificate
-> f SetLoadBalancerListenerSSLCertificate
setLoadBalancerListenerSSLCertificate_sSLCertificateId = (SetLoadBalancerListenerSSLCertificate -> Text)
-> (SetLoadBalancerListenerSSLCertificate
    -> Text -> SetLoadBalancerListenerSSLCertificate)
-> Lens
     SetLoadBalancerListenerSSLCertificate
     SetLoadBalancerListenerSSLCertificate
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SetLoadBalancerListenerSSLCertificate' {Text
sSLCertificateId :: Text
$sel:sSLCertificateId:SetLoadBalancerListenerSSLCertificate' :: SetLoadBalancerListenerSSLCertificate -> Text
sSLCertificateId} -> Text
sSLCertificateId) (\s :: SetLoadBalancerListenerSSLCertificate
s@SetLoadBalancerListenerSSLCertificate' {} Text
a -> SetLoadBalancerListenerSSLCertificate
s {$sel:sSLCertificateId:SetLoadBalancerListenerSSLCertificate' :: Text
sSLCertificateId = Text
a} :: SetLoadBalancerListenerSSLCertificate)

instance
  Core.AWSRequest
    SetLoadBalancerListenerSSLCertificate
  where
  type
    AWSResponse
      SetLoadBalancerListenerSSLCertificate =
      SetLoadBalancerListenerSSLCertificateResponse
  request :: SetLoadBalancerListenerSSLCertificate
-> Request SetLoadBalancerListenerSSLCertificate
request = Service
-> SetLoadBalancerListenerSSLCertificate
-> Request SetLoadBalancerListenerSSLCertificate
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
  response :: Logger
-> Service
-> Proxy SetLoadBalancerListenerSSLCertificate
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse SetLoadBalancerListenerSSLCertificate)))
response =
    Text
-> (Int
    -> ResponseHeaders
    -> [Node]
    -> Either
         String (AWSResponse SetLoadBalancerListenerSSLCertificate))
-> Logger
-> Service
-> Proxy SetLoadBalancerListenerSSLCertificate
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse SetLoadBalancerListenerSSLCertificate)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
    -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
      Text
"SetLoadBalancerListenerSSLCertificateResult"
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Int -> SetLoadBalancerListenerSSLCertificateResponse
SetLoadBalancerListenerSSLCertificateResponse'
            (Int -> SetLoadBalancerListenerSSLCertificateResponse)
-> Either String Int
-> Either String SetLoadBalancerListenerSSLCertificateResponse
forall (f :: * -> *) a b. Functor 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
    SetLoadBalancerListenerSSLCertificate

instance
  Prelude.NFData
    SetLoadBalancerListenerSSLCertificate

instance
  Core.ToHeaders
    SetLoadBalancerListenerSSLCertificate
  where
  toHeaders :: SetLoadBalancerListenerSSLCertificate -> ResponseHeaders
toHeaders = ResponseHeaders
-> SetLoadBalancerListenerSSLCertificate -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

instance
  Core.ToPath
    SetLoadBalancerListenerSSLCertificate
  where
  toPath :: SetLoadBalancerListenerSSLCertificate -> ByteString
toPath = ByteString -> SetLoadBalancerListenerSSLCertificate -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance
  Core.ToQuery
    SetLoadBalancerListenerSSLCertificate
  where
  toQuery :: SetLoadBalancerListenerSSLCertificate -> QueryString
toQuery SetLoadBalancerListenerSSLCertificate' {Int
Text
sSLCertificateId :: Text
loadBalancerPort :: Int
loadBalancerName :: Text
$sel:sSLCertificateId:SetLoadBalancerListenerSSLCertificate' :: SetLoadBalancerListenerSSLCertificate -> Text
$sel:loadBalancerPort:SetLoadBalancerListenerSSLCertificate' :: SetLoadBalancerListenerSSLCertificate -> Int
$sel:loadBalancerName:SetLoadBalancerListenerSSLCertificate' :: SetLoadBalancerListenerSSLCertificate -> Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"Action"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ( ByteString
"SetLoadBalancerListenerSSLCertificate" ::
                      Prelude.ByteString
                  ),
        ByteString
"Version"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2012-06-01" :: Prelude.ByteString),
        ByteString
"LoadBalancerName" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
loadBalancerName,
        ByteString
"LoadBalancerPort" ByteString -> Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Int
loadBalancerPort,
        ByteString
"SSLCertificateId" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
sSLCertificateId
      ]

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

-- |
-- Create a value of 'SetLoadBalancerListenerSSLCertificateResponse' 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:
--
-- 'httpStatus', 'setLoadBalancerListenerSSLCertificateResponse_httpStatus' - The response's http status code.
newSetLoadBalancerListenerSSLCertificateResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  SetLoadBalancerListenerSSLCertificateResponse
newSetLoadBalancerListenerSSLCertificateResponse :: Int -> SetLoadBalancerListenerSSLCertificateResponse
newSetLoadBalancerListenerSSLCertificateResponse
  Int
pHttpStatus_ =
    SetLoadBalancerListenerSSLCertificateResponse' :: Int -> SetLoadBalancerListenerSSLCertificateResponse
SetLoadBalancerListenerSSLCertificateResponse'
      { $sel:httpStatus:SetLoadBalancerListenerSSLCertificateResponse' :: Int
httpStatus =
          Int
pHttpStatus_
      }

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

instance
  Prelude.NFData
    SetLoadBalancerListenerSSLCertificateResponse