{-# 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.PinpointEmail.PutConfigurationSetDeliveryOptions
-- 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)
--
-- Associate a configuration set with a dedicated IP pool. You can use
-- dedicated IP pools to create groups of dedicated IP addresses for
-- sending specific types of email.
module Amazonka.PinpointEmail.PutConfigurationSetDeliveryOptions
  ( -- * Creating a Request
    PutConfigurationSetDeliveryOptions (..),
    newPutConfigurationSetDeliveryOptions,

    -- * Request Lenses
    putConfigurationSetDeliveryOptions_sendingPoolName,
    putConfigurationSetDeliveryOptions_tlsPolicy,
    putConfigurationSetDeliveryOptions_configurationSetName,

    -- * Destructuring the Response
    PutConfigurationSetDeliveryOptionsResponse (..),
    newPutConfigurationSetDeliveryOptionsResponse,

    -- * Response Lenses
    putConfigurationSetDeliveryOptionsResponse_httpStatus,
  )
where

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

-- | A request to associate a configuration set with a dedicated IP pool.
--
-- /See:/ 'newPutConfigurationSetDeliveryOptions' smart constructor.
data PutConfigurationSetDeliveryOptions = PutConfigurationSetDeliveryOptions'
  { -- | The name of the dedicated IP pool that you want to associate with the
    -- configuration set.
    PutConfigurationSetDeliveryOptions -> Maybe Text
sendingPoolName :: Prelude.Maybe Prelude.Text,
    -- | Specifies whether messages that use the configuration set are required
    -- to use Transport Layer Security (TLS). If the value is @Require@,
    -- messages are only delivered if a TLS connection can be established. If
    -- the value is @Optional@, messages can be delivered in plain text if a
    -- TLS connection can\'t be established.
    PutConfigurationSetDeliveryOptions -> Maybe TlsPolicy
tlsPolicy :: Prelude.Maybe TlsPolicy,
    -- | The name of the configuration set that you want to associate with a
    -- dedicated IP pool.
    PutConfigurationSetDeliveryOptions -> Text
configurationSetName :: Prelude.Text
  }
  deriving (PutConfigurationSetDeliveryOptions
-> PutConfigurationSetDeliveryOptions -> Bool
(PutConfigurationSetDeliveryOptions
 -> PutConfigurationSetDeliveryOptions -> Bool)
-> (PutConfigurationSetDeliveryOptions
    -> PutConfigurationSetDeliveryOptions -> Bool)
-> Eq PutConfigurationSetDeliveryOptions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutConfigurationSetDeliveryOptions
-> PutConfigurationSetDeliveryOptions -> Bool
$c/= :: PutConfigurationSetDeliveryOptions
-> PutConfigurationSetDeliveryOptions -> Bool
== :: PutConfigurationSetDeliveryOptions
-> PutConfigurationSetDeliveryOptions -> Bool
$c== :: PutConfigurationSetDeliveryOptions
-> PutConfigurationSetDeliveryOptions -> Bool
Prelude.Eq, ReadPrec [PutConfigurationSetDeliveryOptions]
ReadPrec PutConfigurationSetDeliveryOptions
Int -> ReadS PutConfigurationSetDeliveryOptions
ReadS [PutConfigurationSetDeliveryOptions]
(Int -> ReadS PutConfigurationSetDeliveryOptions)
-> ReadS [PutConfigurationSetDeliveryOptions]
-> ReadPrec PutConfigurationSetDeliveryOptions
-> ReadPrec [PutConfigurationSetDeliveryOptions]
-> Read PutConfigurationSetDeliveryOptions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutConfigurationSetDeliveryOptions]
$creadListPrec :: ReadPrec [PutConfigurationSetDeliveryOptions]
readPrec :: ReadPrec PutConfigurationSetDeliveryOptions
$creadPrec :: ReadPrec PutConfigurationSetDeliveryOptions
readList :: ReadS [PutConfigurationSetDeliveryOptions]
$creadList :: ReadS [PutConfigurationSetDeliveryOptions]
readsPrec :: Int -> ReadS PutConfigurationSetDeliveryOptions
$creadsPrec :: Int -> ReadS PutConfigurationSetDeliveryOptions
Prelude.Read, Int -> PutConfigurationSetDeliveryOptions -> ShowS
[PutConfigurationSetDeliveryOptions] -> ShowS
PutConfigurationSetDeliveryOptions -> String
(Int -> PutConfigurationSetDeliveryOptions -> ShowS)
-> (PutConfigurationSetDeliveryOptions -> String)
-> ([PutConfigurationSetDeliveryOptions] -> ShowS)
-> Show PutConfigurationSetDeliveryOptions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutConfigurationSetDeliveryOptions] -> ShowS
$cshowList :: [PutConfigurationSetDeliveryOptions] -> ShowS
show :: PutConfigurationSetDeliveryOptions -> String
$cshow :: PutConfigurationSetDeliveryOptions -> String
showsPrec :: Int -> PutConfigurationSetDeliveryOptions -> ShowS
$cshowsPrec :: Int -> PutConfigurationSetDeliveryOptions -> ShowS
Prelude.Show, (forall x.
 PutConfigurationSetDeliveryOptions
 -> Rep PutConfigurationSetDeliveryOptions x)
-> (forall x.
    Rep PutConfigurationSetDeliveryOptions x
    -> PutConfigurationSetDeliveryOptions)
-> Generic PutConfigurationSetDeliveryOptions
forall x.
Rep PutConfigurationSetDeliveryOptions x
-> PutConfigurationSetDeliveryOptions
forall x.
PutConfigurationSetDeliveryOptions
-> Rep PutConfigurationSetDeliveryOptions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PutConfigurationSetDeliveryOptions x
-> PutConfigurationSetDeliveryOptions
$cfrom :: forall x.
PutConfigurationSetDeliveryOptions
-> Rep PutConfigurationSetDeliveryOptions x
Prelude.Generic)

-- |
-- Create a value of 'PutConfigurationSetDeliveryOptions' 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:
--
-- 'sendingPoolName', 'putConfigurationSetDeliveryOptions_sendingPoolName' - The name of the dedicated IP pool that you want to associate with the
-- configuration set.
--
-- 'tlsPolicy', 'putConfigurationSetDeliveryOptions_tlsPolicy' - Specifies whether messages that use the configuration set are required
-- to use Transport Layer Security (TLS). If the value is @Require@,
-- messages are only delivered if a TLS connection can be established. If
-- the value is @Optional@, messages can be delivered in plain text if a
-- TLS connection can\'t be established.
--
-- 'configurationSetName', 'putConfigurationSetDeliveryOptions_configurationSetName' - The name of the configuration set that you want to associate with a
-- dedicated IP pool.
newPutConfigurationSetDeliveryOptions ::
  -- | 'configurationSetName'
  Prelude.Text ->
  PutConfigurationSetDeliveryOptions
newPutConfigurationSetDeliveryOptions :: Text -> PutConfigurationSetDeliveryOptions
newPutConfigurationSetDeliveryOptions
  Text
pConfigurationSetName_ =
    PutConfigurationSetDeliveryOptions' :: Maybe Text
-> Maybe TlsPolicy -> Text -> PutConfigurationSetDeliveryOptions
PutConfigurationSetDeliveryOptions'
      { $sel:sendingPoolName:PutConfigurationSetDeliveryOptions' :: Maybe Text
sendingPoolName =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:tlsPolicy:PutConfigurationSetDeliveryOptions' :: Maybe TlsPolicy
tlsPolicy = Maybe TlsPolicy
forall a. Maybe a
Prelude.Nothing,
        $sel:configurationSetName:PutConfigurationSetDeliveryOptions' :: Text
configurationSetName =
          Text
pConfigurationSetName_
      }

-- | The name of the dedicated IP pool that you want to associate with the
-- configuration set.
putConfigurationSetDeliveryOptions_sendingPoolName :: Lens.Lens' PutConfigurationSetDeliveryOptions (Prelude.Maybe Prelude.Text)
putConfigurationSetDeliveryOptions_sendingPoolName :: (Maybe Text -> f (Maybe Text))
-> PutConfigurationSetDeliveryOptions
-> f PutConfigurationSetDeliveryOptions
putConfigurationSetDeliveryOptions_sendingPoolName = (PutConfigurationSetDeliveryOptions -> Maybe Text)
-> (PutConfigurationSetDeliveryOptions
    -> Maybe Text -> PutConfigurationSetDeliveryOptions)
-> Lens
     PutConfigurationSetDeliveryOptions
     PutConfigurationSetDeliveryOptions
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutConfigurationSetDeliveryOptions' {Maybe Text
sendingPoolName :: Maybe Text
$sel:sendingPoolName:PutConfigurationSetDeliveryOptions' :: PutConfigurationSetDeliveryOptions -> Maybe Text
sendingPoolName} -> Maybe Text
sendingPoolName) (\s :: PutConfigurationSetDeliveryOptions
s@PutConfigurationSetDeliveryOptions' {} Maybe Text
a -> PutConfigurationSetDeliveryOptions
s {$sel:sendingPoolName:PutConfigurationSetDeliveryOptions' :: Maybe Text
sendingPoolName = Maybe Text
a} :: PutConfigurationSetDeliveryOptions)

-- | Specifies whether messages that use the configuration set are required
-- to use Transport Layer Security (TLS). If the value is @Require@,
-- messages are only delivered if a TLS connection can be established. If
-- the value is @Optional@, messages can be delivered in plain text if a
-- TLS connection can\'t be established.
putConfigurationSetDeliveryOptions_tlsPolicy :: Lens.Lens' PutConfigurationSetDeliveryOptions (Prelude.Maybe TlsPolicy)
putConfigurationSetDeliveryOptions_tlsPolicy :: (Maybe TlsPolicy -> f (Maybe TlsPolicy))
-> PutConfigurationSetDeliveryOptions
-> f PutConfigurationSetDeliveryOptions
putConfigurationSetDeliveryOptions_tlsPolicy = (PutConfigurationSetDeliveryOptions -> Maybe TlsPolicy)
-> (PutConfigurationSetDeliveryOptions
    -> Maybe TlsPolicy -> PutConfigurationSetDeliveryOptions)
-> Lens
     PutConfigurationSetDeliveryOptions
     PutConfigurationSetDeliveryOptions
     (Maybe TlsPolicy)
     (Maybe TlsPolicy)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutConfigurationSetDeliveryOptions' {Maybe TlsPolicy
tlsPolicy :: Maybe TlsPolicy
$sel:tlsPolicy:PutConfigurationSetDeliveryOptions' :: PutConfigurationSetDeliveryOptions -> Maybe TlsPolicy
tlsPolicy} -> Maybe TlsPolicy
tlsPolicy) (\s :: PutConfigurationSetDeliveryOptions
s@PutConfigurationSetDeliveryOptions' {} Maybe TlsPolicy
a -> PutConfigurationSetDeliveryOptions
s {$sel:tlsPolicy:PutConfigurationSetDeliveryOptions' :: Maybe TlsPolicy
tlsPolicy = Maybe TlsPolicy
a} :: PutConfigurationSetDeliveryOptions)

-- | The name of the configuration set that you want to associate with a
-- dedicated IP pool.
putConfigurationSetDeliveryOptions_configurationSetName :: Lens.Lens' PutConfigurationSetDeliveryOptions Prelude.Text
putConfigurationSetDeliveryOptions_configurationSetName :: (Text -> f Text)
-> PutConfigurationSetDeliveryOptions
-> f PutConfigurationSetDeliveryOptions
putConfigurationSetDeliveryOptions_configurationSetName = (PutConfigurationSetDeliveryOptions -> Text)
-> (PutConfigurationSetDeliveryOptions
    -> Text -> PutConfigurationSetDeliveryOptions)
-> Lens
     PutConfigurationSetDeliveryOptions
     PutConfigurationSetDeliveryOptions
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutConfigurationSetDeliveryOptions' {Text
configurationSetName :: Text
$sel:configurationSetName:PutConfigurationSetDeliveryOptions' :: PutConfigurationSetDeliveryOptions -> Text
configurationSetName} -> Text
configurationSetName) (\s :: PutConfigurationSetDeliveryOptions
s@PutConfigurationSetDeliveryOptions' {} Text
a -> PutConfigurationSetDeliveryOptions
s {$sel:configurationSetName:PutConfigurationSetDeliveryOptions' :: Text
configurationSetName = Text
a} :: PutConfigurationSetDeliveryOptions)

instance
  Core.AWSRequest
    PutConfigurationSetDeliveryOptions
  where
  type
    AWSResponse PutConfigurationSetDeliveryOptions =
      PutConfigurationSetDeliveryOptionsResponse
  request :: PutConfigurationSetDeliveryOptions
-> Request PutConfigurationSetDeliveryOptions
request = Service
-> PutConfigurationSetDeliveryOptions
-> Request PutConfigurationSetDeliveryOptions
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy PutConfigurationSetDeliveryOptions
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse PutConfigurationSetDeliveryOptions)))
response =
    (Int
 -> ResponseHeaders
 -> ()
 -> Either String (AWSResponse PutConfigurationSetDeliveryOptions))
-> Logger
-> Service
-> Proxy PutConfigurationSetDeliveryOptions
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse PutConfigurationSetDeliveryOptions)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> () -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveEmpty
      ( \Int
s ResponseHeaders
h ()
x ->
          Int -> PutConfigurationSetDeliveryOptionsResponse
PutConfigurationSetDeliveryOptionsResponse'
            (Int -> PutConfigurationSetDeliveryOptionsResponse)
-> Either String Int
-> Either String PutConfigurationSetDeliveryOptionsResponse
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
    PutConfigurationSetDeliveryOptions

instance
  Prelude.NFData
    PutConfigurationSetDeliveryOptions

instance
  Core.ToHeaders
    PutConfigurationSetDeliveryOptions
  where
  toHeaders :: PutConfigurationSetDeliveryOptions -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> PutConfigurationSetDeliveryOptions -> 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.ToJSON
    PutConfigurationSetDeliveryOptions
  where
  toJSON :: PutConfigurationSetDeliveryOptions -> Value
toJSON PutConfigurationSetDeliveryOptions' {Maybe Text
Maybe TlsPolicy
Text
configurationSetName :: Text
tlsPolicy :: Maybe TlsPolicy
sendingPoolName :: Maybe Text
$sel:configurationSetName:PutConfigurationSetDeliveryOptions' :: PutConfigurationSetDeliveryOptions -> Text
$sel:tlsPolicy:PutConfigurationSetDeliveryOptions' :: PutConfigurationSetDeliveryOptions -> Maybe TlsPolicy
$sel:sendingPoolName:PutConfigurationSetDeliveryOptions' :: PutConfigurationSetDeliveryOptions -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"SendingPoolName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
sendingPoolName,
            (Text
"TlsPolicy" Text -> TlsPolicy -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (TlsPolicy -> Pair) -> Maybe TlsPolicy -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TlsPolicy
tlsPolicy
          ]
      )

instance
  Core.ToPath
    PutConfigurationSetDeliveryOptions
  where
  toPath :: PutConfigurationSetDeliveryOptions -> ByteString
toPath PutConfigurationSetDeliveryOptions' {Maybe Text
Maybe TlsPolicy
Text
configurationSetName :: Text
tlsPolicy :: Maybe TlsPolicy
sendingPoolName :: Maybe Text
$sel:configurationSetName:PutConfigurationSetDeliveryOptions' :: PutConfigurationSetDeliveryOptions -> Text
$sel:tlsPolicy:PutConfigurationSetDeliveryOptions' :: PutConfigurationSetDeliveryOptions -> Maybe TlsPolicy
$sel:sendingPoolName:PutConfigurationSetDeliveryOptions' :: PutConfigurationSetDeliveryOptions -> Maybe Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/v1/email/configuration-sets/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
configurationSetName,
        ByteString
"/delivery-options"
      ]

instance
  Core.ToQuery
    PutConfigurationSetDeliveryOptions
  where
  toQuery :: PutConfigurationSetDeliveryOptions -> QueryString
toQuery = QueryString -> PutConfigurationSetDeliveryOptions -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | An HTTP 200 response if the request succeeds, or an error message if the
-- request fails.
--
-- /See:/ 'newPutConfigurationSetDeliveryOptionsResponse' smart constructor.
data PutConfigurationSetDeliveryOptionsResponse = PutConfigurationSetDeliveryOptionsResponse'
  { -- | The response's http status code.
    PutConfigurationSetDeliveryOptionsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (PutConfigurationSetDeliveryOptionsResponse
-> PutConfigurationSetDeliveryOptionsResponse -> Bool
(PutConfigurationSetDeliveryOptionsResponse
 -> PutConfigurationSetDeliveryOptionsResponse -> Bool)
-> (PutConfigurationSetDeliveryOptionsResponse
    -> PutConfigurationSetDeliveryOptionsResponse -> Bool)
-> Eq PutConfigurationSetDeliveryOptionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutConfigurationSetDeliveryOptionsResponse
-> PutConfigurationSetDeliveryOptionsResponse -> Bool
$c/= :: PutConfigurationSetDeliveryOptionsResponse
-> PutConfigurationSetDeliveryOptionsResponse -> Bool
== :: PutConfigurationSetDeliveryOptionsResponse
-> PutConfigurationSetDeliveryOptionsResponse -> Bool
$c== :: PutConfigurationSetDeliveryOptionsResponse
-> PutConfigurationSetDeliveryOptionsResponse -> Bool
Prelude.Eq, ReadPrec [PutConfigurationSetDeliveryOptionsResponse]
ReadPrec PutConfigurationSetDeliveryOptionsResponse
Int -> ReadS PutConfigurationSetDeliveryOptionsResponse
ReadS [PutConfigurationSetDeliveryOptionsResponse]
(Int -> ReadS PutConfigurationSetDeliveryOptionsResponse)
-> ReadS [PutConfigurationSetDeliveryOptionsResponse]
-> ReadPrec PutConfigurationSetDeliveryOptionsResponse
-> ReadPrec [PutConfigurationSetDeliveryOptionsResponse]
-> Read PutConfigurationSetDeliveryOptionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutConfigurationSetDeliveryOptionsResponse]
$creadListPrec :: ReadPrec [PutConfigurationSetDeliveryOptionsResponse]
readPrec :: ReadPrec PutConfigurationSetDeliveryOptionsResponse
$creadPrec :: ReadPrec PutConfigurationSetDeliveryOptionsResponse
readList :: ReadS [PutConfigurationSetDeliveryOptionsResponse]
$creadList :: ReadS [PutConfigurationSetDeliveryOptionsResponse]
readsPrec :: Int -> ReadS PutConfigurationSetDeliveryOptionsResponse
$creadsPrec :: Int -> ReadS PutConfigurationSetDeliveryOptionsResponse
Prelude.Read, Int -> PutConfigurationSetDeliveryOptionsResponse -> ShowS
[PutConfigurationSetDeliveryOptionsResponse] -> ShowS
PutConfigurationSetDeliveryOptionsResponse -> String
(Int -> PutConfigurationSetDeliveryOptionsResponse -> ShowS)
-> (PutConfigurationSetDeliveryOptionsResponse -> String)
-> ([PutConfigurationSetDeliveryOptionsResponse] -> ShowS)
-> Show PutConfigurationSetDeliveryOptionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutConfigurationSetDeliveryOptionsResponse] -> ShowS
$cshowList :: [PutConfigurationSetDeliveryOptionsResponse] -> ShowS
show :: PutConfigurationSetDeliveryOptionsResponse -> String
$cshow :: PutConfigurationSetDeliveryOptionsResponse -> String
showsPrec :: Int -> PutConfigurationSetDeliveryOptionsResponse -> ShowS
$cshowsPrec :: Int -> PutConfigurationSetDeliveryOptionsResponse -> ShowS
Prelude.Show, (forall x.
 PutConfigurationSetDeliveryOptionsResponse
 -> Rep PutConfigurationSetDeliveryOptionsResponse x)
-> (forall x.
    Rep PutConfigurationSetDeliveryOptionsResponse x
    -> PutConfigurationSetDeliveryOptionsResponse)
-> Generic PutConfigurationSetDeliveryOptionsResponse
forall x.
Rep PutConfigurationSetDeliveryOptionsResponse x
-> PutConfigurationSetDeliveryOptionsResponse
forall x.
PutConfigurationSetDeliveryOptionsResponse
-> Rep PutConfigurationSetDeliveryOptionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PutConfigurationSetDeliveryOptionsResponse x
-> PutConfigurationSetDeliveryOptionsResponse
$cfrom :: forall x.
PutConfigurationSetDeliveryOptionsResponse
-> Rep PutConfigurationSetDeliveryOptionsResponse x
Prelude.Generic)

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

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

instance
  Prelude.NFData
    PutConfigurationSetDeliveryOptionsResponse