{-# 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.Pinpoint.UpdateApnsSandboxChannel
-- 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)
--
-- Enables the APNs sandbox channel for an application or updates the
-- status and settings of the APNs sandbox channel for an application.
module Amazonka.Pinpoint.UpdateApnsSandboxChannel
  ( -- * Creating a Request
    UpdateApnsSandboxChannel (..),
    newUpdateApnsSandboxChannel,

    -- * Request Lenses
    updateApnsSandboxChannel_applicationId,
    updateApnsSandboxChannel_aPNSSandboxChannelRequest,

    -- * Destructuring the Response
    UpdateApnsSandboxChannelResponse (..),
    newUpdateApnsSandboxChannelResponse,

    -- * Response Lenses
    updateApnsSandboxChannelResponse_httpStatus,
    updateApnsSandboxChannelResponse_aPNSSandboxChannelResponse,
  )
where

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

-- | /See:/ 'newUpdateApnsSandboxChannel' smart constructor.
data UpdateApnsSandboxChannel = UpdateApnsSandboxChannel'
  { -- | The unique identifier for the application. This identifier is displayed
    -- as the __Project ID__ on the Amazon Pinpoint console.
    UpdateApnsSandboxChannel -> Text
applicationId :: Prelude.Text,
    UpdateApnsSandboxChannel -> APNSSandboxChannelRequest
aPNSSandboxChannelRequest :: APNSSandboxChannelRequest
  }
  deriving (UpdateApnsSandboxChannel -> UpdateApnsSandboxChannel -> Bool
(UpdateApnsSandboxChannel -> UpdateApnsSandboxChannel -> Bool)
-> (UpdateApnsSandboxChannel -> UpdateApnsSandboxChannel -> Bool)
-> Eq UpdateApnsSandboxChannel
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateApnsSandboxChannel -> UpdateApnsSandboxChannel -> Bool
$c/= :: UpdateApnsSandboxChannel -> UpdateApnsSandboxChannel -> Bool
== :: UpdateApnsSandboxChannel -> UpdateApnsSandboxChannel -> Bool
$c== :: UpdateApnsSandboxChannel -> UpdateApnsSandboxChannel -> Bool
Prelude.Eq, ReadPrec [UpdateApnsSandboxChannel]
ReadPrec UpdateApnsSandboxChannel
Int -> ReadS UpdateApnsSandboxChannel
ReadS [UpdateApnsSandboxChannel]
(Int -> ReadS UpdateApnsSandboxChannel)
-> ReadS [UpdateApnsSandboxChannel]
-> ReadPrec UpdateApnsSandboxChannel
-> ReadPrec [UpdateApnsSandboxChannel]
-> Read UpdateApnsSandboxChannel
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateApnsSandboxChannel]
$creadListPrec :: ReadPrec [UpdateApnsSandboxChannel]
readPrec :: ReadPrec UpdateApnsSandboxChannel
$creadPrec :: ReadPrec UpdateApnsSandboxChannel
readList :: ReadS [UpdateApnsSandboxChannel]
$creadList :: ReadS [UpdateApnsSandboxChannel]
readsPrec :: Int -> ReadS UpdateApnsSandboxChannel
$creadsPrec :: Int -> ReadS UpdateApnsSandboxChannel
Prelude.Read, Int -> UpdateApnsSandboxChannel -> ShowS
[UpdateApnsSandboxChannel] -> ShowS
UpdateApnsSandboxChannel -> String
(Int -> UpdateApnsSandboxChannel -> ShowS)
-> (UpdateApnsSandboxChannel -> String)
-> ([UpdateApnsSandboxChannel] -> ShowS)
-> Show UpdateApnsSandboxChannel
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateApnsSandboxChannel] -> ShowS
$cshowList :: [UpdateApnsSandboxChannel] -> ShowS
show :: UpdateApnsSandboxChannel -> String
$cshow :: UpdateApnsSandboxChannel -> String
showsPrec :: Int -> UpdateApnsSandboxChannel -> ShowS
$cshowsPrec :: Int -> UpdateApnsSandboxChannel -> ShowS
Prelude.Show, (forall x.
 UpdateApnsSandboxChannel -> Rep UpdateApnsSandboxChannel x)
-> (forall x.
    Rep UpdateApnsSandboxChannel x -> UpdateApnsSandboxChannel)
-> Generic UpdateApnsSandboxChannel
forall x.
Rep UpdateApnsSandboxChannel x -> UpdateApnsSandboxChannel
forall x.
UpdateApnsSandboxChannel -> Rep UpdateApnsSandboxChannel x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateApnsSandboxChannel x -> UpdateApnsSandboxChannel
$cfrom :: forall x.
UpdateApnsSandboxChannel -> Rep UpdateApnsSandboxChannel x
Prelude.Generic)

-- |
-- Create a value of 'UpdateApnsSandboxChannel' 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:
--
-- 'applicationId', 'updateApnsSandboxChannel_applicationId' - The unique identifier for the application. This identifier is displayed
-- as the __Project ID__ on the Amazon Pinpoint console.
--
-- 'aPNSSandboxChannelRequest', 'updateApnsSandboxChannel_aPNSSandboxChannelRequest' - Undocumented member.
newUpdateApnsSandboxChannel ::
  -- | 'applicationId'
  Prelude.Text ->
  -- | 'aPNSSandboxChannelRequest'
  APNSSandboxChannelRequest ->
  UpdateApnsSandboxChannel
newUpdateApnsSandboxChannel :: Text -> APNSSandboxChannelRequest -> UpdateApnsSandboxChannel
newUpdateApnsSandboxChannel
  Text
pApplicationId_
  APNSSandboxChannelRequest
pAPNSSandboxChannelRequest_ =
    UpdateApnsSandboxChannel' :: Text -> APNSSandboxChannelRequest -> UpdateApnsSandboxChannel
UpdateApnsSandboxChannel'
      { $sel:applicationId:UpdateApnsSandboxChannel' :: Text
applicationId =
          Text
pApplicationId_,
        $sel:aPNSSandboxChannelRequest:UpdateApnsSandboxChannel' :: APNSSandboxChannelRequest
aPNSSandboxChannelRequest =
          APNSSandboxChannelRequest
pAPNSSandboxChannelRequest_
      }

-- | The unique identifier for the application. This identifier is displayed
-- as the __Project ID__ on the Amazon Pinpoint console.
updateApnsSandboxChannel_applicationId :: Lens.Lens' UpdateApnsSandboxChannel Prelude.Text
updateApnsSandboxChannel_applicationId :: (Text -> f Text)
-> UpdateApnsSandboxChannel -> f UpdateApnsSandboxChannel
updateApnsSandboxChannel_applicationId = (UpdateApnsSandboxChannel -> Text)
-> (UpdateApnsSandboxChannel -> Text -> UpdateApnsSandboxChannel)
-> Lens UpdateApnsSandboxChannel UpdateApnsSandboxChannel Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateApnsSandboxChannel' {Text
applicationId :: Text
$sel:applicationId:UpdateApnsSandboxChannel' :: UpdateApnsSandboxChannel -> Text
applicationId} -> Text
applicationId) (\s :: UpdateApnsSandboxChannel
s@UpdateApnsSandboxChannel' {} Text
a -> UpdateApnsSandboxChannel
s {$sel:applicationId:UpdateApnsSandboxChannel' :: Text
applicationId = Text
a} :: UpdateApnsSandboxChannel)

-- | Undocumented member.
updateApnsSandboxChannel_aPNSSandboxChannelRequest :: Lens.Lens' UpdateApnsSandboxChannel APNSSandboxChannelRequest
updateApnsSandboxChannel_aPNSSandboxChannelRequest :: (APNSSandboxChannelRequest -> f APNSSandboxChannelRequest)
-> UpdateApnsSandboxChannel -> f UpdateApnsSandboxChannel
updateApnsSandboxChannel_aPNSSandboxChannelRequest = (UpdateApnsSandboxChannel -> APNSSandboxChannelRequest)
-> (UpdateApnsSandboxChannel
    -> APNSSandboxChannelRequest -> UpdateApnsSandboxChannel)
-> Lens
     UpdateApnsSandboxChannel
     UpdateApnsSandboxChannel
     APNSSandboxChannelRequest
     APNSSandboxChannelRequest
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateApnsSandboxChannel' {APNSSandboxChannelRequest
aPNSSandboxChannelRequest :: APNSSandboxChannelRequest
$sel:aPNSSandboxChannelRequest:UpdateApnsSandboxChannel' :: UpdateApnsSandboxChannel -> APNSSandboxChannelRequest
aPNSSandboxChannelRequest} -> APNSSandboxChannelRequest
aPNSSandboxChannelRequest) (\s :: UpdateApnsSandboxChannel
s@UpdateApnsSandboxChannel' {} APNSSandboxChannelRequest
a -> UpdateApnsSandboxChannel
s {$sel:aPNSSandboxChannelRequest:UpdateApnsSandboxChannel' :: APNSSandboxChannelRequest
aPNSSandboxChannelRequest = APNSSandboxChannelRequest
a} :: UpdateApnsSandboxChannel)

instance Core.AWSRequest UpdateApnsSandboxChannel where
  type
    AWSResponse UpdateApnsSandboxChannel =
      UpdateApnsSandboxChannelResponse
  request :: UpdateApnsSandboxChannel -> Request UpdateApnsSandboxChannel
request = Service
-> UpdateApnsSandboxChannel -> Request UpdateApnsSandboxChannel
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy UpdateApnsSandboxChannel
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdateApnsSandboxChannel)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse UpdateApnsSandboxChannel))
-> Logger
-> Service
-> Proxy UpdateApnsSandboxChannel
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdateApnsSandboxChannel)))
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 ->
          Int
-> APNSSandboxChannelResponse -> UpdateApnsSandboxChannelResponse
UpdateApnsSandboxChannelResponse'
            (Int
 -> APNSSandboxChannelResponse -> UpdateApnsSandboxChannelResponse)
-> Either String Int
-> Either
     String
     (APNSSandboxChannelResponse -> UpdateApnsSandboxChannelResponse)
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))
            Either
  String
  (APNSSandboxChannelResponse -> UpdateApnsSandboxChannelResponse)
-> Either String APNSSandboxChannelResponse
-> Either String UpdateApnsSandboxChannelResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object -> Either String APNSSandboxChannelResponse
forall a. FromJSON a => Object -> Either String a
Core.eitherParseJSON Object
x)
      )

instance Prelude.Hashable UpdateApnsSandboxChannel

instance Prelude.NFData UpdateApnsSandboxChannel

instance Core.ToHeaders UpdateApnsSandboxChannel where
  toHeaders :: UpdateApnsSandboxChannel -> ResponseHeaders
toHeaders =
    ResponseHeaders -> UpdateApnsSandboxChannel -> 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 UpdateApnsSandboxChannel where
  toJSON :: UpdateApnsSandboxChannel -> Value
toJSON UpdateApnsSandboxChannel' {Text
APNSSandboxChannelRequest
aPNSSandboxChannelRequest :: APNSSandboxChannelRequest
applicationId :: Text
$sel:aPNSSandboxChannelRequest:UpdateApnsSandboxChannel' :: UpdateApnsSandboxChannel -> APNSSandboxChannelRequest
$sel:applicationId:UpdateApnsSandboxChannel' :: UpdateApnsSandboxChannel -> Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              ( Text
"APNSSandboxChannelRequest"
                  Text -> APNSSandboxChannelRequest -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= APNSSandboxChannelRequest
aPNSSandboxChannelRequest
              )
          ]
      )

instance Core.ToPath UpdateApnsSandboxChannel where
  toPath :: UpdateApnsSandboxChannel -> ByteString
toPath UpdateApnsSandboxChannel' {Text
APNSSandboxChannelRequest
aPNSSandboxChannelRequest :: APNSSandboxChannelRequest
applicationId :: Text
$sel:aPNSSandboxChannelRequest:UpdateApnsSandboxChannel' :: UpdateApnsSandboxChannel -> APNSSandboxChannelRequest
$sel:applicationId:UpdateApnsSandboxChannel' :: UpdateApnsSandboxChannel -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/v1/apps/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
applicationId,
        ByteString
"/channels/apns_sandbox"
      ]

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

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

-- |
-- Create a value of 'UpdateApnsSandboxChannelResponse' 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', 'updateApnsSandboxChannelResponse_httpStatus' - The response's http status code.
--
-- 'aPNSSandboxChannelResponse', 'updateApnsSandboxChannelResponse_aPNSSandboxChannelResponse' - Undocumented member.
newUpdateApnsSandboxChannelResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'aPNSSandboxChannelResponse'
  APNSSandboxChannelResponse ->
  UpdateApnsSandboxChannelResponse
newUpdateApnsSandboxChannelResponse :: Int
-> APNSSandboxChannelResponse -> UpdateApnsSandboxChannelResponse
newUpdateApnsSandboxChannelResponse
  Int
pHttpStatus_
  APNSSandboxChannelResponse
pAPNSSandboxChannelResponse_ =
    UpdateApnsSandboxChannelResponse' :: Int
-> APNSSandboxChannelResponse -> UpdateApnsSandboxChannelResponse
UpdateApnsSandboxChannelResponse'
      { $sel:httpStatus:UpdateApnsSandboxChannelResponse' :: Int
httpStatus =
          Int
pHttpStatus_,
        $sel:aPNSSandboxChannelResponse:UpdateApnsSandboxChannelResponse' :: APNSSandboxChannelResponse
aPNSSandboxChannelResponse =
          APNSSandboxChannelResponse
pAPNSSandboxChannelResponse_
      }

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

-- | Undocumented member.
updateApnsSandboxChannelResponse_aPNSSandboxChannelResponse :: Lens.Lens' UpdateApnsSandboxChannelResponse APNSSandboxChannelResponse
updateApnsSandboxChannelResponse_aPNSSandboxChannelResponse :: (APNSSandboxChannelResponse -> f APNSSandboxChannelResponse)
-> UpdateApnsSandboxChannelResponse
-> f UpdateApnsSandboxChannelResponse
updateApnsSandboxChannelResponse_aPNSSandboxChannelResponse = (UpdateApnsSandboxChannelResponse -> APNSSandboxChannelResponse)
-> (UpdateApnsSandboxChannelResponse
    -> APNSSandboxChannelResponse -> UpdateApnsSandboxChannelResponse)
-> Lens
     UpdateApnsSandboxChannelResponse
     UpdateApnsSandboxChannelResponse
     APNSSandboxChannelResponse
     APNSSandboxChannelResponse
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateApnsSandboxChannelResponse' {APNSSandboxChannelResponse
aPNSSandboxChannelResponse :: APNSSandboxChannelResponse
$sel:aPNSSandboxChannelResponse:UpdateApnsSandboxChannelResponse' :: UpdateApnsSandboxChannelResponse -> APNSSandboxChannelResponse
aPNSSandboxChannelResponse} -> APNSSandboxChannelResponse
aPNSSandboxChannelResponse) (\s :: UpdateApnsSandboxChannelResponse
s@UpdateApnsSandboxChannelResponse' {} APNSSandboxChannelResponse
a -> UpdateApnsSandboxChannelResponse
s {$sel:aPNSSandboxChannelResponse:UpdateApnsSandboxChannelResponse' :: APNSSandboxChannelResponse
aPNSSandboxChannelResponse = APNSSandboxChannelResponse
a} :: UpdateApnsSandboxChannelResponse)

instance
  Prelude.NFData
    UpdateApnsSandboxChannelResponse