/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes an association between a resource share and either a principal or a
* resource.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. This can be either of the following:
For a resource association, this is the Amazon * Resource Name (ARN) of the resource.
For principal * associations, this is one of the following:
The ID of an Amazon * Web Services account
The Amazon * Resource Name (ARN) of an organization in Organizations
The ARN of an organizational unit (OU) in Organizations
The * ARN of an IAM role
The ARN of an IAM user
The associated entity. This can be either of the following:
For a resource association, this is the Amazon * Resource Name (ARN) of the resource.
For principal * associations, this is one of the following:
The ID of an Amazon * Web Services account
The Amazon * Resource Name (ARN) of an organization in Organizations
The ARN of an organizational unit (OU) in Organizations
The * ARN of an IAM role
The ARN of an IAM user
The associated entity. This can be either of the following:
For a resource association, this is the Amazon * Resource Name (ARN) of the resource.
For principal * associations, this is one of the following:
The ID of an Amazon * Web Services account
The Amazon * Resource Name (ARN) of an organization in Organizations
The ARN of an organizational unit (OU) in Organizations
The * ARN of an IAM role
The ARN of an IAM user
The associated entity. This can be either of the following:
For a resource association, this is the Amazon * Resource Name (ARN) of the resource.
For principal * associations, this is one of the following:
The ID of an Amazon * Web Services account
The Amazon * Resource Name (ARN) of an organization in Organizations
The ARN of an organizational unit (OU) in Organizations
The * ARN of an IAM role
The ARN of an IAM user
The associated entity. This can be either of the following:
For a resource association, this is the Amazon * Resource Name (ARN) of the resource.
For principal * associations, this is one of the following:
The ID of an Amazon * Web Services account
The Amazon * Resource Name (ARN) of an organization in Organizations
The ARN of an organizational unit (OU) in Organizations
The * ARN of an IAM role
The ARN of an IAM user
The associated entity. This can be either of the following:
For a resource association, this is the Amazon * Resource Name (ARN) of the resource.
For principal * associations, this is one of the following:
The ID of an Amazon * Web Services account
The Amazon * Resource Name (ARN) of an organization in Organizations
The ARN of an organizational unit (OU) in Organizations
The * ARN of an IAM role
The ARN of an IAM user
The associated entity. This can be either of the following:
For a resource association, this is the Amazon * Resource Name (ARN) of the resource.
For principal * associations, this is one of the following:
The ID of an Amazon * Web Services account
The Amazon * Resource Name (ARN) of an organization in Organizations
The ARN of an organizational unit (OU) in Organizations
The * ARN of an IAM role
The ARN of an IAM user
The associated entity. This can be either of the following:
For a resource association, this is the Amazon * Resource Name (ARN) of the resource.
For principal * associations, this is one of the following:
The ID of an Amazon * Web Services account
The Amazon * Resource Name (ARN) of an organization in Organizations
The ARN of an organizational unit (OU) in Organizations
The * ARN of an IAM role
The ARN of an IAM user
The type of entity included in this association.
*/ inline const ResourceShareAssociationType& GetAssociationType() const{ return m_associationType; } /** *The type of entity included in this association.
*/ inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; } /** *The type of entity included in this association.
*/ inline void SetAssociationType(const ResourceShareAssociationType& value) { m_associationTypeHasBeenSet = true; m_associationType = value; } /** *The type of entity included in this association.
*/ inline void SetAssociationType(ResourceShareAssociationType&& value) { m_associationTypeHasBeenSet = true; m_associationType = std::move(value); } /** *The type of entity included in this association.
*/ inline ResourceShareAssociation& WithAssociationType(const ResourceShareAssociationType& value) { SetAssociationType(value); return *this;} /** *The type of entity included in this association.
*/ inline ResourceShareAssociation& WithAssociationType(ResourceShareAssociationType&& value) { SetAssociationType(std::move(value)); return *this;} /** *The current status of the association.
*/ inline const ResourceShareAssociationStatus& GetStatus() const{ return m_status; } /** *The current status of the association.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The current status of the association.
*/ inline void SetStatus(const ResourceShareAssociationStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *The current status of the association.
*/ inline void SetStatus(ResourceShareAssociationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The current status of the association.
*/ inline ResourceShareAssociation& WithStatus(const ResourceShareAssociationStatus& value) { SetStatus(value); return *this;} /** *The current 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 date and time when the association was created.
*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *The date and time when the association was created.
*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *The date and time when the association was created.
*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *The date and time when the association was created.
*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *The date and time when the association was created.
*/ inline ResourceShareAssociation& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *The date and time when the association was created.
*/ inline ResourceShareAssociation& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *The date and time when the association was last updated.
*/ inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; } /** *The date and time when the association was last updated.
*/ inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; } /** *The date and time when the association was last updated.
*/ inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; } /** *The date and time when the association was last updated.
*/ inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); } /** *The date and time when the association was last updated.
*/ inline ResourceShareAssociation& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;} /** *The date and 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 organization in * Organizations as the Amazon Web Services account that owns the resource * share.
*/ inline bool GetExternal() const{ return m_external; } /** *Indicates whether the principal belongs to the same organization in * Organizations as the Amazon Web Services account that owns the resource * share.
*/ inline bool ExternalHasBeenSet() const { return m_externalHasBeenSet; } /** *Indicates whether the principal belongs to the same organization in * Organizations as the Amazon Web Services 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 organization in * Organizations as the Amazon Web Services account that owns the resource * share.
*/ inline ResourceShareAssociation& WithExternal(bool value) { SetExternal(value); return *this;} private: Aws::String m_resourceShareArn; bool m_resourceShareArnHasBeenSet = false; Aws::String m_resourceShareName; bool m_resourceShareNameHasBeenSet = false; Aws::String m_associatedEntity; bool m_associatedEntityHasBeenSet = false; ResourceShareAssociationType m_associationType; bool m_associationTypeHasBeenSet = false; ResourceShareAssociationStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_statusMessage; bool m_statusMessageHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedTime; bool m_lastUpdatedTimeHasBeenSet = false; bool m_external; bool m_externalHasBeenSet = false; }; } // namespace Model } // namespace RAM } // namespace Aws