{-# 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.AcceptDomainTransferFromAnotherAwsAccount
-- 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)
--
-- Accepts the transfer of a domain from another AWS account to the current
-- AWS account. You initiate a transfer between AWS accounts using
-- <https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html TransferDomainToAnotherAwsAccount>.
--
-- Use either
-- <https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ListOperations.html ListOperations>
-- or
-- <https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html GetOperationDetail>
-- to determine whether the operation succeeded.
-- <https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html GetOperationDetail>
-- provides additional information, for example,
-- @Domain Transfer from Aws Account 111122223333 has been cancelled@.
module Amazonka.Route53Domains.AcceptDomainTransferFromAnotherAwsAccount
  ( -- * Creating a Request
    AcceptDomainTransferFromAnotherAwsAccount (..),
    newAcceptDomainTransferFromAnotherAwsAccount,

    -- * Request Lenses
    acceptDomainTransferFromAnotherAwsAccount_domainName,
    acceptDomainTransferFromAnotherAwsAccount_password,

    -- * Destructuring the Response
    AcceptDomainTransferFromAnotherAwsAccountResponse (..),
    newAcceptDomainTransferFromAnotherAwsAccountResponse,

    -- * Response Lenses
    acceptDomainTransferFromAnotherAwsAccountResponse_operationId,
    acceptDomainTransferFromAnotherAwsAccountResponse_httpStatus,
  )
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

-- | The AcceptDomainTransferFromAnotherAwsAccount request includes the
-- following elements.
--
-- /See:/ 'newAcceptDomainTransferFromAnotherAwsAccount' smart constructor.
data AcceptDomainTransferFromAnotherAwsAccount = AcceptDomainTransferFromAnotherAwsAccount'
  { -- | The name of the domain that was specified when another AWS account
    -- submitted a
    -- <https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html TransferDomainToAnotherAwsAccount>
    -- request.
    AcceptDomainTransferFromAnotherAwsAccount -> Text
domainName :: Prelude.Text,
    -- | The password that was returned by the
    -- <https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html TransferDomainToAnotherAwsAccount>
    -- request.
    AcceptDomainTransferFromAnotherAwsAccount -> Text
password :: Prelude.Text
  }
  deriving (AcceptDomainTransferFromAnotherAwsAccount
-> AcceptDomainTransferFromAnotherAwsAccount -> Bool
(AcceptDomainTransferFromAnotherAwsAccount
 -> AcceptDomainTransferFromAnotherAwsAccount -> Bool)
-> (AcceptDomainTransferFromAnotherAwsAccount
    -> AcceptDomainTransferFromAnotherAwsAccount -> Bool)
-> Eq AcceptDomainTransferFromAnotherAwsAccount
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AcceptDomainTransferFromAnotherAwsAccount
-> AcceptDomainTransferFromAnotherAwsAccount -> Bool
$c/= :: AcceptDomainTransferFromAnotherAwsAccount
-> AcceptDomainTransferFromAnotherAwsAccount -> Bool
== :: AcceptDomainTransferFromAnotherAwsAccount
-> AcceptDomainTransferFromAnotherAwsAccount -> Bool
$c== :: AcceptDomainTransferFromAnotherAwsAccount
-> AcceptDomainTransferFromAnotherAwsAccount -> Bool
Prelude.Eq, ReadPrec [AcceptDomainTransferFromAnotherAwsAccount]
ReadPrec AcceptDomainTransferFromAnotherAwsAccount
Int -> ReadS AcceptDomainTransferFromAnotherAwsAccount
ReadS [AcceptDomainTransferFromAnotherAwsAccount]
(Int -> ReadS AcceptDomainTransferFromAnotherAwsAccount)
-> ReadS [AcceptDomainTransferFromAnotherAwsAccount]
-> ReadPrec AcceptDomainTransferFromAnotherAwsAccount
-> ReadPrec [AcceptDomainTransferFromAnotherAwsAccount]
-> Read AcceptDomainTransferFromAnotherAwsAccount
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AcceptDomainTransferFromAnotherAwsAccount]
$creadListPrec :: ReadPrec [AcceptDomainTransferFromAnotherAwsAccount]
readPrec :: ReadPrec AcceptDomainTransferFromAnotherAwsAccount
$creadPrec :: ReadPrec AcceptDomainTransferFromAnotherAwsAccount
readList :: ReadS [AcceptDomainTransferFromAnotherAwsAccount]
$creadList :: ReadS [AcceptDomainTransferFromAnotherAwsAccount]
readsPrec :: Int -> ReadS AcceptDomainTransferFromAnotherAwsAccount
$creadsPrec :: Int -> ReadS AcceptDomainTransferFromAnotherAwsAccount
Prelude.Read, Int -> AcceptDomainTransferFromAnotherAwsAccount -> ShowS
[AcceptDomainTransferFromAnotherAwsAccount] -> ShowS
AcceptDomainTransferFromAnotherAwsAccount -> String
(Int -> AcceptDomainTransferFromAnotherAwsAccount -> ShowS)
-> (AcceptDomainTransferFromAnotherAwsAccount -> String)
-> ([AcceptDomainTransferFromAnotherAwsAccount] -> ShowS)
-> Show AcceptDomainTransferFromAnotherAwsAccount
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AcceptDomainTransferFromAnotherAwsAccount] -> ShowS
$cshowList :: [AcceptDomainTransferFromAnotherAwsAccount] -> ShowS
show :: AcceptDomainTransferFromAnotherAwsAccount -> String
$cshow :: AcceptDomainTransferFromAnotherAwsAccount -> String
showsPrec :: Int -> AcceptDomainTransferFromAnotherAwsAccount -> ShowS
$cshowsPrec :: Int -> AcceptDomainTransferFromAnotherAwsAccount -> ShowS
Prelude.Show, (forall x.
 AcceptDomainTransferFromAnotherAwsAccount
 -> Rep AcceptDomainTransferFromAnotherAwsAccount x)
-> (forall x.
    Rep AcceptDomainTransferFromAnotherAwsAccount x
    -> AcceptDomainTransferFromAnotherAwsAccount)
-> Generic AcceptDomainTransferFromAnotherAwsAccount
forall x.
Rep AcceptDomainTransferFromAnotherAwsAccount x
-> AcceptDomainTransferFromAnotherAwsAccount
forall x.
AcceptDomainTransferFromAnotherAwsAccount
-> Rep AcceptDomainTransferFromAnotherAwsAccount x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AcceptDomainTransferFromAnotherAwsAccount x
-> AcceptDomainTransferFromAnotherAwsAccount
$cfrom :: forall x.
AcceptDomainTransferFromAnotherAwsAccount
-> Rep AcceptDomainTransferFromAnotherAwsAccount x
Prelude.Generic)

-- |
-- Create a value of 'AcceptDomainTransferFromAnotherAwsAccount' 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:
--
-- 'domainName', 'acceptDomainTransferFromAnotherAwsAccount_domainName' - The name of the domain that was specified when another AWS account
-- submitted a
-- <https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html TransferDomainToAnotherAwsAccount>
-- request.
--
-- 'password', 'acceptDomainTransferFromAnotherAwsAccount_password' - The password that was returned by the
-- <https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html TransferDomainToAnotherAwsAccount>
-- request.
newAcceptDomainTransferFromAnotherAwsAccount ::
  -- | 'domainName'
  Prelude.Text ->
  -- | 'password'
  Prelude.Text ->
  AcceptDomainTransferFromAnotherAwsAccount
newAcceptDomainTransferFromAnotherAwsAccount :: Text -> Text -> AcceptDomainTransferFromAnotherAwsAccount
newAcceptDomainTransferFromAnotherAwsAccount
  Text
pDomainName_
  Text
pPassword_ =
    AcceptDomainTransferFromAnotherAwsAccount' :: Text -> Text -> AcceptDomainTransferFromAnotherAwsAccount
AcceptDomainTransferFromAnotherAwsAccount'
      { $sel:domainName:AcceptDomainTransferFromAnotherAwsAccount' :: Text
domainName =
          Text
pDomainName_,
        $sel:password:AcceptDomainTransferFromAnotherAwsAccount' :: Text
password = Text
pPassword_
      }

-- | The name of the domain that was specified when another AWS account
-- submitted a
-- <https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html TransferDomainToAnotherAwsAccount>
-- request.
acceptDomainTransferFromAnotherAwsAccount_domainName :: Lens.Lens' AcceptDomainTransferFromAnotherAwsAccount Prelude.Text
acceptDomainTransferFromAnotherAwsAccount_domainName :: (Text -> f Text)
-> AcceptDomainTransferFromAnotherAwsAccount
-> f AcceptDomainTransferFromAnotherAwsAccount
acceptDomainTransferFromAnotherAwsAccount_domainName = (AcceptDomainTransferFromAnotherAwsAccount -> Text)
-> (AcceptDomainTransferFromAnotherAwsAccount
    -> Text -> AcceptDomainTransferFromAnotherAwsAccount)
-> Lens
     AcceptDomainTransferFromAnotherAwsAccount
     AcceptDomainTransferFromAnotherAwsAccount
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AcceptDomainTransferFromAnotherAwsAccount' {Text
domainName :: Text
$sel:domainName:AcceptDomainTransferFromAnotherAwsAccount' :: AcceptDomainTransferFromAnotherAwsAccount -> Text
domainName} -> Text
domainName) (\s :: AcceptDomainTransferFromAnotherAwsAccount
s@AcceptDomainTransferFromAnotherAwsAccount' {} Text
a -> AcceptDomainTransferFromAnotherAwsAccount
s {$sel:domainName:AcceptDomainTransferFromAnotherAwsAccount' :: Text
domainName = Text
a} :: AcceptDomainTransferFromAnotherAwsAccount)

-- | The password that was returned by the
-- <https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html TransferDomainToAnotherAwsAccount>
-- request.
acceptDomainTransferFromAnotherAwsAccount_password :: Lens.Lens' AcceptDomainTransferFromAnotherAwsAccount Prelude.Text
acceptDomainTransferFromAnotherAwsAccount_password :: (Text -> f Text)
-> AcceptDomainTransferFromAnotherAwsAccount
-> f AcceptDomainTransferFromAnotherAwsAccount
acceptDomainTransferFromAnotherAwsAccount_password = (AcceptDomainTransferFromAnotherAwsAccount -> Text)
-> (AcceptDomainTransferFromAnotherAwsAccount
    -> Text -> AcceptDomainTransferFromAnotherAwsAccount)
-> Lens
     AcceptDomainTransferFromAnotherAwsAccount
     AcceptDomainTransferFromAnotherAwsAccount
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AcceptDomainTransferFromAnotherAwsAccount' {Text
password :: Text
$sel:password:AcceptDomainTransferFromAnotherAwsAccount' :: AcceptDomainTransferFromAnotherAwsAccount -> Text
password} -> Text
password) (\s :: AcceptDomainTransferFromAnotherAwsAccount
s@AcceptDomainTransferFromAnotherAwsAccount' {} Text
a -> AcceptDomainTransferFromAnotherAwsAccount
s {$sel:password:AcceptDomainTransferFromAnotherAwsAccount' :: Text
password = Text
a} :: AcceptDomainTransferFromAnotherAwsAccount)

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

instance
  Prelude.NFData
    AcceptDomainTransferFromAnotherAwsAccount

instance
  Core.ToHeaders
    AcceptDomainTransferFromAnotherAwsAccount
  where
  toHeaders :: AcceptDomainTransferFromAnotherAwsAccount -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> AcceptDomainTransferFromAnotherAwsAccount -> 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.AcceptDomainTransferFromAnotherAwsAccount" ::
                          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
    AcceptDomainTransferFromAnotherAwsAccount
  where
  toJSON :: AcceptDomainTransferFromAnotherAwsAccount -> Value
toJSON AcceptDomainTransferFromAnotherAwsAccount' {Text
password :: Text
domainName :: Text
$sel:password:AcceptDomainTransferFromAnotherAwsAccount' :: AcceptDomainTransferFromAnotherAwsAccount -> Text
$sel:domainName:AcceptDomainTransferFromAnotherAwsAccount' :: AcceptDomainTransferFromAnotherAwsAccount -> 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
"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
"Password" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
password)
          ]
      )

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

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

-- | The AcceptDomainTransferFromAnotherAwsAccount response includes the
-- following element.
--
-- /See:/ 'newAcceptDomainTransferFromAnotherAwsAccountResponse' smart constructor.
data AcceptDomainTransferFromAnotherAwsAccountResponse = AcceptDomainTransferFromAnotherAwsAccountResponse'
  { -- | 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>.
    AcceptDomainTransferFromAnotherAwsAccountResponse -> Maybe Text
operationId :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    AcceptDomainTransferFromAnotherAwsAccountResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (AcceptDomainTransferFromAnotherAwsAccountResponse
-> AcceptDomainTransferFromAnotherAwsAccountResponse -> Bool
(AcceptDomainTransferFromAnotherAwsAccountResponse
 -> AcceptDomainTransferFromAnotherAwsAccountResponse -> Bool)
-> (AcceptDomainTransferFromAnotherAwsAccountResponse
    -> AcceptDomainTransferFromAnotherAwsAccountResponse -> Bool)
-> Eq AcceptDomainTransferFromAnotherAwsAccountResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AcceptDomainTransferFromAnotherAwsAccountResponse
-> AcceptDomainTransferFromAnotherAwsAccountResponse -> Bool
$c/= :: AcceptDomainTransferFromAnotherAwsAccountResponse
-> AcceptDomainTransferFromAnotherAwsAccountResponse -> Bool
== :: AcceptDomainTransferFromAnotherAwsAccountResponse
-> AcceptDomainTransferFromAnotherAwsAccountResponse -> Bool
$c== :: AcceptDomainTransferFromAnotherAwsAccountResponse
-> AcceptDomainTransferFromAnotherAwsAccountResponse -> Bool
Prelude.Eq, ReadPrec [AcceptDomainTransferFromAnotherAwsAccountResponse]
ReadPrec AcceptDomainTransferFromAnotherAwsAccountResponse
Int -> ReadS AcceptDomainTransferFromAnotherAwsAccountResponse
ReadS [AcceptDomainTransferFromAnotherAwsAccountResponse]
(Int -> ReadS AcceptDomainTransferFromAnotherAwsAccountResponse)
-> ReadS [AcceptDomainTransferFromAnotherAwsAccountResponse]
-> ReadPrec AcceptDomainTransferFromAnotherAwsAccountResponse
-> ReadPrec [AcceptDomainTransferFromAnotherAwsAccountResponse]
-> Read AcceptDomainTransferFromAnotherAwsAccountResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AcceptDomainTransferFromAnotherAwsAccountResponse]
$creadListPrec :: ReadPrec [AcceptDomainTransferFromAnotherAwsAccountResponse]
readPrec :: ReadPrec AcceptDomainTransferFromAnotherAwsAccountResponse
$creadPrec :: ReadPrec AcceptDomainTransferFromAnotherAwsAccountResponse
readList :: ReadS [AcceptDomainTransferFromAnotherAwsAccountResponse]
$creadList :: ReadS [AcceptDomainTransferFromAnotherAwsAccountResponse]
readsPrec :: Int -> ReadS AcceptDomainTransferFromAnotherAwsAccountResponse
$creadsPrec :: Int -> ReadS AcceptDomainTransferFromAnotherAwsAccountResponse
Prelude.Read, Int -> AcceptDomainTransferFromAnotherAwsAccountResponse -> ShowS
[AcceptDomainTransferFromAnotherAwsAccountResponse] -> ShowS
AcceptDomainTransferFromAnotherAwsAccountResponse -> String
(Int -> AcceptDomainTransferFromAnotherAwsAccountResponse -> ShowS)
-> (AcceptDomainTransferFromAnotherAwsAccountResponse -> String)
-> ([AcceptDomainTransferFromAnotherAwsAccountResponse] -> ShowS)
-> Show AcceptDomainTransferFromAnotherAwsAccountResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AcceptDomainTransferFromAnotherAwsAccountResponse] -> ShowS
$cshowList :: [AcceptDomainTransferFromAnotherAwsAccountResponse] -> ShowS
show :: AcceptDomainTransferFromAnotherAwsAccountResponse -> String
$cshow :: AcceptDomainTransferFromAnotherAwsAccountResponse -> String
showsPrec :: Int -> AcceptDomainTransferFromAnotherAwsAccountResponse -> ShowS
$cshowsPrec :: Int -> AcceptDomainTransferFromAnotherAwsAccountResponse -> ShowS
Prelude.Show, (forall x.
 AcceptDomainTransferFromAnotherAwsAccountResponse
 -> Rep AcceptDomainTransferFromAnotherAwsAccountResponse x)
-> (forall x.
    Rep AcceptDomainTransferFromAnotherAwsAccountResponse x
    -> AcceptDomainTransferFromAnotherAwsAccountResponse)
-> Generic AcceptDomainTransferFromAnotherAwsAccountResponse
forall x.
Rep AcceptDomainTransferFromAnotherAwsAccountResponse x
-> AcceptDomainTransferFromAnotherAwsAccountResponse
forall x.
AcceptDomainTransferFromAnotherAwsAccountResponse
-> Rep AcceptDomainTransferFromAnotherAwsAccountResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AcceptDomainTransferFromAnotherAwsAccountResponse x
-> AcceptDomainTransferFromAnotherAwsAccountResponse
$cfrom :: forall x.
AcceptDomainTransferFromAnotherAwsAccountResponse
-> Rep AcceptDomainTransferFromAnotherAwsAccountResponse x
Prelude.Generic)

-- |
-- Create a value of 'AcceptDomainTransferFromAnotherAwsAccountResponse' 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:
--
-- 'operationId', 'acceptDomainTransferFromAnotherAwsAccountResponse_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>.
--
-- 'httpStatus', 'acceptDomainTransferFromAnotherAwsAccountResponse_httpStatus' - The response's http status code.
newAcceptDomainTransferFromAnotherAwsAccountResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  AcceptDomainTransferFromAnotherAwsAccountResponse
newAcceptDomainTransferFromAnotherAwsAccountResponse :: Int -> AcceptDomainTransferFromAnotherAwsAccountResponse
newAcceptDomainTransferFromAnotherAwsAccountResponse
  Int
pHttpStatus_ =
    AcceptDomainTransferFromAnotherAwsAccountResponse' :: Maybe Text
-> Int -> AcceptDomainTransferFromAnotherAwsAccountResponse
AcceptDomainTransferFromAnotherAwsAccountResponse'
      { $sel:operationId:AcceptDomainTransferFromAnotherAwsAccountResponse' :: Maybe Text
operationId =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:AcceptDomainTransferFromAnotherAwsAccountResponse' :: Int
httpStatus =
          Int
pHttpStatus_
      }

-- | 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>.
acceptDomainTransferFromAnotherAwsAccountResponse_operationId :: Lens.Lens' AcceptDomainTransferFromAnotherAwsAccountResponse (Prelude.Maybe Prelude.Text)
acceptDomainTransferFromAnotherAwsAccountResponse_operationId :: (Maybe Text -> f (Maybe Text))
-> AcceptDomainTransferFromAnotherAwsAccountResponse
-> f AcceptDomainTransferFromAnotherAwsAccountResponse
acceptDomainTransferFromAnotherAwsAccountResponse_operationId = (AcceptDomainTransferFromAnotherAwsAccountResponse -> Maybe Text)
-> (AcceptDomainTransferFromAnotherAwsAccountResponse
    -> Maybe Text -> AcceptDomainTransferFromAnotherAwsAccountResponse)
-> Lens
     AcceptDomainTransferFromAnotherAwsAccountResponse
     AcceptDomainTransferFromAnotherAwsAccountResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AcceptDomainTransferFromAnotherAwsAccountResponse' {Maybe Text
operationId :: Maybe Text
$sel:operationId:AcceptDomainTransferFromAnotherAwsAccountResponse' :: AcceptDomainTransferFromAnotherAwsAccountResponse -> Maybe Text
operationId} -> Maybe Text
operationId) (\s :: AcceptDomainTransferFromAnotherAwsAccountResponse
s@AcceptDomainTransferFromAnotherAwsAccountResponse' {} Maybe Text
a -> AcceptDomainTransferFromAnotherAwsAccountResponse
s {$sel:operationId:AcceptDomainTransferFromAnotherAwsAccountResponse' :: Maybe Text
operationId = Maybe Text
a} :: AcceptDomainTransferFromAnotherAwsAccountResponse)

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

instance
  Prelude.NFData
    AcceptDomainTransferFromAnotherAwsAccountResponse