494 lines
19 KiB
C
494 lines
19 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/ram/RAM_EXPORTS.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <aws/ram/model/ResourceShareStatus.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|||
|
|
#include <aws/core/utils/DateTime.h>
|
|||
|
|
#include <aws/ram/model/ResourceShareFeatureSet.h>
|
|||
|
|
#include <aws/ram/model/Tag.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace Utils
|
|||
|
|
{
|
|||
|
|
namespace Json
|
|||
|
|
{
|
|||
|
|
class JsonValue;
|
|||
|
|
class JsonView;
|
|||
|
|
} // namespace Json
|
|||
|
|
} // namespace Utils
|
|||
|
|
namespace RAM
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Describes a resource share.</p><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ResourceShare">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_RAM_API ResourceShare
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
ResourceShare();
|
|||
|
|
ResourceShare(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
ResourceShare& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetResourceShareArn() const{ return m_resourceShareArn; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool ResourceShareArnHasBeenSet() const { return m_resourceShareArnHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetResourceShareArn(const Aws::String& value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetResourceShareArn(Aws::String&& value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetResourceShareArn(const char* value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline ResourceShare& WithResourceShareArn(const Aws::String& value) { SetResourceShareArn(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline ResourceShare& WithResourceShareArn(Aws::String&& value) { SetResourceShareArn(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline ResourceShare& WithResourceShareArn(const char* value) { SetResourceShareArn(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetName() const{ return m_name; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline ResourceShare& WithName(const Aws::String& value) { SetName(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline ResourceShare& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline ResourceShare& WithName(const char* value) { SetName(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the AWS account that owns the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetOwningAccountId() const{ return m_owningAccountId; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the AWS account that owns the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool OwningAccountIdHasBeenSet() const { return m_owningAccountIdHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the AWS account that owns the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetOwningAccountId(const Aws::String& value) { m_owningAccountIdHasBeenSet = true; m_owningAccountId = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the AWS account that owns the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetOwningAccountId(Aws::String&& value) { m_owningAccountIdHasBeenSet = true; m_owningAccountId = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the AWS account that owns the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetOwningAccountId(const char* value) { m_owningAccountIdHasBeenSet = true; m_owningAccountId.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the AWS account that owns the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline ResourceShare& WithOwningAccountId(const Aws::String& value) { SetOwningAccountId(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the AWS account that owns the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline ResourceShare& WithOwningAccountId(Aws::String&& value) { SetOwningAccountId(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the AWS account that owns the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline ResourceShare& WithOwningAccountId(const char* value) { SetOwningAccountId(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Indicates whether principals outside your AWS organization can be associated
|
|||
|
|
* with a resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool GetAllowExternalPrincipals() const{ return m_allowExternalPrincipals; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Indicates whether principals outside your AWS organization can be associated
|
|||
|
|
* with a resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool AllowExternalPrincipalsHasBeenSet() const { return m_allowExternalPrincipalsHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Indicates whether principals outside your AWS organization can be associated
|
|||
|
|
* with a resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetAllowExternalPrincipals(bool value) { m_allowExternalPrincipalsHasBeenSet = true; m_allowExternalPrincipals = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Indicates whether principals outside your AWS organization can be associated
|
|||
|
|
* with a resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline ResourceShare& WithAllowExternalPrincipals(bool value) { SetAllowExternalPrincipals(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The status of the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline const ResourceShareStatus& GetStatus() const{ return m_status; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The status of the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The status of the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetStatus(const ResourceShareStatus& value) { m_statusHasBeenSet = true; m_status = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The status of the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetStatus(ResourceShareStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The status of the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline ResourceShare& WithStatus(const ResourceShareStatus& value) { SetStatus(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The status of the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline ResourceShare& WithStatus(ResourceShareStatus&& value) { SetStatus(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A message about the status of the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A message about the status of the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A message about the status of the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A message about the status of the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A message about the status of the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A message about the status of the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline ResourceShare& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A message about the status of the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline ResourceShare& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A message about the status of the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline ResourceShare& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The tags for the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The tags for the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The tags for the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The tags for the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The tags for the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline ResourceShare& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The tags for the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline ResourceShare& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The tags for the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline ResourceShare& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The tags for the resource share.</p>
|
|||
|
|
*/
|
|||
|
|
inline ResourceShare& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The time when the resource share was created.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The time when the resource share was created.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The time when the resource share was created.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The time when the resource share was created.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The time when the resource share was created.</p>
|
|||
|
|
*/
|
|||
|
|
inline ResourceShare& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The time when the resource share was created.</p>
|
|||
|
|
*/
|
|||
|
|
inline ResourceShare& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The time when the resource share was last updated.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The time when the resource share was last updated.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The time when the resource share was last updated.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The time when the resource share was last updated.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The time when the resource share was last updated.</p>
|
|||
|
|
*/
|
|||
|
|
inline ResourceShare& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The time when the resource share was last updated.</p>
|
|||
|
|
*/
|
|||
|
|
inline ResourceShare& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Indicates how the resource share was created. Possible values include:</p>
|
|||
|
|
* <ul> <li> <p> <code>CREATED_FROM_POLICY</code> - 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.</p> </li> <li> <p>
|
|||
|
|
* <code>PROMOTING_TO_STANDARD</code> - The resource share is in the process of
|
|||
|
|
* being promoted. For more information, see
|
|||
|
|
* <a>PromoteResourceShareCreatedFromPolicy</a>.</p> </li> <li> <p>
|
|||
|
|
* <code>STANDARD</code> - 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.</p> </li> </ul>
|
|||
|
|
*/
|
|||
|
|
inline const ResourceShareFeatureSet& GetFeatureSet() const{ return m_featureSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Indicates how the resource share was created. Possible values include:</p>
|
|||
|
|
* <ul> <li> <p> <code>CREATED_FROM_POLICY</code> - 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.</p> </li> <li> <p>
|
|||
|
|
* <code>PROMOTING_TO_STANDARD</code> - The resource share is in the process of
|
|||
|
|
* being promoted. For more information, see
|
|||
|
|
* <a>PromoteResourceShareCreatedFromPolicy</a>.</p> </li> <li> <p>
|
|||
|
|
* <code>STANDARD</code> - 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.</p> </li> </ul>
|
|||
|
|
*/
|
|||
|
|
inline bool FeatureSetHasBeenSet() const { return m_featureSetHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Indicates how the resource share was created. Possible values include:</p>
|
|||
|
|
* <ul> <li> <p> <code>CREATED_FROM_POLICY</code> - 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.</p> </li> <li> <p>
|
|||
|
|
* <code>PROMOTING_TO_STANDARD</code> - The resource share is in the process of
|
|||
|
|
* being promoted. For more information, see
|
|||
|
|
* <a>PromoteResourceShareCreatedFromPolicy</a>.</p> </li> <li> <p>
|
|||
|
|
* <code>STANDARD</code> - 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.</p> </li> </ul>
|
|||
|
|
*/
|
|||
|
|
inline void SetFeatureSet(const ResourceShareFeatureSet& value) { m_featureSetHasBeenSet = true; m_featureSet = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Indicates how the resource share was created. Possible values include:</p>
|
|||
|
|
* <ul> <li> <p> <code>CREATED_FROM_POLICY</code> - 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.</p> </li> <li> <p>
|
|||
|
|
* <code>PROMOTING_TO_STANDARD</code> - The resource share is in the process of
|
|||
|
|
* being promoted. For more information, see
|
|||
|
|
* <a>PromoteResourceShareCreatedFromPolicy</a>.</p> </li> <li> <p>
|
|||
|
|
* <code>STANDARD</code> - 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.</p> </li> </ul>
|
|||
|
|
*/
|
|||
|
|
inline void SetFeatureSet(ResourceShareFeatureSet&& value) { m_featureSetHasBeenSet = true; m_featureSet = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Indicates how the resource share was created. Possible values include:</p>
|
|||
|
|
* <ul> <li> <p> <code>CREATED_FROM_POLICY</code> - 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.</p> </li> <li> <p>
|
|||
|
|
* <code>PROMOTING_TO_STANDARD</code> - The resource share is in the process of
|
|||
|
|
* being promoted. For more information, see
|
|||
|
|
* <a>PromoteResourceShareCreatedFromPolicy</a>.</p> </li> <li> <p>
|
|||
|
|
* <code>STANDARD</code> - 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.</p> </li> </ul>
|
|||
|
|
*/
|
|||
|
|
inline ResourceShare& WithFeatureSet(const ResourceShareFeatureSet& value) { SetFeatureSet(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Indicates how the resource share was created. Possible values include:</p>
|
|||
|
|
* <ul> <li> <p> <code>CREATED_FROM_POLICY</code> - 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.</p> </li> <li> <p>
|
|||
|
|
* <code>PROMOTING_TO_STANDARD</code> - The resource share is in the process of
|
|||
|
|
* being promoted. For more information, see
|
|||
|
|
* <a>PromoteResourceShareCreatedFromPolicy</a>.</p> </li> <li> <p>
|
|||
|
|
* <code>STANDARD</code> - 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.</p> </li> </ul>
|
|||
|
|
*/
|
|||
|
|
inline ResourceShare& WithFeatureSet(ResourceShareFeatureSet&& value) { SetFeatureSet(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::String m_resourceShareArn;
|
|||
|
|
bool m_resourceShareArnHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_name;
|
|||
|
|
bool m_nameHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_owningAccountId;
|
|||
|
|
bool m_owningAccountIdHasBeenSet;
|
|||
|
|
|
|||
|
|
bool m_allowExternalPrincipals;
|
|||
|
|
bool m_allowExternalPrincipalsHasBeenSet;
|
|||
|
|
|
|||
|
|
ResourceShareStatus m_status;
|
|||
|
|
bool m_statusHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_statusMessage;
|
|||
|
|
bool m_statusMessageHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::Vector<Tag> m_tags;
|
|||
|
|
bool m_tagsHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::Utils::DateTime m_creationTime;
|
|||
|
|
bool m_creationTimeHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::Utils::DateTime m_lastUpdatedTime;
|
|||
|
|
bool m_lastUpdatedTimeHasBeenSet;
|
|||
|
|
|
|||
|
|
ResourceShareFeatureSet m_featureSet;
|
|||
|
|
bool m_featureSetHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace RAM
|
|||
|
|
} // namespace Aws
|