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

Information about an AWS RAM permission.

See Also:

AWS * API Reference

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

The ARN of the permission.

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

The ARN of the permission.

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

The ARN of the permission.

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

The ARN of the permission.

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

The ARN of the permission.

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

The ARN of the permission.

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

The ARN of the permission.

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

The ARN of the permission.

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

The identifier for the version of the permission.

*/ inline const Aws::String& GetVersion() const{ return m_version; } /** *

The identifier for the version of the permission.

*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *

The identifier for the version of the permission.

*/ inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; } /** *

The identifier for the version of the permission.

*/ inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); } /** *

The identifier for the version of the permission.

*/ inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); } /** *

The identifier for the version of the permission.

*/ inline ResourceSharePermissionDetail& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *

The identifier for the version of the permission.

*/ inline ResourceSharePermissionDetail& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *

The identifier for the version of the permission.

*/ inline ResourceSharePermissionDetail& WithVersion(const char* value) { SetVersion(value); return *this;} /** *

The identifier for the version of the permission that is set as the default * version.

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

The identifier for the version of the permission that is set as the default * version.

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

The identifier for the version of the permission that is set as the default * version.

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

The identifier for the version of the permission that is set as the default * version.

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

The name of the permission.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the permission.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the permission.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the permission.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the permission.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the permission.

*/ inline ResourceSharePermissionDetail& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the permission.

*/ inline ResourceSharePermissionDetail& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the permission.

*/ inline ResourceSharePermissionDetail& WithName(const char* value) { SetName(value); return *this;} /** *

The resource type to which the permission applies.

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

The resource type to which the permission applies.

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

The resource type to which the permission applies.

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

The resource type to which the permission applies.

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

The resource type to which the permission applies.

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

The resource type to which the permission applies.

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

The resource type to which the permission applies.

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

The resource type to which the permission applies.

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

The permission's effect and actions in JSON format. The effect * indicates whether the actions are allowed or denied. The actions * list the API actions to which the principal is granted or denied access.

*/ inline const Aws::String& GetPermission() const{ return m_permission; } /** *

The permission's effect and actions in JSON format. The effect * indicates whether the actions are allowed or denied. The actions * list the API actions to which the principal is granted or denied access.

*/ inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; } /** *

The permission's effect and actions in JSON format. The effect * indicates whether the actions are allowed or denied. The actions * list the API actions to which the principal is granted or denied access.

*/ inline void SetPermission(const Aws::String& value) { m_permissionHasBeenSet = true; m_permission = value; } /** *

The permission's effect and actions in JSON format. The effect * indicates whether the actions are allowed or denied. The actions * list the API actions to which the principal is granted or denied access.

*/ inline void SetPermission(Aws::String&& value) { m_permissionHasBeenSet = true; m_permission = std::move(value); } /** *

The permission's effect and actions in JSON format. The effect * indicates whether the actions are allowed or denied. The actions * list the API actions to which the principal is granted or denied access.

*/ inline void SetPermission(const char* value) { m_permissionHasBeenSet = true; m_permission.assign(value); } /** *

The permission's effect and actions in JSON format. The effect * indicates whether the actions are allowed or denied. The actions * list the API actions to which the principal is granted or denied access.

*/ inline ResourceSharePermissionDetail& WithPermission(const Aws::String& value) { SetPermission(value); return *this;} /** *

The permission's effect and actions in JSON format. The effect * indicates whether the actions are allowed or denied. The actions * list the API actions to which the principal is granted or denied access.

*/ inline ResourceSharePermissionDetail& WithPermission(Aws::String&& value) { SetPermission(std::move(value)); return *this;} /** *

The permission's effect and actions in JSON format. The effect * indicates whether the actions are allowed or denied. The actions * list the API actions to which the principal is granted or denied access.

*/ inline ResourceSharePermissionDetail& WithPermission(const char* value) { SetPermission(value); return *this;} /** *

The date and time when the permission was created.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

The date and time when the permission was created.

*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *

The date and time when the permission was created.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *

The date and time when the permission was created.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *

The date and time when the permission was created.

*/ inline ResourceSharePermissionDetail& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

The date and time when the permission was created.

*/ inline ResourceSharePermissionDetail& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *

The date and time when the permission was last updated.

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

The date and time when the permission was last updated.

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

The date and time when the permission was last updated.

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

The date and time when the permission was last updated.

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

The date and time when the permission was last updated.

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

The date and time when the permission was last updated.

*/ inline ResourceSharePermissionDetail& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet; Aws::String m_version; bool m_versionHasBeenSet; bool m_defaultVersion; bool m_defaultVersionHasBeenSet; Aws::String m_name; bool m_nameHasBeenSet; Aws::String m_resourceType; bool m_resourceTypeHasBeenSet; Aws::String m_permission; bool m_permissionHasBeenSet; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet; Aws::Utils::DateTime m_lastUpdatedTime; bool m_lastUpdatedTimeHasBeenSet; }; } // namespace Model } // namespace RAM } // namespace Aws