/** * 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 #include namespace Aws { namespace IoTSiteWise { namespace Model { /** */ class UpdateAccessPolicyRequest : public IoTSiteWiseRequest { public: AWS_IOTSITEWISE_API UpdateAccessPolicyRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateAccessPolicy"; } AWS_IOTSITEWISE_API Aws::String SerializePayload() const override; /** *

The ID of the access policy.

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

The ID of the access policy.

*/ inline bool AccessPolicyIdHasBeenSet() const { return m_accessPolicyIdHasBeenSet; } /** *

The ID of the access policy.

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

The ID of the access policy.

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

The ID of the access policy.

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

The ID of the access policy.

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

The ID of the access policy.

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

The ID of the access policy.

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

The identity for this access policy. Choose an IAM Identity Center user, an * IAM Identity Center group, or an IAM user.

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

The identity for this access policy. Choose an IAM Identity Center user, an * IAM Identity Center group, or an IAM user.

*/ inline bool AccessPolicyIdentityHasBeenSet() const { return m_accessPolicyIdentityHasBeenSet; } /** *

The identity for this access policy. Choose an IAM Identity Center user, an * IAM Identity Center group, or an IAM user.

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

The identity for this access policy. Choose an IAM Identity Center user, an * IAM Identity Center group, or an IAM user.

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

The identity for this access policy. Choose an IAM Identity Center user, an * IAM Identity Center group, or an IAM user.

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

The identity for this access policy. Choose an IAM Identity Center user, an * IAM Identity Center group, or an IAM user.

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

The IoT SiteWise Monitor resource for this access policy. Choose either a * portal or a project.

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

The IoT SiteWise Monitor resource for this access policy. Choose either a * portal or a project.

*/ inline bool AccessPolicyResourceHasBeenSet() const { return m_accessPolicyResourceHasBeenSet; } /** *

The IoT SiteWise Monitor resource for this access policy. Choose either a * portal or a project.

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

The IoT SiteWise Monitor resource for this access policy. Choose either a * portal or a project.

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

The IoT SiteWise Monitor resource for this access policy. Choose either a * portal or a project.

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

The IoT SiteWise Monitor resource for this access policy. Choose either a * portal or a project.

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

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

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

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

*/ inline bool AccessPolicyPermissionHasBeenSet() const { return m_accessPolicyPermissionHasBeenSet; } /** *

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

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

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

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

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

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

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

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

A unique case-sensitive identifier that you can provide to ensure the * idempotency of the request. Don't reuse this client token if a new idempotent * request is required.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

A unique case-sensitive identifier that you can provide to ensure the * idempotency of the request. Don't reuse this client token if a new idempotent * request is required.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

A unique case-sensitive identifier that you can provide to ensure the * idempotency of the request. Don't reuse this client token if a new idempotent * request is required.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

A unique case-sensitive identifier that you can provide to ensure the * idempotency of the request. Don't reuse this client token if a new idempotent * request is required.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

A unique case-sensitive identifier that you can provide to ensure the * idempotency of the request. Don't reuse this client token if a new idempotent * request is required.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

A unique case-sensitive identifier that you can provide to ensure the * idempotency of the request. Don't reuse this client token if a new idempotent * request is required.

*/ inline UpdateAccessPolicyRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A unique case-sensitive identifier that you can provide to ensure the * idempotency of the request. Don't reuse this client token if a new idempotent * request is required.

*/ inline UpdateAccessPolicyRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

A unique case-sensitive identifier that you can provide to ensure the * idempotency of the request. Don't reuse this client token if a new idempotent * request is required.

*/ inline UpdateAccessPolicyRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_accessPolicyId; bool m_accessPolicyIdHasBeenSet = false; Identity m_accessPolicyIdentity; bool m_accessPolicyIdentityHasBeenSet = false; Resource m_accessPolicyResource; bool m_accessPolicyResourceHasBeenSet = false; Permission m_accessPolicyPermission; bool m_accessPolicyPermissionHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws