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

Describes an ApiAssociation object.

See Also:

* AWS * API Reference

*/ class ApiAssociation { public: AWS_APPSYNC_API ApiAssociation(); AWS_APPSYNC_API ApiAssociation(Aws::Utils::Json::JsonView jsonValue); AWS_APPSYNC_API ApiAssociation& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The domain name.

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

The domain name.

*/ inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; } /** *

The domain name.

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

The domain name.

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

The domain name.

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

The domain name.

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

The domain name.

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

The domain name.

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

The API ID.

*/ inline const Aws::String& GetApiId() const{ return m_apiId; } /** *

The API ID.

*/ inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; } /** *

The API ID.

*/ inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; } /** *

The API ID.

*/ inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); } /** *

The API ID.

*/ inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); } /** *

The API ID.

*/ inline ApiAssociation& WithApiId(const Aws::String& value) { SetApiId(value); return *this;} /** *

The API ID.

*/ inline ApiAssociation& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;} /** *

The API ID.

*/ inline ApiAssociation& WithApiId(const char* value) { SetApiId(value); return *this;} /** *

Identifies the status of an association.

  • PROCESSING: * The API association is being created. You cannot modify association requests * during processing.

  • SUCCESS: The API association was * successful. You can modify associations after success.

  • * FAILED: The API association has failed. You can modify associations after * failure.

*/ inline const AssociationStatus& GetAssociationStatus() const{ return m_associationStatus; } /** *

Identifies the status of an association.

  • PROCESSING: * The API association is being created. You cannot modify association requests * during processing.

  • SUCCESS: The API association was * successful. You can modify associations after success.

  • * FAILED: The API association has failed. You can modify associations after * failure.

*/ inline bool AssociationStatusHasBeenSet() const { return m_associationStatusHasBeenSet; } /** *

Identifies the status of an association.

  • PROCESSING: * The API association is being created. You cannot modify association requests * during processing.

  • SUCCESS: The API association was * successful. You can modify associations after success.

  • * FAILED: The API association has failed. You can modify associations after * failure.

*/ inline void SetAssociationStatus(const AssociationStatus& value) { m_associationStatusHasBeenSet = true; m_associationStatus = value; } /** *

Identifies the status of an association.

  • PROCESSING: * The API association is being created. You cannot modify association requests * during processing.

  • SUCCESS: The API association was * successful. You can modify associations after success.

  • * FAILED: The API association has failed. You can modify associations after * failure.

*/ inline void SetAssociationStatus(AssociationStatus&& value) { m_associationStatusHasBeenSet = true; m_associationStatus = std::move(value); } /** *

Identifies the status of an association.

  • PROCESSING: * The API association is being created. You cannot modify association requests * during processing.

  • SUCCESS: The API association was * successful. You can modify associations after success.

  • * FAILED: The API association has failed. You can modify associations after * failure.

*/ inline ApiAssociation& WithAssociationStatus(const AssociationStatus& value) { SetAssociationStatus(value); return *this;} /** *

Identifies the status of an association.

  • PROCESSING: * The API association is being created. You cannot modify association requests * during processing.

  • SUCCESS: The API association was * successful. You can modify associations after success.

  • * FAILED: The API association has failed. You can modify associations after * failure.

*/ inline ApiAssociation& WithAssociationStatus(AssociationStatus&& value) { SetAssociationStatus(std::move(value)); return *this;} /** *

Details about the last deployment status.

*/ inline const Aws::String& GetDeploymentDetail() const{ return m_deploymentDetail; } /** *

Details about the last deployment status.

*/ inline bool DeploymentDetailHasBeenSet() const { return m_deploymentDetailHasBeenSet; } /** *

Details about the last deployment status.

*/ inline void SetDeploymentDetail(const Aws::String& value) { m_deploymentDetailHasBeenSet = true; m_deploymentDetail = value; } /** *

Details about the last deployment status.

*/ inline void SetDeploymentDetail(Aws::String&& value) { m_deploymentDetailHasBeenSet = true; m_deploymentDetail = std::move(value); } /** *

Details about the last deployment status.

*/ inline void SetDeploymentDetail(const char* value) { m_deploymentDetailHasBeenSet = true; m_deploymentDetail.assign(value); } /** *

Details about the last deployment status.

*/ inline ApiAssociation& WithDeploymentDetail(const Aws::String& value) { SetDeploymentDetail(value); return *this;} /** *

Details about the last deployment status.

*/ inline ApiAssociation& WithDeploymentDetail(Aws::String&& value) { SetDeploymentDetail(std::move(value)); return *this;} /** *

Details about the last deployment status.

*/ inline ApiAssociation& WithDeploymentDetail(const char* value) { SetDeploymentDetail(value); return *this;} private: Aws::String m_domainName; bool m_domainNameHasBeenSet = false; Aws::String m_apiId; bool m_apiIdHasBeenSet = false; AssociationStatus m_associationStatus; bool m_associationStatusHasBeenSet = false; Aws::String m_deploymentDetail; bool m_deploymentDetailHasBeenSet = false; }; } // namespace Model } // namespace AppSync } // namespace Aws