/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace IoTSiteWise { namespace Model { class CreateAccessPolicyResult { public: AWS_IOTSITEWISE_API CreateAccessPolicyResult(); AWS_IOTSITEWISE_API CreateAccessPolicyResult(const Aws::AmazonWebServiceResult& result); AWS_IOTSITEWISE_API CreateAccessPolicyResult& 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 CreateAccessPolicyResult& WithAccessPolicyId(const Aws::String& value) { SetAccessPolicyId(value); return *this;} /** *

The ID of the access policy.

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

The ID of the access policy.

*/ inline CreateAccessPolicyResult& 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 CreateAccessPolicyResult& 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 CreateAccessPolicyResult& 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 CreateAccessPolicyResult& WithAccessPolicyArn(const char* value) { SetAccessPolicyArn(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateAccessPolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateAccessPolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateAccessPolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_accessPolicyId; Aws::String m_accessPolicyArn; Aws::String m_requestId; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws