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

An object that describes a managed permission associated with a resource * share.

See Also:

AWS * API Reference

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

The Amazon * Resource Name (ARN) of the associated managed permission.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon * Resource Name (ARN) of the associated managed permission.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon * Resource Name (ARN) of the associated managed permission.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The Amazon * Resource Name (ARN) of the associated managed permission.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The Amazon * Resource Name (ARN) of the associated managed permission.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The Amazon * Resource Name (ARN) of the associated managed permission.

*/ inline AssociatedPermission& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon * Resource Name (ARN) of the associated managed permission.

*/ inline AssociatedPermission& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon * Resource Name (ARN) of the associated managed permission.

*/ inline AssociatedPermission& WithArn(const char* value) { SetArn(value); return *this;} /** *

The version of the permission currently associated with the resource * share.

*/ inline const Aws::String& GetPermissionVersion() const{ return m_permissionVersion; } /** *

The version of the permission currently associated with the resource * share.

*/ inline bool PermissionVersionHasBeenSet() const { return m_permissionVersionHasBeenSet; } /** *

The version of the permission currently associated with the resource * share.

*/ inline void SetPermissionVersion(const Aws::String& value) { m_permissionVersionHasBeenSet = true; m_permissionVersion = value; } /** *

The version of the permission currently associated with the resource * share.

*/ inline void SetPermissionVersion(Aws::String&& value) { m_permissionVersionHasBeenSet = true; m_permissionVersion = std::move(value); } /** *

The version of the permission currently associated with the resource * share.

*/ inline void SetPermissionVersion(const char* value) { m_permissionVersionHasBeenSet = true; m_permissionVersion.assign(value); } /** *

The version of the permission currently associated with the resource * share.

*/ inline AssociatedPermission& WithPermissionVersion(const Aws::String& value) { SetPermissionVersion(value); return *this;} /** *

The version of the permission currently associated with the resource * share.

*/ inline AssociatedPermission& WithPermissionVersion(Aws::String&& value) { SetPermissionVersion(std::move(value)); return *this;} /** *

The version of the permission currently associated with the resource * share.

*/ inline AssociatedPermission& WithPermissionVersion(const char* value) { SetPermissionVersion(value); return *this;} /** *

Indicates whether the associated resource share is using the default version * of the permission.

*/ inline bool GetDefaultVersion() const{ return m_defaultVersion; } /** *

Indicates whether the associated resource share is using the default version * of the permission.

*/ inline bool DefaultVersionHasBeenSet() const { return m_defaultVersionHasBeenSet; } /** *

Indicates whether the associated resource share is using the default version * of the permission.

*/ inline void SetDefaultVersion(bool value) { m_defaultVersionHasBeenSet = true; m_defaultVersion = value; } /** *

Indicates whether the associated resource share is using the default version * of the permission.

*/ inline AssociatedPermission& WithDefaultVersion(bool value) { SetDefaultVersion(value); return *this;} /** *

The resource type to which this permission applies.

*/ inline const Aws::String& GetResourceType() const{ return m_resourceType; } /** *

The resource type to which this permission applies.

*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *

The resource type to which this permission applies.

*/ inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *

The resource type to which this permission applies.

*/ inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *

The resource type to which this permission applies.

*/ inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } /** *

The resource type to which this permission applies.

*/ inline AssociatedPermission& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} /** *

The resource type to which this permission applies.

*/ inline AssociatedPermission& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} /** *

The resource type to which this permission applies.

*/ inline AssociatedPermission& WithResourceType(const char* value) { SetResourceType(value); return *this;} /** *

The current status of the association between the permission and the resource * share. The following are the possible values:

  • * ATTACHABLE – This permission or version can be associated with * resource shares.

  • UNATTACHABLE – This permission * or version can't currently be associated with resource shares.

  • *

    DELETING – This permission or version is in the process of * being deleted.

  • DELETED – This permission or * version is deleted.

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The current status of the association between the permission and the resource * share. The following are the possible values:

  • * ATTACHABLE – This permission or version can be associated with * resource shares.

  • UNATTACHABLE – This permission * or version can't currently be associated with resource shares.

  • *

    DELETING – This permission or version is in the process of * being deleted.

  • DELETED – This permission or * version is deleted.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The current status of the association between the permission and the resource * share. The following are the possible values:

  • * ATTACHABLE – This permission or version can be associated with * resource shares.

  • UNATTACHABLE – This permission * or version can't currently be associated with resource shares.

  • *

    DELETING – This permission or version is in the process of * being deleted.

  • DELETED – This permission or * version is deleted.

*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The current status of the association between the permission and the resource * share. The following are the possible values:

  • * ATTACHABLE – This permission or version can be associated with * resource shares.

  • UNATTACHABLE – This permission * or version can't currently be associated with resource shares.

  • *

    DELETING – This permission or version is in the process of * being deleted.

  • DELETED – This permission or * version is deleted.

*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The current status of the association between the permission and the resource * share. The following are the possible values:

  • * ATTACHABLE – This permission or version can be associated with * resource shares.

  • UNATTACHABLE – This permission * or version can't currently be associated with resource shares.

  • *

    DELETING – This permission or version is in the process of * being deleted.

  • DELETED – This permission or * version is deleted.

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The current status of the association between the permission and the resource * share. The following are the possible values:

  • * ATTACHABLE – This permission or version can be associated with * resource shares.

  • UNATTACHABLE – This permission * or version can't currently be associated with resource shares.

  • *

    DELETING – This permission or version is in the process of * being deleted.

  • DELETED – This permission or * version is deleted.

*/ inline AssociatedPermission& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The current status of the association between the permission and the resource * share. The following are the possible values:

  • * ATTACHABLE – This permission or version can be associated with * resource shares.

  • UNATTACHABLE – This permission * or version can't currently be associated with resource shares.

  • *

    DELETING – This permission or version is in the process of * being deleted.

  • DELETED – This permission or * version is deleted.

*/ inline AssociatedPermission& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The current status of the association between the permission and the resource * share. The following are the possible values:

  • * ATTACHABLE – This permission or version can be associated with * resource shares.

  • UNATTACHABLE – This permission * or version can't currently be associated with resource shares.

  • *

    DELETING – This permission or version is in the process of * being deleted.

  • DELETED – This permission or * version is deleted.

*/ inline AssociatedPermission& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

Indicates what features are available for this resource share. This parameter * can have one of the following values:

  • STANDARD – A * resource share that supports all functionality. These resource shares are * visible to all principals you share the resource share with. You can modify * these resource shares in RAM using the console or APIs. This resource share * might have been created by RAM, or it might have been CREATED_FROM_POLICY * and then promoted.

  • CREATED_FROM_POLICY – The customer * manually shared a resource by attaching a resource-based policy. That policy did * not match any existing managed permissions, so RAM created this customer managed * permission automatically on the customer's behalf based on the attached policy * document. This type of resource share is visible only to the Amazon Web Services * account that created it. You can't modify it in RAM unless you promote it. For * more information, see PromoteResourceShareCreatedFromPolicy.

  • *
  • PROMOTING_TO_STANDARD – This resource share was originally * CREATED_FROM_POLICY, but the customer ran the * PromoteResourceShareCreatedFromPolicy and that operation is still in * progress. This value changes to STANDARD when complete.

  • *
*/ inline const PermissionFeatureSet& GetFeatureSet() const{ return m_featureSet; } /** *

Indicates what features are available for this resource share. This parameter * can have one of the following values:

  • STANDARD – A * resource share that supports all functionality. These resource shares are * visible to all principals you share the resource share with. You can modify * these resource shares in RAM using the console or APIs. This resource share * might have been created by RAM, or it might have been CREATED_FROM_POLICY * and then promoted.

  • CREATED_FROM_POLICY – The customer * manually shared a resource by attaching a resource-based policy. That policy did * not match any existing managed permissions, so RAM created this customer managed * permission automatically on the customer's behalf based on the attached policy * document. This type of resource share is visible only to the Amazon Web Services * account that created it. You can't modify it in RAM unless you promote it. For * more information, see PromoteResourceShareCreatedFromPolicy.

  • *
  • PROMOTING_TO_STANDARD – This resource share was originally * CREATED_FROM_POLICY, but the customer ran the * PromoteResourceShareCreatedFromPolicy and that operation is still in * progress. This value changes to STANDARD when complete.

  • *
*/ inline bool FeatureSetHasBeenSet() const { return m_featureSetHasBeenSet; } /** *

Indicates what features are available for this resource share. This parameter * can have one of the following values:

  • STANDARD – A * resource share that supports all functionality. These resource shares are * visible to all principals you share the resource share with. You can modify * these resource shares in RAM using the console or APIs. This resource share * might have been created by RAM, or it might have been CREATED_FROM_POLICY * and then promoted.

  • CREATED_FROM_POLICY – The customer * manually shared a resource by attaching a resource-based policy. That policy did * not match any existing managed permissions, so RAM created this customer managed * permission automatically on the customer's behalf based on the attached policy * document. This type of resource share is visible only to the Amazon Web Services * account that created it. You can't modify it in RAM unless you promote it. For * more information, see PromoteResourceShareCreatedFromPolicy.

  • *
  • PROMOTING_TO_STANDARD – This resource share was originally * CREATED_FROM_POLICY, but the customer ran the * PromoteResourceShareCreatedFromPolicy and that operation is still in * progress. This value changes to STANDARD when complete.

  • *
*/ inline void SetFeatureSet(const PermissionFeatureSet& value) { m_featureSetHasBeenSet = true; m_featureSet = value; } /** *

Indicates what features are available for this resource share. This parameter * can have one of the following values:

  • STANDARD – A * resource share that supports all functionality. These resource shares are * visible to all principals you share the resource share with. You can modify * these resource shares in RAM using the console or APIs. This resource share * might have been created by RAM, or it might have been CREATED_FROM_POLICY * and then promoted.

  • CREATED_FROM_POLICY – The customer * manually shared a resource by attaching a resource-based policy. That policy did * not match any existing managed permissions, so RAM created this customer managed * permission automatically on the customer's behalf based on the attached policy * document. This type of resource share is visible only to the Amazon Web Services * account that created it. You can't modify it in RAM unless you promote it. For * more information, see PromoteResourceShareCreatedFromPolicy.

  • *
  • PROMOTING_TO_STANDARD – This resource share was originally * CREATED_FROM_POLICY, but the customer ran the * PromoteResourceShareCreatedFromPolicy and that operation is still in * progress. This value changes to STANDARD when complete.

  • *
*/ inline void SetFeatureSet(PermissionFeatureSet&& value) { m_featureSetHasBeenSet = true; m_featureSet = std::move(value); } /** *

Indicates what features are available for this resource share. This parameter * can have one of the following values:

  • STANDARD – A * resource share that supports all functionality. These resource shares are * visible to all principals you share the resource share with. You can modify * these resource shares in RAM using the console or APIs. This resource share * might have been created by RAM, or it might have been CREATED_FROM_POLICY * and then promoted.

  • CREATED_FROM_POLICY – The customer * manually shared a resource by attaching a resource-based policy. That policy did * not match any existing managed permissions, so RAM created this customer managed * permission automatically on the customer's behalf based on the attached policy * document. This type of resource share is visible only to the Amazon Web Services * account that created it. You can't modify it in RAM unless you promote it. For * more information, see PromoteResourceShareCreatedFromPolicy.

  • *
  • PROMOTING_TO_STANDARD – This resource share was originally * CREATED_FROM_POLICY, but the customer ran the * PromoteResourceShareCreatedFromPolicy and that operation is still in * progress. This value changes to STANDARD when complete.

  • *
*/ inline AssociatedPermission& WithFeatureSet(const PermissionFeatureSet& value) { SetFeatureSet(value); return *this;} /** *

Indicates what features are available for this resource share. This parameter * can have one of the following values:

  • STANDARD – A * resource share that supports all functionality. These resource shares are * visible to all principals you share the resource share with. You can modify * these resource shares in RAM using the console or APIs. This resource share * might have been created by RAM, or it might have been CREATED_FROM_POLICY * and then promoted.

  • CREATED_FROM_POLICY – The customer * manually shared a resource by attaching a resource-based policy. That policy did * not match any existing managed permissions, so RAM created this customer managed * permission automatically on the customer's behalf based on the attached policy * document. This type of resource share is visible only to the Amazon Web Services * account that created it. You can't modify it in RAM unless you promote it. For * more information, see PromoteResourceShareCreatedFromPolicy.

  • *
  • PROMOTING_TO_STANDARD – This resource share was originally * CREATED_FROM_POLICY, but the customer ran the * PromoteResourceShareCreatedFromPolicy and that operation is still in * progress. This value changes to STANDARD when complete.

  • *
*/ inline AssociatedPermission& WithFeatureSet(PermissionFeatureSet&& value) { SetFeatureSet(std::move(value)); return *this;} /** *

The date and time when the association between the permission and the * resource share was last updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; } /** *

The date and time when the association between the permission and the * resource share was last updated.

*/ inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; } /** *

The date and time when the association between the permission and the * resource share was last updated.

*/ inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; } /** *

The date and time when the association between the permission and the * resource share 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 between the permission and the * resource share was last updated.

*/ inline AssociatedPermission& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;} /** *

The date and time when the association between the permission and the * resource share was last updated.

*/ inline AssociatedPermission& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;} /** *

The Amazon * Resource Name (ARN) of a resource share associated with this permission.

*/ inline const Aws::String& GetResourceShareArn() const{ return m_resourceShareArn; } /** *

The Amazon * Resource Name (ARN) of a resource share associated with this permission.

*/ inline bool ResourceShareArnHasBeenSet() const { return m_resourceShareArnHasBeenSet; } /** *

The Amazon * Resource Name (ARN) of a resource share associated with this permission.

*/ inline void SetResourceShareArn(const Aws::String& value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn = value; } /** *

The Amazon * Resource Name (ARN) of a resource share associated with this permission.

*/ inline void SetResourceShareArn(Aws::String&& value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn = std::move(value); } /** *

The Amazon * Resource Name (ARN) of a resource share associated with this permission.

*/ inline void SetResourceShareArn(const char* value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn.assign(value); } /** *

The Amazon * Resource Name (ARN) of a resource share associated with this permission.

*/ inline AssociatedPermission& WithResourceShareArn(const Aws::String& value) { SetResourceShareArn(value); return *this;} /** *

The Amazon * Resource Name (ARN) of a resource share associated with this permission.

*/ inline AssociatedPermission& WithResourceShareArn(Aws::String&& value) { SetResourceShareArn(std::move(value)); return *this;} /** *

The Amazon * Resource Name (ARN) of a resource share associated with this permission.

*/ inline AssociatedPermission& WithResourceShareArn(const char* value) { SetResourceShareArn(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_permissionVersion; bool m_permissionVersionHasBeenSet = false; bool m_defaultVersion; bool m_defaultVersionHasBeenSet = false; Aws::String m_resourceType; bool m_resourceTypeHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; PermissionFeatureSet m_featureSet; bool m_featureSetHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedTime; bool m_lastUpdatedTimeHasBeenSet = false; Aws::String m_resourceShareArn; bool m_resourceShareArnHasBeenSet = false; }; } // namespace Model } // namespace RAM } // namespace Aws