/** * 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 a permission that is associated with a resource * share.

See Also:

AWS * API Reference

*/ class AWS_RAM_API ResourceSharePermissionSummary { public: ResourceSharePermissionSummary(); ResourceSharePermissionSummary(Aws::Utils::Json::JsonView jsonValue); ResourceSharePermissionSummary& 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 ResourceSharePermissionSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The ARN of the permission.

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

The ARN of the permission.

*/ inline ResourceSharePermissionSummary& 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 ResourceSharePermissionSummary& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *

The identifier for the version of the permission.

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

The identifier for the version of the permission.

*/ inline ResourceSharePermissionSummary& 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 ResourceSharePermissionSummary& 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 ResourceSharePermissionSummary& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the permission.

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

The name of the permission.

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

The type of resource to which the permission applies.

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

The type of resource to which the permission applies.

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

The type of resource to which the permission applies.

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

The type of resource to which the permission applies.

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

The type of resource to which the permission applies.

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

The type of resource to which the permission applies.

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

The type of resource to which the permission applies.

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

The type of resource to which the permission applies.

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

The current status of the permission.

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

The current status of the permission.

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

The current status of the permission.

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

The current status of the permission.

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

The current status of the permission.

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

The current status of the permission.

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

The current status of the permission.

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

The current status of the permission.

*/ inline ResourceSharePermissionSummary& WithStatus(const char* value) { SetStatus(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 ResourceSharePermissionSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

The date and time when the permission was created.

*/ inline ResourceSharePermissionSummary& 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 ResourceSharePermissionSummary& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;} /** *

The date and time when the permission was last updated.

*/ inline ResourceSharePermissionSummary& 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_status; bool m_statusHasBeenSet; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet; Aws::Utils::DateTime m_lastUpdatedTime; bool m_lastUpdatedTimeHasBeenSet; }; } // namespace Model } // namespace RAM } // namespace Aws