{-# 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.Route53Domains.UpdateDomainNameservers
-- 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)
--
-- This operation replaces the current set of name servers for the domain
-- with the specified set of name servers. If you use Amazon Route 53 as
-- your DNS service, specify the four name servers in the delegation set
-- for the hosted zone for the domain.
--
-- If successful, this operation returns an operation ID that you can use
-- to track the progress and completion of the action. If the request is
-- not completed successfully, the domain registrant will be notified by
-- email.
module Amazonka.Route53Domains.UpdateDomainNameservers
  ( -- * Creating a Request
    UpdateDomainNameservers (..),
    newUpdateDomainNameservers,

    -- * Request Lenses
    updateDomainNameservers_fIAuthKey,
    updateDomainNameservers_domainName,
    updateDomainNameservers_nameservers,

    -- * Destructuring the Response
    UpdateDomainNameserversResponse (..),
    newUpdateDomainNameserversResponse,

    -- * Response Lenses
    updateDomainNameserversResponse_httpStatus,
    updateDomainNameserversResponse_operationId,
  )
where

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

-- | Replaces the current set of name servers for the domain with the
-- specified set of name servers. If you use Amazon Route 53 as your DNS
-- service, specify the four name servers in the delegation set for the
-- hosted zone for the domain.
--
-- If successful, this operation returns an operation ID that you can use
-- to track the progress and completion of the action. If the request is
-- not completed successfully, the domain registrant will be notified by
-- email.
--
-- /See:/ 'newUpdateDomainNameservers' smart constructor.
data UpdateDomainNameservers = UpdateDomainNameservers'
  { -- | The authorization key for .fi domains
    UpdateDomainNameservers -> Maybe Text
fIAuthKey :: Prelude.Maybe Prelude.Text,
    -- | The name of the domain that you want to change name servers for.
    UpdateDomainNameservers -> Text
domainName :: Prelude.Text,
    -- | A list of new name servers for the domain.
    UpdateDomainNameservers -> [Nameserver]
nameservers :: [Nameserver]
  }
  deriving (UpdateDomainNameservers -> UpdateDomainNameservers -> Bool
(UpdateDomainNameservers -> UpdateDomainNameservers -> Bool)
-> (UpdateDomainNameservers -> UpdateDomainNameservers -> Bool)
-> Eq UpdateDomainNameservers
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateDomainNameservers -> UpdateDomainNameservers -> Bool
$c/= :: UpdateDomainNameservers -> UpdateDomainNameservers -> Bool
== :: UpdateDomainNameservers -> UpdateDomainNameservers -> Bool
$c== :: UpdateDomainNameservers -> UpdateDomainNameservers -> Bool
Prelude.Eq, ReadPrec [UpdateDomainNameservers]
ReadPrec UpdateDomainNameservers
Int -> ReadS UpdateDomainNameservers
ReadS [UpdateDomainNameservers]
(Int -> ReadS UpdateDomainNameservers)
-> ReadS [UpdateDomainNameservers]
-> ReadPrec UpdateDomainNameservers
-> ReadPrec [UpdateDomainNameservers]
-> Read UpdateDomainNameservers
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateDomainNameservers]
$creadListPrec :: ReadPrec [UpdateDomainNameservers]
readPrec :: ReadPrec UpdateDomainNameservers
$creadPrec :: ReadPrec UpdateDomainNameservers
readList :: ReadS [UpdateDomainNameservers]
$creadList :: ReadS [UpdateDomainNameservers]
readsPrec :: Int -> ReadS UpdateDomainNameservers
$creadsPrec :: Int -> ReadS UpdateDomainNameservers
Prelude.Read, Int -> UpdateDomainNameservers -> ShowS
[UpdateDomainNameservers] -> ShowS
UpdateDomainNameservers -> String
(Int -> UpdateDomainNameservers -> ShowS)
-> (UpdateDomainNameservers -> String)
-> ([UpdateDomainNameservers] -> ShowS)
-> Show UpdateDomainNameservers
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateDomainNameservers] -> ShowS
$cshowList :: [UpdateDomainNameservers] -> ShowS
show :: UpdateDomainNameservers -> String
$cshow :: UpdateDomainNameservers -> String
showsPrec :: Int -> UpdateDomainNameservers -> ShowS
$cshowsPrec :: Int -> UpdateDomainNameservers -> ShowS
Prelude.Show, (forall x.
 UpdateDomainNameservers -> Rep UpdateDomainNameservers x)
-> (forall x.
    Rep UpdateDomainNameservers x -> UpdateDomainNameservers)
-> Generic UpdateDomainNameservers
forall x. Rep UpdateDomainNameservers x -> UpdateDomainNameservers
forall x. UpdateDomainNameservers -> Rep UpdateDomainNameservers x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateDomainNameservers x -> UpdateDomainNameservers
$cfrom :: forall x. UpdateDomainNameservers -> Rep UpdateDomainNameservers x
Prelude.Generic)

-- |
-- Create a value of 'UpdateDomainNameservers' 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:
--
-- 'fIAuthKey', 'updateDomainNameservers_fIAuthKey' - The authorization key for .fi domains
--
-- 'domainName', 'updateDomainNameservers_domainName' - The name of the domain that you want to change name servers for.
--
-- 'nameservers', 'updateDomainNameservers_nameservers' - A list of new name servers for the domain.
newUpdateDomainNameservers ::
  -- | 'domainName'
  Prelude.Text ->
  UpdateDomainNameservers
newUpdateDomainNameservers :: Text -> UpdateDomainNameservers
newUpdateDomainNameservers Text
pDomainName_ =
  UpdateDomainNameservers' :: Maybe Text -> Text -> [Nameserver] -> UpdateDomainNameservers
UpdateDomainNameservers'
    { $sel:fIAuthKey:UpdateDomainNameservers' :: Maybe Text
fIAuthKey =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:domainName:UpdateDomainNameservers' :: Text
domainName = Text
pDomainName_,
      $sel:nameservers:UpdateDomainNameservers' :: [Nameserver]
nameservers = [Nameserver]
forall a. Monoid a => a
Prelude.mempty
    }

-- | The authorization key for .fi domains
updateDomainNameservers_fIAuthKey :: Lens.Lens' UpdateDomainNameservers (Prelude.Maybe Prelude.Text)
updateDomainNameservers_fIAuthKey :: (Maybe Text -> f (Maybe Text))
-> UpdateDomainNameservers -> f UpdateDomainNameservers
updateDomainNameservers_fIAuthKey = (UpdateDomainNameservers -> Maybe Text)
-> (UpdateDomainNameservers
    -> Maybe Text -> UpdateDomainNameservers)
-> Lens
     UpdateDomainNameservers
     UpdateDomainNameservers
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateDomainNameservers' {Maybe Text
fIAuthKey :: Maybe Text
$sel:fIAuthKey:UpdateDomainNameservers' :: UpdateDomainNameservers -> Maybe Text
fIAuthKey} -> Maybe Text
fIAuthKey) (\s :: UpdateDomainNameservers
s@UpdateDomainNameservers' {} Maybe Text
a -> UpdateDomainNameservers
s {$sel:fIAuthKey:UpdateDomainNameservers' :: Maybe Text
fIAuthKey = Maybe Text
a} :: UpdateDomainNameservers)

-- | The name of the domain that you want to change name servers for.
updateDomainNameservers_domainName :: Lens.Lens' UpdateDomainNameservers Prelude.Text
updateDomainNameservers_domainName :: (Text -> f Text)
-> UpdateDomainNameservers -> f UpdateDomainNameservers
updateDomainNameservers_domainName = (UpdateDomainNameservers -> Text)
-> (UpdateDomainNameservers -> Text -> UpdateDomainNameservers)
-> Lens UpdateDomainNameservers UpdateDomainNameservers Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateDomainNameservers' {Text
domainName :: Text
$sel:domainName:UpdateDomainNameservers' :: UpdateDomainNameservers -> Text
domainName} -> Text
domainName) (\s :: UpdateDomainNameservers
s@UpdateDomainNameservers' {} Text
a -> UpdateDomainNameservers
s {$sel:domainName:UpdateDomainNameservers' :: Text
domainName = Text
a} :: UpdateDomainNameservers)

-- | A list of new name servers for the domain.
updateDomainNameservers_nameservers :: Lens.Lens' UpdateDomainNameservers [Nameserver]
updateDomainNameservers_nameservers :: ([Nameserver] -> f [Nameserver])
-> UpdateDomainNameservers -> f UpdateDomainNameservers
updateDomainNameservers_nameservers = (UpdateDomainNameservers -> [Nameserver])
-> (UpdateDomainNameservers
    -> [Nameserver] -> UpdateDomainNameservers)
-> Lens
     UpdateDomainNameservers
     UpdateDomainNameservers
     [Nameserver]
     [Nameserver]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateDomainNameservers' {[Nameserver]
nameservers :: [Nameserver]
$sel:nameservers:UpdateDomainNameservers' :: UpdateDomainNameservers -> [Nameserver]
nameservers} -> [Nameserver]
nameservers) (\s :: UpdateDomainNameservers
s@UpdateDomainNameservers' {} [Nameserver]
a -> UpdateDomainNameservers
s {$sel:nameservers:UpdateDomainNameservers' :: [Nameserver]
nameservers = [Nameserver]
a} :: UpdateDomainNameservers) (([Nameserver] -> f [Nameserver])
 -> UpdateDomainNameservers -> f UpdateDomainNameservers)
-> (([Nameserver] -> f [Nameserver])
    -> [Nameserver] -> f [Nameserver])
-> ([Nameserver] -> f [Nameserver])
-> UpdateDomainNameservers
-> f UpdateDomainNameservers
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Nameserver] -> f [Nameserver]) -> [Nameserver] -> f [Nameserver]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Prelude.Hashable UpdateDomainNameservers

instance Prelude.NFData UpdateDomainNameservers

instance Core.ToHeaders UpdateDomainNameservers where
  toHeaders :: UpdateDomainNameservers -> ResponseHeaders
toHeaders =
    ResponseHeaders -> UpdateDomainNameservers -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"Route53Domains_v20140515.UpdateDomainNameservers" ::
                          Prelude.ByteString
                      ),
            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 UpdateDomainNameservers where
  toJSON :: UpdateDomainNameservers -> Value
toJSON UpdateDomainNameservers' {[Nameserver]
Maybe Text
Text
nameservers :: [Nameserver]
domainName :: Text
fIAuthKey :: Maybe Text
$sel:nameservers:UpdateDomainNameservers' :: UpdateDomainNameservers -> [Nameserver]
$sel:domainName:UpdateDomainNameservers' :: UpdateDomainNameservers -> Text
$sel:fIAuthKey:UpdateDomainNameservers' :: UpdateDomainNameservers -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"FIAuthKey" 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
fIAuthKey,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"DomainName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
domainName),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Nameservers" Text -> [Nameserver] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= [Nameserver]
nameservers)
          ]
      )

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

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

-- | The UpdateDomainNameservers response includes the following element.
--
-- /See:/ 'newUpdateDomainNameserversResponse' smart constructor.
data UpdateDomainNameserversResponse = UpdateDomainNameserversResponse'
  { -- | The response's http status code.
    UpdateDomainNameserversResponse -> Int
httpStatus :: Prelude.Int,
    -- | Identifier for tracking the progress of the request. To query the
    -- operation status, use
    -- <https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html GetOperationDetail>.
    UpdateDomainNameserversResponse -> Text
operationId :: Prelude.Text
  }
  deriving (UpdateDomainNameserversResponse
-> UpdateDomainNameserversResponse -> Bool
(UpdateDomainNameserversResponse
 -> UpdateDomainNameserversResponse -> Bool)
-> (UpdateDomainNameserversResponse
    -> UpdateDomainNameserversResponse -> Bool)
-> Eq UpdateDomainNameserversResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateDomainNameserversResponse
-> UpdateDomainNameserversResponse -> Bool
$c/= :: UpdateDomainNameserversResponse
-> UpdateDomainNameserversResponse -> Bool
== :: UpdateDomainNameserversResponse
-> UpdateDomainNameserversResponse -> Bool
$c== :: UpdateDomainNameserversResponse
-> UpdateDomainNameserversResponse -> Bool
Prelude.Eq, ReadPrec [UpdateDomainNameserversResponse]
ReadPrec UpdateDomainNameserversResponse
Int -> ReadS UpdateDomainNameserversResponse
ReadS [UpdateDomainNameserversResponse]
(Int -> ReadS UpdateDomainNameserversResponse)
-> ReadS [UpdateDomainNameserversResponse]
-> ReadPrec UpdateDomainNameserversResponse
-> ReadPrec [UpdateDomainNameserversResponse]
-> Read UpdateDomainNameserversResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateDomainNameserversResponse]
$creadListPrec :: ReadPrec [UpdateDomainNameserversResponse]
readPrec :: ReadPrec UpdateDomainNameserversResponse
$creadPrec :: ReadPrec UpdateDomainNameserversResponse
readList :: ReadS [UpdateDomainNameserversResponse]
$creadList :: ReadS [UpdateDomainNameserversResponse]
readsPrec :: Int -> ReadS UpdateDomainNameserversResponse
$creadsPrec :: Int -> ReadS UpdateDomainNameserversResponse
Prelude.Read, Int -> UpdateDomainNameserversResponse -> ShowS
[UpdateDomainNameserversResponse] -> ShowS
UpdateDomainNameserversResponse -> String
(Int -> UpdateDomainNameserversResponse -> ShowS)
-> (UpdateDomainNameserversResponse -> String)
-> ([UpdateDomainNameserversResponse] -> ShowS)
-> Show UpdateDomainNameserversResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateDomainNameserversResponse] -> ShowS
$cshowList :: [UpdateDomainNameserversResponse] -> ShowS
show :: UpdateDomainNameserversResponse -> String
$cshow :: UpdateDomainNameserversResponse -> String
showsPrec :: Int -> UpdateDomainNameserversResponse -> ShowS
$cshowsPrec :: Int -> UpdateDomainNameserversResponse -> ShowS
Prelude.Show, (forall x.
 UpdateDomainNameserversResponse
 -> Rep UpdateDomainNameserversResponse x)
-> (forall x.
    Rep UpdateDomainNameserversResponse x
    -> UpdateDomainNameserversResponse)
-> Generic UpdateDomainNameserversResponse
forall x.
Rep UpdateDomainNameserversResponse x
-> UpdateDomainNameserversResponse
forall x.
UpdateDomainNameserversResponse
-> Rep UpdateDomainNameserversResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateDomainNameserversResponse x
-> UpdateDomainNameserversResponse
$cfrom :: forall x.
UpdateDomainNameserversResponse
-> Rep UpdateDomainNameserversResponse x
Prelude.Generic)

-- |
-- Create a value of 'UpdateDomainNameserversResponse' 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', 'updateDomainNameserversResponse_httpStatus' - The response's http status code.
--
-- 'operationId', 'updateDomainNameserversResponse_operationId' - Identifier for tracking the progress of the request. To query the
-- operation status, use
-- <https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html GetOperationDetail>.
newUpdateDomainNameserversResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'operationId'
  Prelude.Text ->
  UpdateDomainNameserversResponse
newUpdateDomainNameserversResponse :: Int -> Text -> UpdateDomainNameserversResponse
newUpdateDomainNameserversResponse
  Int
pHttpStatus_
  Text
pOperationId_ =
    UpdateDomainNameserversResponse' :: Int -> Text -> UpdateDomainNameserversResponse
UpdateDomainNameserversResponse'
      { $sel:httpStatus:UpdateDomainNameserversResponse' :: Int
httpStatus =
          Int
pHttpStatus_,
        $sel:operationId:UpdateDomainNameserversResponse' :: Text
operationId = Text
pOperationId_
      }

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

-- | Identifier for tracking the progress of the request. To query the
-- operation status, use
-- <https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html GetOperationDetail>.
updateDomainNameserversResponse_operationId :: Lens.Lens' UpdateDomainNameserversResponse Prelude.Text
updateDomainNameserversResponse_operationId :: (Text -> f Text)
-> UpdateDomainNameserversResponse
-> f UpdateDomainNameserversResponse
updateDomainNameserversResponse_operationId = (UpdateDomainNameserversResponse -> Text)
-> (UpdateDomainNameserversResponse
    -> Text -> UpdateDomainNameserversResponse)
-> Lens
     UpdateDomainNameserversResponse
     UpdateDomainNameserversResponse
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateDomainNameserversResponse' {Text
operationId :: Text
$sel:operationId:UpdateDomainNameserversResponse' :: UpdateDomainNameserversResponse -> Text
operationId} -> Text
operationId) (\s :: UpdateDomainNameserversResponse
s@UpdateDomainNameserversResponse' {} Text
a -> UpdateDomainNameserversResponse
s {$sel:operationId:UpdateDomainNameserversResponse' :: Text
operationId = Text
a} :: UpdateDomainNameserversResponse)

instance
  Prelude.NFData
    UpdateDomainNameserversResponse