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

JoinDomainOutput

See Also:

AWS * API Reference

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

The unique Amazon Resource Name (ARN) of the gateway that joined the * domain.

*/ inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; } /** *

The unique Amazon Resource Name (ARN) of the gateway that joined the * domain.

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

The unique Amazon Resource Name (ARN) of the gateway that joined the * domain.

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

The unique Amazon Resource Name (ARN) of the gateway that joined the * domain.

*/ inline void SetGatewayARN(const char* value) { m_gatewayARN.assign(value); } /** *

The unique Amazon Resource Name (ARN) of the gateway that joined the * domain.

*/ inline JoinDomainResult& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;} /** *

The unique Amazon Resource Name (ARN) of the gateway that joined the * domain.

*/ inline JoinDomainResult& WithGatewayARN(Aws::String&& value) { SetGatewayARN(std::move(value)); return *this;} /** *

The unique Amazon Resource Name (ARN) of the gateway that joined the * domain.

*/ inline JoinDomainResult& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;} /** *

Indicates the status of the gateway as a member of the Active Directory * domain.

  • ACCESS_DENIED: Indicates that the * JoinDomain operation failed due to an authentication error.

    *
  • DETACHED: Indicates that gateway is not joined to a * domain.

  • JOINED: Indicates that the gateway has * successfully joined a domain.

  • JOINING: Indicates * that a JoinDomain operation is in progress.

  • * NETWORK_ERROR: Indicates that JoinDomain operation * failed due to a network or connectivity error.

  • * TIMEOUT: Indicates that the JoinDomain operation * failed because the operation didn't complete within the allotted time.

  • *
  • UNKNOWN_ERROR: Indicates that the JoinDomain * operation failed due to another type of error.

*/ inline const ActiveDirectoryStatus& GetActiveDirectoryStatus() const{ return m_activeDirectoryStatus; } /** *

Indicates the status of the gateway as a member of the Active Directory * domain.

  • ACCESS_DENIED: Indicates that the * JoinDomain operation failed due to an authentication error.

    *
  • DETACHED: Indicates that gateway is not joined to a * domain.

  • JOINED: Indicates that the gateway has * successfully joined a domain.

  • JOINING: Indicates * that a JoinDomain operation is in progress.

  • * NETWORK_ERROR: Indicates that JoinDomain operation * failed due to a network or connectivity error.

  • * TIMEOUT: Indicates that the JoinDomain operation * failed because the operation didn't complete within the allotted time.

  • *
  • UNKNOWN_ERROR: Indicates that the JoinDomain * operation failed due to another type of error.

*/ inline void SetActiveDirectoryStatus(const ActiveDirectoryStatus& value) { m_activeDirectoryStatus = value; } /** *

Indicates the status of the gateway as a member of the Active Directory * domain.

  • ACCESS_DENIED: Indicates that the * JoinDomain operation failed due to an authentication error.

    *
  • DETACHED: Indicates that gateway is not joined to a * domain.

  • JOINED: Indicates that the gateway has * successfully joined a domain.

  • JOINING: Indicates * that a JoinDomain operation is in progress.

  • * NETWORK_ERROR: Indicates that JoinDomain operation * failed due to a network or connectivity error.

  • * TIMEOUT: Indicates that the JoinDomain operation * failed because the operation didn't complete within the allotted time.

  • *
  • UNKNOWN_ERROR: Indicates that the JoinDomain * operation failed due to another type of error.

*/ inline void SetActiveDirectoryStatus(ActiveDirectoryStatus&& value) { m_activeDirectoryStatus = std::move(value); } /** *

Indicates the status of the gateway as a member of the Active Directory * domain.

  • ACCESS_DENIED: Indicates that the * JoinDomain operation failed due to an authentication error.

    *
  • DETACHED: Indicates that gateway is not joined to a * domain.

  • JOINED: Indicates that the gateway has * successfully joined a domain.

  • JOINING: Indicates * that a JoinDomain operation is in progress.

  • * NETWORK_ERROR: Indicates that JoinDomain operation * failed due to a network or connectivity error.

  • * TIMEOUT: Indicates that the JoinDomain operation * failed because the operation didn't complete within the allotted time.

  • *
  • UNKNOWN_ERROR: Indicates that the JoinDomain * operation failed due to another type of error.

*/ inline JoinDomainResult& WithActiveDirectoryStatus(const ActiveDirectoryStatus& value) { SetActiveDirectoryStatus(value); return *this;} /** *

Indicates the status of the gateway as a member of the Active Directory * domain.

  • ACCESS_DENIED: Indicates that the * JoinDomain operation failed due to an authentication error.

    *
  • DETACHED: Indicates that gateway is not joined to a * domain.

  • JOINED: Indicates that the gateway has * successfully joined a domain.

  • JOINING: Indicates * that a JoinDomain operation is in progress.

  • * NETWORK_ERROR: Indicates that JoinDomain operation * failed due to a network or connectivity error.

  • * TIMEOUT: Indicates that the JoinDomain operation * failed because the operation didn't complete within the allotted time.

  • *
  • UNKNOWN_ERROR: Indicates that the JoinDomain * operation failed due to another type of error.

*/ inline JoinDomainResult& WithActiveDirectoryStatus(ActiveDirectoryStatus&& value) { SetActiveDirectoryStatus(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 JoinDomainResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline JoinDomainResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline JoinDomainResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_gatewayARN; ActiveDirectoryStatus m_activeDirectoryStatus; Aws::String m_requestId; }; } // namespace Model } // namespace StorageGateway } // namespace Aws