/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes 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 ResourceShare& WithResourceShareArn(const Aws::String& value) { SetResourceShareArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the resource share.
*/ inline ResourceShare& WithResourceShareArn(Aws::String&& value) { SetResourceShareArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the resource share.
*/ inline ResourceShare& WithResourceShareArn(const char* value) { SetResourceShareArn(value); return *this;} /** *The name of the resource share.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the resource share.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the resource share.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the resource share.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the resource share.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the resource share.
*/ inline ResourceShare& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the resource share.
*/ inline ResourceShare& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the resource share.
*/ inline ResourceShare& WithName(const char* value) { SetName(value); return *this;} /** *The ID of the AWS account that owns the resource share.
*/ inline const Aws::String& GetOwningAccountId() const{ return m_owningAccountId; } /** *The ID of the AWS account that owns the resource share.
*/ inline bool OwningAccountIdHasBeenSet() const { return m_owningAccountIdHasBeenSet; } /** *The ID of the AWS account that owns the resource share.
*/ inline void SetOwningAccountId(const Aws::String& value) { m_owningAccountIdHasBeenSet = true; m_owningAccountId = value; } /** *The ID of the AWS account that owns the resource share.
*/ inline void SetOwningAccountId(Aws::String&& value) { m_owningAccountIdHasBeenSet = true; m_owningAccountId = std::move(value); } /** *The ID of the AWS account that owns the resource share.
*/ inline void SetOwningAccountId(const char* value) { m_owningAccountIdHasBeenSet = true; m_owningAccountId.assign(value); } /** *The ID of the AWS account that owns the resource share.
*/ inline ResourceShare& WithOwningAccountId(const Aws::String& value) { SetOwningAccountId(value); return *this;} /** *The ID of the AWS account that owns the resource share.
*/ inline ResourceShare& WithOwningAccountId(Aws::String&& value) { SetOwningAccountId(std::move(value)); return *this;} /** *The ID of the AWS account that owns the resource share.
*/ inline ResourceShare& WithOwningAccountId(const char* value) { SetOwningAccountId(value); return *this;} /** *Indicates whether principals outside your AWS organization can be associated * with a resource share.
*/ inline bool GetAllowExternalPrincipals() const{ return m_allowExternalPrincipals; } /** *Indicates whether principals outside your AWS organization can be associated * with a resource share.
*/ inline bool AllowExternalPrincipalsHasBeenSet() const { return m_allowExternalPrincipalsHasBeenSet; } /** *Indicates whether principals outside your AWS organization can be associated * with a resource share.
*/ inline void SetAllowExternalPrincipals(bool value) { m_allowExternalPrincipalsHasBeenSet = true; m_allowExternalPrincipals = value; } /** *Indicates whether principals outside your AWS organization can be associated * with a resource share.
*/ inline ResourceShare& WithAllowExternalPrincipals(bool value) { SetAllowExternalPrincipals(value); return *this;} /** *The status of the resource share.
*/ inline const ResourceShareStatus& GetStatus() const{ return m_status; } /** *The status of the resource share.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The status of the resource share.
*/ inline void SetStatus(const ResourceShareStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *The status of the resource share.
*/ inline void SetStatus(ResourceShareStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The status of the resource share.
*/ inline ResourceShare& WithStatus(const ResourceShareStatus& value) { SetStatus(value); return *this;} /** *The status of the resource share.
*/ inline ResourceShare& WithStatus(ResourceShareStatus&& value) { SetStatus(std::move(value)); return *this;} /** *A message about the status of the resource share.
*/ inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; } /** *A message about the status of the resource share.
*/ inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; } /** *A message about the status of the resource share.
*/ inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; } /** *A message about the status of the resource share.
*/ inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); } /** *A message about the status of the resource share.
*/ inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); } /** *A message about the status of the resource share.
*/ inline ResourceShare& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} /** *A message about the status of the resource share.
*/ inline ResourceShare& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;} /** *A message about the status of the resource share.
*/ inline ResourceShare& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} /** *The tags for the resource share.
*/ inline const Aws::VectorThe tags for the resource share.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *The tags for the resource share.
*/ inline void SetTags(const Aws::VectorThe tags for the resource share.
*/ inline void SetTags(Aws::VectorThe tags for the resource share.
*/ inline ResourceShare& WithTags(const Aws::VectorThe tags for the resource share.
*/ inline ResourceShare& WithTags(Aws::VectorThe tags for the resource share.
*/ inline ResourceShare& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *The tags for the resource share.
*/ inline ResourceShare& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *The time when the resource share was created.
*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *The time when the resource share was created.
*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *The time when the resource share was created.
*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *The time when the resource share was created.
*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *The time when the resource share was created.
*/ inline ResourceShare& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *The time when the resource share was created.
*/ inline ResourceShare& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *The time when the resource share was last updated.
*/ inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; } /** *The time when the resource share was last updated.
*/ inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; } /** *The time when the resource share was last updated.
*/ inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; } /** *The time when the resource share was last updated.
*/ inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); } /** *The time when the resource share was last updated.
*/ inline ResourceShare& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;} /** *The time when the resource share was last updated.
*/ inline ResourceShare& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;} /** *Indicates how the resource share was created. Possible values include:
* CREATED_FROM_POLICY - Indicates that the resource
* share was created from an AWS Identity and Access Management (AWS IAM) policy
* attached to a resource. These resource shares are visible only to the AWS
* account that created it. They cannot be modified in AWS RAM.
* PROMOTING_TO_STANDARD - The resource share is in the process of
* being promoted. For more information, see
* PromoteResourceShareCreatedFromPolicy.
* STANDARD - Indicates that the resource share was created in AWS RAM
* using the console or APIs. These resource shares are visible to all principals.
* They can be modified in AWS RAM.
Indicates how the resource share was created. Possible values include:
* CREATED_FROM_POLICY - Indicates that the resource
* share was created from an AWS Identity and Access Management (AWS IAM) policy
* attached to a resource. These resource shares are visible only to the AWS
* account that created it. They cannot be modified in AWS RAM.
* PROMOTING_TO_STANDARD - The resource share is in the process of
* being promoted. For more information, see
* PromoteResourceShareCreatedFromPolicy.
* STANDARD - Indicates that the resource share was created in AWS RAM
* using the console or APIs. These resource shares are visible to all principals.
* They can be modified in AWS RAM.
Indicates how the resource share was created. Possible values include:
* CREATED_FROM_POLICY - Indicates that the resource
* share was created from an AWS Identity and Access Management (AWS IAM) policy
* attached to a resource. These resource shares are visible only to the AWS
* account that created it. They cannot be modified in AWS RAM.
* PROMOTING_TO_STANDARD - The resource share is in the process of
* being promoted. For more information, see
* PromoteResourceShareCreatedFromPolicy.
* STANDARD - Indicates that the resource share was created in AWS RAM
* using the console or APIs. These resource shares are visible to all principals.
* They can be modified in AWS RAM.
Indicates how the resource share was created. Possible values include:
* CREATED_FROM_POLICY - Indicates that the resource
* share was created from an AWS Identity and Access Management (AWS IAM) policy
* attached to a resource. These resource shares are visible only to the AWS
* account that created it. They cannot be modified in AWS RAM.
* PROMOTING_TO_STANDARD - The resource share is in the process of
* being promoted. For more information, see
* PromoteResourceShareCreatedFromPolicy.
* STANDARD - Indicates that the resource share was created in AWS RAM
* using the console or APIs. These resource shares are visible to all principals.
* They can be modified in AWS RAM.
Indicates how the resource share was created. Possible values include:
* CREATED_FROM_POLICY - Indicates that the resource
* share was created from an AWS Identity and Access Management (AWS IAM) policy
* attached to a resource. These resource shares are visible only to the AWS
* account that created it. They cannot be modified in AWS RAM.
* PROMOTING_TO_STANDARD - The resource share is in the process of
* being promoted. For more information, see
* PromoteResourceShareCreatedFromPolicy.
* STANDARD - Indicates that the resource share was created in AWS RAM
* using the console or APIs. These resource shares are visible to all principals.
* They can be modified in AWS RAM.
Indicates how the resource share was created. Possible values include:
* CREATED_FROM_POLICY - Indicates that the resource
* share was created from an AWS Identity and Access Management (AWS IAM) policy
* attached to a resource. These resource shares are visible only to the AWS
* account that created it. They cannot be modified in AWS RAM.
* PROMOTING_TO_STANDARD - The resource share is in the process of
* being promoted. For more information, see
* PromoteResourceShareCreatedFromPolicy.
* STANDARD - Indicates that the resource share was created in AWS RAM
* using the console or APIs. These resource shares are visible to all principals.
* They can be modified in AWS RAM.