/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace IoTSiteWise { namespace Model { class AWS_IOTSITEWISE_API DescribeAccessPolicyResult { public: DescribeAccessPolicyResult(); DescribeAccessPolicyResult(const Aws::AmazonWebServiceResult& result); DescribeAccessPolicyResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ID of the access policy.

*/ inline const Aws::String& GetAccessPolicyId() const{ return m_accessPolicyId; } /** *

The ID of the access policy.

*/ inline void SetAccessPolicyId(const Aws::String& value) { m_accessPolicyId = value; } /** *

The ID of the access policy.

*/ inline void SetAccessPolicyId(Aws::String&& value) { m_accessPolicyId = std::move(value); } /** *

The ID of the access policy.

*/ inline void SetAccessPolicyId(const char* value) { m_accessPolicyId.assign(value); } /** *

The ID of the access policy.

*/ inline DescribeAccessPolicyResult& WithAccessPolicyId(const Aws::String& value) { SetAccessPolicyId(value); return *this;} /** *

The ID of the access policy.

*/ inline DescribeAccessPolicyResult& WithAccessPolicyId(Aws::String&& value) { SetAccessPolicyId(std::move(value)); return *this;} /** *

The ID of the access policy.

*/ inline DescribeAccessPolicyResult& WithAccessPolicyId(const char* value) { SetAccessPolicyId(value); return *this;} /** *

The ARN * of the access policy, which has the following format.

* arn:${Partition}:iotsitewise:${Region}:${Account}:access-policy/${AccessPolicyId} *

*/ inline const Aws::String& GetAccessPolicyArn() const{ return m_accessPolicyArn; } /** *

The ARN * of the access policy, which has the following format.

* arn:${Partition}:iotsitewise:${Region}:${Account}:access-policy/${AccessPolicyId} *

*/ inline void SetAccessPolicyArn(const Aws::String& value) { m_accessPolicyArn = value; } /** *

The ARN * of the access policy, which has the following format.

* arn:${Partition}:iotsitewise:${Region}:${Account}:access-policy/${AccessPolicyId} *

*/ inline void SetAccessPolicyArn(Aws::String&& value) { m_accessPolicyArn = std::move(value); } /** *

The ARN * of the access policy, which has the following format.

* arn:${Partition}:iotsitewise:${Region}:${Account}:access-policy/${AccessPolicyId} *

*/ inline void SetAccessPolicyArn(const char* value) { m_accessPolicyArn.assign(value); } /** *

The ARN * of the access policy, which has the following format.

* arn:${Partition}:iotsitewise:${Region}:${Account}:access-policy/${AccessPolicyId} *

*/ inline DescribeAccessPolicyResult& WithAccessPolicyArn(const Aws::String& value) { SetAccessPolicyArn(value); return *this;} /** *

The ARN * of the access policy, which has the following format.

* arn:${Partition}:iotsitewise:${Region}:${Account}:access-policy/${AccessPolicyId} *

*/ inline DescribeAccessPolicyResult& WithAccessPolicyArn(Aws::String&& value) { SetAccessPolicyArn(std::move(value)); return *this;} /** *

The ARN * of the access policy, which has the following format.

* arn:${Partition}:iotsitewise:${Region}:${Account}:access-policy/${AccessPolicyId} *

*/ inline DescribeAccessPolicyResult& WithAccessPolicyArn(const char* value) { SetAccessPolicyArn(value); return *this;} /** *

The AWS SSO identity (user or group) to which this access policy applies.

*/ inline const Identity& GetAccessPolicyIdentity() const{ return m_accessPolicyIdentity; } /** *

The AWS SSO identity (user or group) to which this access policy applies.

*/ inline void SetAccessPolicyIdentity(const Identity& value) { m_accessPolicyIdentity = value; } /** *

The AWS SSO identity (user or group) to which this access policy applies.

*/ inline void SetAccessPolicyIdentity(Identity&& value) { m_accessPolicyIdentity = std::move(value); } /** *

The AWS SSO identity (user or group) to which this access policy applies.

*/ inline DescribeAccessPolicyResult& WithAccessPolicyIdentity(const Identity& value) { SetAccessPolicyIdentity(value); return *this;} /** *

The AWS SSO identity (user or group) to which this access policy applies.

*/ inline DescribeAccessPolicyResult& WithAccessPolicyIdentity(Identity&& value) { SetAccessPolicyIdentity(std::move(value)); return *this;} /** *

The AWS IoT SiteWise Monitor resource (portal or project) to which this * access policy provides access.

*/ inline const Resource& GetAccessPolicyResource() const{ return m_accessPolicyResource; } /** *

The AWS IoT SiteWise Monitor resource (portal or project) to which this * access policy provides access.

*/ inline void SetAccessPolicyResource(const Resource& value) { m_accessPolicyResource = value; } /** *

The AWS IoT SiteWise Monitor resource (portal or project) to which this * access policy provides access.

*/ inline void SetAccessPolicyResource(Resource&& value) { m_accessPolicyResource = std::move(value); } /** *

The AWS IoT SiteWise Monitor resource (portal or project) to which this * access policy provides access.

*/ inline DescribeAccessPolicyResult& WithAccessPolicyResource(const Resource& value) { SetAccessPolicyResource(value); return *this;} /** *

The AWS IoT SiteWise Monitor resource (portal or project) to which this * access policy provides access.

*/ inline DescribeAccessPolicyResult& WithAccessPolicyResource(Resource&& value) { SetAccessPolicyResource(std::move(value)); return *this;} /** *

The access policy permission. Note that a project ADMINISTRATOR * is also known as a project owner.

*/ inline const Permission& GetAccessPolicyPermission() const{ return m_accessPolicyPermission; } /** *

The access policy permission. Note that a project ADMINISTRATOR * is also known as a project owner.

*/ inline void SetAccessPolicyPermission(const Permission& value) { m_accessPolicyPermission = value; } /** *

The access policy permission. Note that a project ADMINISTRATOR * is also known as a project owner.

*/ inline void SetAccessPolicyPermission(Permission&& value) { m_accessPolicyPermission = std::move(value); } /** *

The access policy permission. Note that a project ADMINISTRATOR * is also known as a project owner.

*/ inline DescribeAccessPolicyResult& WithAccessPolicyPermission(const Permission& value) { SetAccessPolicyPermission(value); return *this;} /** *

The access policy permission. Note that a project ADMINISTRATOR * is also known as a project owner.

*/ inline DescribeAccessPolicyResult& WithAccessPolicyPermission(Permission&& value) { SetAccessPolicyPermission(std::move(value)); return *this;} /** *

The date the access policy was created, in Unix epoch time.

*/ inline const Aws::Utils::DateTime& GetAccessPolicyCreationDate() const{ return m_accessPolicyCreationDate; } /** *

The date the access policy was created, in Unix epoch time.

*/ inline void SetAccessPolicyCreationDate(const Aws::Utils::DateTime& value) { m_accessPolicyCreationDate = value; } /** *

The date the access policy was created, in Unix epoch time.

*/ inline void SetAccessPolicyCreationDate(Aws::Utils::DateTime&& value) { m_accessPolicyCreationDate = std::move(value); } /** *

The date the access policy was created, in Unix epoch time.

*/ inline DescribeAccessPolicyResult& WithAccessPolicyCreationDate(const Aws::Utils::DateTime& value) { SetAccessPolicyCreationDate(value); return *this;} /** *

The date the access policy was created, in Unix epoch time.

*/ inline DescribeAccessPolicyResult& WithAccessPolicyCreationDate(Aws::Utils::DateTime&& value) { SetAccessPolicyCreationDate(std::move(value)); return *this;} /** *

The date the access policy was last updated, in Unix epoch time.

*/ inline const Aws::Utils::DateTime& GetAccessPolicyLastUpdateDate() const{ return m_accessPolicyLastUpdateDate; } /** *

The date the access policy was last updated, in Unix epoch time.

*/ inline void SetAccessPolicyLastUpdateDate(const Aws::Utils::DateTime& value) { m_accessPolicyLastUpdateDate = value; } /** *

The date the access policy was last updated, in Unix epoch time.

*/ inline void SetAccessPolicyLastUpdateDate(Aws::Utils::DateTime&& value) { m_accessPolicyLastUpdateDate = std::move(value); } /** *

The date the access policy was last updated, in Unix epoch time.

*/ inline DescribeAccessPolicyResult& WithAccessPolicyLastUpdateDate(const Aws::Utils::DateTime& value) { SetAccessPolicyLastUpdateDate(value); return *this;} /** *

The date the access policy was last updated, in Unix epoch time.

*/ inline DescribeAccessPolicyResult& WithAccessPolicyLastUpdateDate(Aws::Utils::DateTime&& value) { SetAccessPolicyLastUpdateDate(std::move(value)); return *this;} private: Aws::String m_accessPolicyId; Aws::String m_accessPolicyArn; Identity m_accessPolicyIdentity; Resource m_accessPolicyResource; Permission m_accessPolicyPermission; Aws::Utils::DateTime m_accessPolicyCreationDate; Aws::Utils::DateTime m_accessPolicyLastUpdateDate; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws