/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Route53Domains { namespace Model { /** *

The GetOperationDetail response includes the following * elements.

See Also:

AWS * API Reference

*/ class GetOperationDetailResult { public: AWS_ROUTE53DOMAINS_API GetOperationDetailResult(); AWS_ROUTE53DOMAINS_API GetOperationDetailResult(const Aws::AmazonWebServiceResult& result); AWS_ROUTE53DOMAINS_API GetOperationDetailResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The identifier for the operation.

*/ inline const Aws::String& GetOperationId() const{ return m_operationId; } /** *

The identifier for the operation.

*/ inline void SetOperationId(const Aws::String& value) { m_operationId = value; } /** *

The identifier for the operation.

*/ inline void SetOperationId(Aws::String&& value) { m_operationId = std::move(value); } /** *

The identifier for the operation.

*/ inline void SetOperationId(const char* value) { m_operationId.assign(value); } /** *

The identifier for the operation.

*/ inline GetOperationDetailResult& WithOperationId(const Aws::String& value) { SetOperationId(value); return *this;} /** *

The identifier for the operation.

*/ inline GetOperationDetailResult& WithOperationId(Aws::String&& value) { SetOperationId(std::move(value)); return *this;} /** *

The identifier for the operation.

*/ inline GetOperationDetailResult& WithOperationId(const char* value) { SetOperationId(value); return *this;} /** *

The current status of the requested operation in the system.

*/ inline const OperationStatus& GetStatus() const{ return m_status; } /** *

The current status of the requested operation in the system.

*/ inline void SetStatus(const OperationStatus& value) { m_status = value; } /** *

The current status of the requested operation in the system.

*/ inline void SetStatus(OperationStatus&& value) { m_status = std::move(value); } /** *

The current status of the requested operation in the system.

*/ inline GetOperationDetailResult& WithStatus(const OperationStatus& value) { SetStatus(value); return *this;} /** *

The current status of the requested operation in the system.

*/ inline GetOperationDetailResult& WithStatus(OperationStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

Detailed information on the status including possible errors.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

Detailed information on the status including possible errors.

*/ inline void SetMessage(const Aws::String& value) { m_message = value; } /** *

Detailed information on the status including possible errors.

*/ inline void SetMessage(Aws::String&& value) { m_message = std::move(value); } /** *

Detailed information on the status including possible errors.

*/ inline void SetMessage(const char* value) { m_message.assign(value); } /** *

Detailed information on the status including possible errors.

*/ inline GetOperationDetailResult& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

Detailed information on the status including possible errors.

*/ inline GetOperationDetailResult& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

Detailed information on the status including possible errors.

*/ inline GetOperationDetailResult& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

The name of a domain.

*/ inline const Aws::String& GetDomainName() const{ return m_domainName; } /** *

The name of a domain.

*/ inline void SetDomainName(const Aws::String& value) { m_domainName = value; } /** *

The name of a domain.

*/ inline void SetDomainName(Aws::String&& value) { m_domainName = std::move(value); } /** *

The name of a domain.

*/ inline void SetDomainName(const char* value) { m_domainName.assign(value); } /** *

The name of a domain.

*/ inline GetOperationDetailResult& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;} /** *

The name of a domain.

*/ inline GetOperationDetailResult& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;} /** *

The name of a domain.

*/ inline GetOperationDetailResult& WithDomainName(const char* value) { SetDomainName(value); return *this;} /** *

The type of operation that was requested.

*/ inline const OperationType& GetType() const{ return m_type; } /** *

The type of operation that was requested.

*/ inline void SetType(const OperationType& value) { m_type = value; } /** *

The type of operation that was requested.

*/ inline void SetType(OperationType&& value) { m_type = std::move(value); } /** *

The type of operation that was requested.

*/ inline GetOperationDetailResult& WithType(const OperationType& value) { SetType(value); return *this;} /** *

The type of operation that was requested.

*/ inline GetOperationDetailResult& WithType(OperationType&& value) { SetType(std::move(value)); return *this;} /** *

The date when the request was submitted.

*/ inline const Aws::Utils::DateTime& GetSubmittedDate() const{ return m_submittedDate; } /** *

The date when the request was submitted.

*/ inline void SetSubmittedDate(const Aws::Utils::DateTime& value) { m_submittedDate = value; } /** *

The date when the request was submitted.

*/ inline void SetSubmittedDate(Aws::Utils::DateTime&& value) { m_submittedDate = std::move(value); } /** *

The date when the request was submitted.

*/ inline GetOperationDetailResult& WithSubmittedDate(const Aws::Utils::DateTime& value) { SetSubmittedDate(value); return *this;} /** *

The date when the request was submitted.

*/ inline GetOperationDetailResult& WithSubmittedDate(Aws::Utils::DateTime&& value) { SetSubmittedDate(std::move(value)); return *this;} /** *

The date when the operation was last updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedDate() const{ return m_lastUpdatedDate; } /** *

The date when the operation was last updated.

*/ inline void SetLastUpdatedDate(const Aws::Utils::DateTime& value) { m_lastUpdatedDate = value; } /** *

The date when the operation was last updated.

*/ inline void SetLastUpdatedDate(Aws::Utils::DateTime&& value) { m_lastUpdatedDate = std::move(value); } /** *

The date when the operation was last updated.

*/ inline GetOperationDetailResult& WithLastUpdatedDate(const Aws::Utils::DateTime& value) { SetLastUpdatedDate(value); return *this;} /** *

The date when the operation was last updated.

*/ inline GetOperationDetailResult& WithLastUpdatedDate(Aws::Utils::DateTime&& value) { SetLastUpdatedDate(std::move(value)); return *this;} /** *

Lists any outstanding operations that require customer action. Valid values * are:

  • PENDING_ACCEPTANCE: The operation is waiting * for acceptance from the account that is receiving the domain.

  • * PENDING_CUSTOMER_ACTION: The operation is waiting for customer * action, for example, returning an email.

  • * PENDING_AUTHORIZATION: The operation is waiting for the form of * authorization. For more information, see ResendOperationAuthorization.

    *
  • PENDING_PAYMENT_VERIFICATION: The operation is * waiting for the payment method to validate.

  • * PENDING_SUPPORT_CASE: The operation includes a support case and is * waiting for its resolution.

*/ inline const StatusFlag& GetStatusFlag() const{ return m_statusFlag; } /** *

Lists any outstanding operations that require customer action. Valid values * are:

  • PENDING_ACCEPTANCE: The operation is waiting * for acceptance from the account that is receiving the domain.

  • * PENDING_CUSTOMER_ACTION: The operation is waiting for customer * action, for example, returning an email.

  • * PENDING_AUTHORIZATION: The operation is waiting for the form of * authorization. For more information, see ResendOperationAuthorization.

    *
  • PENDING_PAYMENT_VERIFICATION: The operation is * waiting for the payment method to validate.

  • * PENDING_SUPPORT_CASE: The operation includes a support case and is * waiting for its resolution.

*/ inline void SetStatusFlag(const StatusFlag& value) { m_statusFlag = value; } /** *

Lists any outstanding operations that require customer action. Valid values * are:

  • PENDING_ACCEPTANCE: The operation is waiting * for acceptance from the account that is receiving the domain.

  • * PENDING_CUSTOMER_ACTION: The operation is waiting for customer * action, for example, returning an email.

  • * PENDING_AUTHORIZATION: The operation is waiting for the form of * authorization. For more information, see ResendOperationAuthorization.

    *
  • PENDING_PAYMENT_VERIFICATION: The operation is * waiting for the payment method to validate.

  • * PENDING_SUPPORT_CASE: The operation includes a support case and is * waiting for its resolution.

*/ inline void SetStatusFlag(StatusFlag&& value) { m_statusFlag = std::move(value); } /** *

Lists any outstanding operations that require customer action. Valid values * are:

  • PENDING_ACCEPTANCE: The operation is waiting * for acceptance from the account that is receiving the domain.

  • * PENDING_CUSTOMER_ACTION: The operation is waiting for customer * action, for example, returning an email.

  • * PENDING_AUTHORIZATION: The operation is waiting for the form of * authorization. For more information, see ResendOperationAuthorization.

    *
  • PENDING_PAYMENT_VERIFICATION: The operation is * waiting for the payment method to validate.

  • * PENDING_SUPPORT_CASE: The operation includes a support case and is * waiting for its resolution.

*/ inline GetOperationDetailResult& WithStatusFlag(const StatusFlag& value) { SetStatusFlag(value); return *this;} /** *

Lists any outstanding operations that require customer action. Valid values * are:

  • PENDING_ACCEPTANCE: The operation is waiting * for acceptance from the account that is receiving the domain.

  • * PENDING_CUSTOMER_ACTION: The operation is waiting for customer * action, for example, returning an email.

  • * PENDING_AUTHORIZATION: The operation is waiting for the form of * authorization. For more information, see ResendOperationAuthorization.

    *
  • PENDING_PAYMENT_VERIFICATION: The operation is * waiting for the payment method to validate.

  • * PENDING_SUPPORT_CASE: The operation includes a support case and is * waiting for its resolution.

*/ inline GetOperationDetailResult& WithStatusFlag(StatusFlag&& value) { SetStatusFlag(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetOperationDetailResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetOperationDetailResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetOperationDetailResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_operationId; OperationStatus m_status; Aws::String m_message; Aws::String m_domainName; OperationType m_type; Aws::Utils::DateTime m_submittedDate; Aws::Utils::DateTime m_lastUpdatedDate; StatusFlag m_statusFlag; Aws::String m_requestId; }; } // namespace Model } // namespace Route53Domains } // namespace Aws