{-# 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.SSMSAP.UpdateApplicationSettings
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.SSMSAP.UpdateApplicationSettings
  ( -- * Creating a Request
    UpdateApplicationSettings (..),
    newUpdateApplicationSettings,

    -- * Request Lenses
    updateApplicationSettings_credentialsToAddOrUpdate,
    updateApplicationSettings_credentialsToRemove,
    updateApplicationSettings_applicationId,

    -- * Destructuring the Response
    UpdateApplicationSettingsResponse (..),
    newUpdateApplicationSettingsResponse,

    -- * Response Lenses
    updateApplicationSettingsResponse_message,
    updateApplicationSettingsResponse_operationIds,
    updateApplicationSettingsResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SSMSAP.Types

-- | /See:/ 'newUpdateApplicationSettings' smart constructor.
data UpdateApplicationSettings = UpdateApplicationSettings'
  { UpdateApplicationSettings -> Maybe (NonEmpty ApplicationCredential)
credentialsToAddOrUpdate :: Prelude.Maybe (Prelude.NonEmpty ApplicationCredential),
    UpdateApplicationSettings -> Maybe (NonEmpty ApplicationCredential)
credentialsToRemove :: Prelude.Maybe (Prelude.NonEmpty ApplicationCredential),
    UpdateApplicationSettings -> Text
applicationId :: Prelude.Text
  }
  deriving (UpdateApplicationSettings -> UpdateApplicationSettings -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateApplicationSettings -> UpdateApplicationSettings -> Bool
$c/= :: UpdateApplicationSettings -> UpdateApplicationSettings -> Bool
== :: UpdateApplicationSettings -> UpdateApplicationSettings -> Bool
$c== :: UpdateApplicationSettings -> UpdateApplicationSettings -> Bool
Prelude.Eq, Int -> UpdateApplicationSettings -> ShowS
[UpdateApplicationSettings] -> ShowS
UpdateApplicationSettings -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateApplicationSettings] -> ShowS
$cshowList :: [UpdateApplicationSettings] -> ShowS
show :: UpdateApplicationSettings -> String
$cshow :: UpdateApplicationSettings -> String
showsPrec :: Int -> UpdateApplicationSettings -> ShowS
$cshowsPrec :: Int -> UpdateApplicationSettings -> ShowS
Prelude.Show, forall x.
Rep UpdateApplicationSettings x -> UpdateApplicationSettings
forall x.
UpdateApplicationSettings -> Rep UpdateApplicationSettings x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateApplicationSettings x -> UpdateApplicationSettings
$cfrom :: forall x.
UpdateApplicationSettings -> Rep UpdateApplicationSettings x
Prelude.Generic)

-- |
-- Create a value of 'UpdateApplicationSettings' 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:
--
-- 'credentialsToAddOrUpdate', 'updateApplicationSettings_credentialsToAddOrUpdate' -
--
-- 'credentialsToRemove', 'updateApplicationSettings_credentialsToRemove' -
--
-- 'applicationId', 'updateApplicationSettings_applicationId' -
newUpdateApplicationSettings ::
  -- | 'applicationId'
  Prelude.Text ->
  UpdateApplicationSettings
newUpdateApplicationSettings :: Text -> UpdateApplicationSettings
newUpdateApplicationSettings Text
pApplicationId_ =
  UpdateApplicationSettings'
    { $sel:credentialsToAddOrUpdate:UpdateApplicationSettings' :: Maybe (NonEmpty ApplicationCredential)
credentialsToAddOrUpdate =
        forall a. Maybe a
Prelude.Nothing,
      $sel:credentialsToRemove:UpdateApplicationSettings' :: Maybe (NonEmpty ApplicationCredential)
credentialsToRemove = forall a. Maybe a
Prelude.Nothing,
      $sel:applicationId:UpdateApplicationSettings' :: Text
applicationId = Text
pApplicationId_
    }

updateApplicationSettings_credentialsToAddOrUpdate :: Lens.Lens' UpdateApplicationSettings (Prelude.Maybe (Prelude.NonEmpty ApplicationCredential))
updateApplicationSettings_credentialsToAddOrUpdate :: Lens'
  UpdateApplicationSettings (Maybe (NonEmpty ApplicationCredential))
updateApplicationSettings_credentialsToAddOrUpdate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateApplicationSettings' {Maybe (NonEmpty ApplicationCredential)
credentialsToAddOrUpdate :: Maybe (NonEmpty ApplicationCredential)
$sel:credentialsToAddOrUpdate:UpdateApplicationSettings' :: UpdateApplicationSettings -> Maybe (NonEmpty ApplicationCredential)
credentialsToAddOrUpdate} -> Maybe (NonEmpty ApplicationCredential)
credentialsToAddOrUpdate) (\s :: UpdateApplicationSettings
s@UpdateApplicationSettings' {} Maybe (NonEmpty ApplicationCredential)
a -> UpdateApplicationSettings
s {$sel:credentialsToAddOrUpdate:UpdateApplicationSettings' :: Maybe (NonEmpty ApplicationCredential)
credentialsToAddOrUpdate = Maybe (NonEmpty ApplicationCredential)
a} :: UpdateApplicationSettings) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

updateApplicationSettings_credentialsToRemove :: Lens.Lens' UpdateApplicationSettings (Prelude.Maybe (Prelude.NonEmpty ApplicationCredential))
updateApplicationSettings_credentialsToRemove :: Lens'
  UpdateApplicationSettings (Maybe (NonEmpty ApplicationCredential))
updateApplicationSettings_credentialsToRemove = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateApplicationSettings' {Maybe (NonEmpty ApplicationCredential)
credentialsToRemove :: Maybe (NonEmpty ApplicationCredential)
$sel:credentialsToRemove:UpdateApplicationSettings' :: UpdateApplicationSettings -> Maybe (NonEmpty ApplicationCredential)
credentialsToRemove} -> Maybe (NonEmpty ApplicationCredential)
credentialsToRemove) (\s :: UpdateApplicationSettings
s@UpdateApplicationSettings' {} Maybe (NonEmpty ApplicationCredential)
a -> UpdateApplicationSettings
s {$sel:credentialsToRemove:UpdateApplicationSettings' :: Maybe (NonEmpty ApplicationCredential)
credentialsToRemove = Maybe (NonEmpty ApplicationCredential)
a} :: UpdateApplicationSettings) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

updateApplicationSettings_applicationId :: Lens.Lens' UpdateApplicationSettings Prelude.Text
updateApplicationSettings_applicationId :: Lens' UpdateApplicationSettings Text
updateApplicationSettings_applicationId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateApplicationSettings' {Text
applicationId :: Text
$sel:applicationId:UpdateApplicationSettings' :: UpdateApplicationSettings -> Text
applicationId} -> Text
applicationId) (\s :: UpdateApplicationSettings
s@UpdateApplicationSettings' {} Text
a -> UpdateApplicationSettings
s {$sel:applicationId:UpdateApplicationSettings' :: Text
applicationId = Text
a} :: UpdateApplicationSettings)

instance Core.AWSRequest UpdateApplicationSettings where
  type
    AWSResponse UpdateApplicationSettings =
      UpdateApplicationSettingsResponse
  request :: (Service -> Service)
-> UpdateApplicationSettings -> Request UpdateApplicationSettings
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy UpdateApplicationSettings
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdateApplicationSettings)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Text
-> Maybe [Text] -> Int -> UpdateApplicationSettingsResponse
UpdateApplicationSettingsResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"Message")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"OperationIds" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable UpdateApplicationSettings where
  hashWithSalt :: Int -> UpdateApplicationSettings -> Int
hashWithSalt Int
_salt UpdateApplicationSettings' {Maybe (NonEmpty ApplicationCredential)
Text
applicationId :: Text
credentialsToRemove :: Maybe (NonEmpty ApplicationCredential)
credentialsToAddOrUpdate :: Maybe (NonEmpty ApplicationCredential)
$sel:applicationId:UpdateApplicationSettings' :: UpdateApplicationSettings -> Text
$sel:credentialsToRemove:UpdateApplicationSettings' :: UpdateApplicationSettings -> Maybe (NonEmpty ApplicationCredential)
$sel:credentialsToAddOrUpdate:UpdateApplicationSettings' :: UpdateApplicationSettings -> Maybe (NonEmpty ApplicationCredential)
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty ApplicationCredential)
credentialsToAddOrUpdate
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty ApplicationCredential)
credentialsToRemove
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
applicationId

instance Prelude.NFData UpdateApplicationSettings where
  rnf :: UpdateApplicationSettings -> ()
rnf UpdateApplicationSettings' {Maybe (NonEmpty ApplicationCredential)
Text
applicationId :: Text
credentialsToRemove :: Maybe (NonEmpty ApplicationCredential)
credentialsToAddOrUpdate :: Maybe (NonEmpty ApplicationCredential)
$sel:applicationId:UpdateApplicationSettings' :: UpdateApplicationSettings -> Text
$sel:credentialsToRemove:UpdateApplicationSettings' :: UpdateApplicationSettings -> Maybe (NonEmpty ApplicationCredential)
$sel:credentialsToAddOrUpdate:UpdateApplicationSettings' :: UpdateApplicationSettings -> Maybe (NonEmpty ApplicationCredential)
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty ApplicationCredential)
credentialsToAddOrUpdate
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty ApplicationCredential)
credentialsToRemove
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
applicationId

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

instance Data.ToJSON UpdateApplicationSettings where
  toJSON :: UpdateApplicationSettings -> Value
toJSON UpdateApplicationSettings' {Maybe (NonEmpty ApplicationCredential)
Text
applicationId :: Text
credentialsToRemove :: Maybe (NonEmpty ApplicationCredential)
credentialsToAddOrUpdate :: Maybe (NonEmpty ApplicationCredential)
$sel:applicationId:UpdateApplicationSettings' :: UpdateApplicationSettings -> Text
$sel:credentialsToRemove:UpdateApplicationSettings' :: UpdateApplicationSettings -> Maybe (NonEmpty ApplicationCredential)
$sel:credentialsToAddOrUpdate:UpdateApplicationSettings' :: UpdateApplicationSettings -> Maybe (NonEmpty ApplicationCredential)
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"CredentialsToAddOrUpdate" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty ApplicationCredential)
credentialsToAddOrUpdate,
            (Key
"CredentialsToRemove" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty ApplicationCredential)
credentialsToRemove,
            forall a. a -> Maybe a
Prelude.Just
              (Key
"ApplicationId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
applicationId)
          ]
      )

instance Data.ToPath UpdateApplicationSettings where
  toPath :: UpdateApplicationSettings -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/update-application-settings"

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

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

-- |
-- Create a value of 'UpdateApplicationSettingsResponse' 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:
--
-- 'message', 'updateApplicationSettingsResponse_message' -
--
-- 'operationIds', 'updateApplicationSettingsResponse_operationIds' -
--
-- 'httpStatus', 'updateApplicationSettingsResponse_httpStatus' - The response's http status code.
newUpdateApplicationSettingsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  UpdateApplicationSettingsResponse
newUpdateApplicationSettingsResponse :: Int -> UpdateApplicationSettingsResponse
newUpdateApplicationSettingsResponse Int
pHttpStatus_ =
  UpdateApplicationSettingsResponse'
    { $sel:message:UpdateApplicationSettingsResponse' :: Maybe Text
message =
        forall a. Maybe a
Prelude.Nothing,
      $sel:operationIds:UpdateApplicationSettingsResponse' :: Maybe [Text]
operationIds = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:UpdateApplicationSettingsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

updateApplicationSettingsResponse_message :: Lens.Lens' UpdateApplicationSettingsResponse (Prelude.Maybe Prelude.Text)
updateApplicationSettingsResponse_message :: Lens' UpdateApplicationSettingsResponse (Maybe Text)
updateApplicationSettingsResponse_message = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateApplicationSettingsResponse' {Maybe Text
message :: Maybe Text
$sel:message:UpdateApplicationSettingsResponse' :: UpdateApplicationSettingsResponse -> Maybe Text
message} -> Maybe Text
message) (\s :: UpdateApplicationSettingsResponse
s@UpdateApplicationSettingsResponse' {} Maybe Text
a -> UpdateApplicationSettingsResponse
s {$sel:message:UpdateApplicationSettingsResponse' :: Maybe Text
message = Maybe Text
a} :: UpdateApplicationSettingsResponse)

updateApplicationSettingsResponse_operationIds :: Lens.Lens' UpdateApplicationSettingsResponse (Prelude.Maybe [Prelude.Text])
updateApplicationSettingsResponse_operationIds :: Lens' UpdateApplicationSettingsResponse (Maybe [Text])
updateApplicationSettingsResponse_operationIds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateApplicationSettingsResponse' {Maybe [Text]
operationIds :: Maybe [Text]
$sel:operationIds:UpdateApplicationSettingsResponse' :: UpdateApplicationSettingsResponse -> Maybe [Text]
operationIds} -> Maybe [Text]
operationIds) (\s :: UpdateApplicationSettingsResponse
s@UpdateApplicationSettingsResponse' {} Maybe [Text]
a -> UpdateApplicationSettingsResponse
s {$sel:operationIds:UpdateApplicationSettingsResponse' :: Maybe [Text]
operationIds = Maybe [Text]
a} :: UpdateApplicationSettingsResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance
  Prelude.NFData
    UpdateApplicationSettingsResponse
  where
  rnf :: UpdateApplicationSettingsResponse -> ()
rnf UpdateApplicationSettingsResponse' {Int
Maybe [Text]
Maybe Text
httpStatus :: Int
operationIds :: Maybe [Text]
message :: Maybe Text
$sel:httpStatus:UpdateApplicationSettingsResponse' :: UpdateApplicationSettingsResponse -> Int
$sel:operationIds:UpdateApplicationSettingsResponse' :: UpdateApplicationSettingsResponse -> Maybe [Text]
$sel:message:UpdateApplicationSettingsResponse' :: UpdateApplicationSettingsResponse -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
message
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
operationIds
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus