/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes an association with a resource share.See Also:
AWS
* API Reference
The Amazon Resource Name (ARN) of the resource share.
*/ inline const Aws::String& GetResourceShareArn() const{ return m_resourceShareArn; } /** *The Amazon Resource Name (ARN) of the resource share.
*/ inline bool ResourceShareArnHasBeenSet() const { return m_resourceShareArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the resource share.
*/ inline void SetResourceShareArn(const Aws::String& value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn = value; } /** *The Amazon Resource Name (ARN) of the resource share.
*/ inline void SetResourceShareArn(Aws::String&& value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn = std::move(value); } /** *The Amazon Resource Name (ARN) of the resource share.
*/ inline void SetResourceShareArn(const char* value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn.assign(value); } /** *The Amazon Resource Name (ARN) of the resource share.
*/ inline ResourceShareAssociation& WithResourceShareArn(const Aws::String& value) { SetResourceShareArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the resource share.
*/ inline ResourceShareAssociation& WithResourceShareArn(Aws::String&& value) { SetResourceShareArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the resource share.
*/ inline ResourceShareAssociation& WithResourceShareArn(const char* value) { SetResourceShareArn(value); return *this;} /** *The name of the resource share.
*/ inline const Aws::String& GetResourceShareName() const{ return m_resourceShareName; } /** *The name of the resource share.
*/ inline bool ResourceShareNameHasBeenSet() const { return m_resourceShareNameHasBeenSet; } /** *The name of the resource share.
*/ inline void SetResourceShareName(const Aws::String& value) { m_resourceShareNameHasBeenSet = true; m_resourceShareName = value; } /** *The name of the resource share.
*/ inline void SetResourceShareName(Aws::String&& value) { m_resourceShareNameHasBeenSet = true; m_resourceShareName = std::move(value); } /** *The name of the resource share.
*/ inline void SetResourceShareName(const char* value) { m_resourceShareNameHasBeenSet = true; m_resourceShareName.assign(value); } /** *The name of the resource share.
*/ inline ResourceShareAssociation& WithResourceShareName(const Aws::String& value) { SetResourceShareName(value); return *this;} /** *The name of the resource share.
*/ inline ResourceShareAssociation& WithResourceShareName(Aws::String&& value) { SetResourceShareName(std::move(value)); return *this;} /** *The name of the resource share.
*/ inline ResourceShareAssociation& WithResourceShareName(const char* value) { SetResourceShareName(value); return *this;} /** *The associated entity. For resource associations, this is the ARN of the * resource. For principal associations, this is the ID of an AWS account or the * ARN of an OU or organization from AWS Organizations.
*/ inline const Aws::String& GetAssociatedEntity() const{ return m_associatedEntity; } /** *The associated entity. For resource associations, this is the ARN of the * resource. For principal associations, this is the ID of an AWS account or the * ARN of an OU or organization from AWS Organizations.
*/ inline bool AssociatedEntityHasBeenSet() const { return m_associatedEntityHasBeenSet; } /** *The associated entity. For resource associations, this is the ARN of the * resource. For principal associations, this is the ID of an AWS account or the * ARN of an OU or organization from AWS Organizations.
*/ inline void SetAssociatedEntity(const Aws::String& value) { m_associatedEntityHasBeenSet = true; m_associatedEntity = value; } /** *The associated entity. For resource associations, this is the ARN of the * resource. For principal associations, this is the ID of an AWS account or the * ARN of an OU or organization from AWS Organizations.
*/ inline void SetAssociatedEntity(Aws::String&& value) { m_associatedEntityHasBeenSet = true; m_associatedEntity = std::move(value); } /** *The associated entity. For resource associations, this is the ARN of the * resource. For principal associations, this is the ID of an AWS account or the * ARN of an OU or organization from AWS Organizations.
*/ inline void SetAssociatedEntity(const char* value) { m_associatedEntityHasBeenSet = true; m_associatedEntity.assign(value); } /** *The associated entity. For resource associations, this is the ARN of the * resource. For principal associations, this is the ID of an AWS account or the * ARN of an OU or organization from AWS Organizations.
*/ inline ResourceShareAssociation& WithAssociatedEntity(const Aws::String& value) { SetAssociatedEntity(value); return *this;} /** *The associated entity. For resource associations, this is the ARN of the * resource. For principal associations, this is the ID of an AWS account or the * ARN of an OU or organization from AWS Organizations.
*/ inline ResourceShareAssociation& WithAssociatedEntity(Aws::String&& value) { SetAssociatedEntity(std::move(value)); return *this;} /** *The associated entity. For resource associations, this is the ARN of the * resource. For principal associations, this is the ID of an AWS account or the * ARN of an OU or organization from AWS Organizations.
*/ inline ResourceShareAssociation& WithAssociatedEntity(const char* value) { SetAssociatedEntity(value); return *this;} /** *The association type.
*/ inline const ResourceShareAssociationType& GetAssociationType() const{ return m_associationType; } /** *The association type.
*/ inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; } /** *The association type.
*/ inline void SetAssociationType(const ResourceShareAssociationType& value) { m_associationTypeHasBeenSet = true; m_associationType = value; } /** *The association type.
*/ inline void SetAssociationType(ResourceShareAssociationType&& value) { m_associationTypeHasBeenSet = true; m_associationType = std::move(value); } /** *The association type.
*/ inline ResourceShareAssociation& WithAssociationType(const ResourceShareAssociationType& value) { SetAssociationType(value); return *this;} /** *The association type.
*/ inline ResourceShareAssociation& WithAssociationType(ResourceShareAssociationType&& value) { SetAssociationType(std::move(value)); return *this;} /** *The status of the association.
*/ inline const ResourceShareAssociationStatus& GetStatus() const{ return m_status; } /** *The status of the association.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The status of the association.
*/ inline void SetStatus(const ResourceShareAssociationStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *The status of the association.
*/ inline void SetStatus(ResourceShareAssociationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The status of the association.
*/ inline ResourceShareAssociation& WithStatus(const ResourceShareAssociationStatus& value) { SetStatus(value); return *this;} /** *The status of the association.
*/ inline ResourceShareAssociation& WithStatus(ResourceShareAssociationStatus&& value) { SetStatus(std::move(value)); return *this;} /** *A message about the status of the association.
*/ inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; } /** *A message about the status of the association.
*/ inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; } /** *A message about the status of the association.
*/ inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; } /** *A message about the status of the association.
*/ inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); } /** *A message about the status of the association.
*/ inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); } /** *A message about the status of the association.
*/ inline ResourceShareAssociation& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} /** *A message about the status of the association.
*/ inline ResourceShareAssociation& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;} /** *A message about the status of the association.
*/ inline ResourceShareAssociation& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} /** *The time when the association was created.
*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *The time when the association was created.
*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *The time when the association was created.
*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *The time when the association was created.
*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *The time when the association was created.
*/ inline ResourceShareAssociation& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *The time when the association was created.
*/ inline ResourceShareAssociation& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *The time when the association was last updated.
*/ inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; } /** *The time when the association was last updated.
*/ inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; } /** *The time when the association was last updated.
*/ inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; } /** *The time when the association was last updated.
*/ inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); } /** *The time when the association was last updated.
*/ inline ResourceShareAssociation& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;} /** *The time when the association was last updated.
*/ inline ResourceShareAssociation& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;} /** *Indicates whether the principal belongs to the same AWS organization as the * AWS account that owns the resource share.
*/ inline bool GetExternal() const{ return m_external; } /** *Indicates whether the principal belongs to the same AWS organization as the * AWS account that owns the resource share.
*/ inline bool ExternalHasBeenSet() const { return m_externalHasBeenSet; } /** *Indicates whether the principal belongs to the same AWS organization as the * AWS account that owns the resource share.
*/ inline void SetExternal(bool value) { m_externalHasBeenSet = true; m_external = value; } /** *Indicates whether the principal belongs to the same AWS organization as the * AWS account that owns the resource share.
*/ inline ResourceShareAssociation& WithExternal(bool value) { SetExternal(value); return *this;} private: Aws::String m_resourceShareArn; bool m_resourceShareArnHasBeenSet; Aws::String m_resourceShareName; bool m_resourceShareNameHasBeenSet; Aws::String m_associatedEntity; bool m_associatedEntityHasBeenSet; ResourceShareAssociationType m_associationType; bool m_associationTypeHasBeenSet; ResourceShareAssociationStatus m_status; bool m_statusHasBeenSet; Aws::String m_statusMessage; bool m_statusMessageHasBeenSet; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet; Aws::Utils::DateTime m_lastUpdatedTime; bool m_lastUpdatedTimeHasBeenSet; bool m_external; bool m_externalHasBeenSet; }; } // namespace Model } // namespace RAM } // namespace Aws