/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace ManagedGrafana { namespace Model { /** */ class UpdatePermissionsRequest : public ManagedGrafanaRequest { public: AWS_MANAGEDGRAFANA_API UpdatePermissionsRequest(); // 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 "UpdatePermissions"; } AWS_MANAGEDGRAFANA_API Aws::String SerializePayload() const override; /** *

An array of structures that contain the permission updates to make.

*/ inline const Aws::Vector& GetUpdateInstructionBatch() const{ return m_updateInstructionBatch; } /** *

An array of structures that contain the permission updates to make.

*/ inline bool UpdateInstructionBatchHasBeenSet() const { return m_updateInstructionBatchHasBeenSet; } /** *

An array of structures that contain the permission updates to make.

*/ inline void SetUpdateInstructionBatch(const Aws::Vector& value) { m_updateInstructionBatchHasBeenSet = true; m_updateInstructionBatch = value; } /** *

An array of structures that contain the permission updates to make.

*/ inline void SetUpdateInstructionBatch(Aws::Vector&& value) { m_updateInstructionBatchHasBeenSet = true; m_updateInstructionBatch = std::move(value); } /** *

An array of structures that contain the permission updates to make.

*/ inline UpdatePermissionsRequest& WithUpdateInstructionBatch(const Aws::Vector& value) { SetUpdateInstructionBatch(value); return *this;} /** *

An array of structures that contain the permission updates to make.

*/ inline UpdatePermissionsRequest& WithUpdateInstructionBatch(Aws::Vector&& value) { SetUpdateInstructionBatch(std::move(value)); return *this;} /** *

An array of structures that contain the permission updates to make.

*/ inline UpdatePermissionsRequest& AddUpdateInstructionBatch(const UpdateInstruction& value) { m_updateInstructionBatchHasBeenSet = true; m_updateInstructionBatch.push_back(value); return *this; } /** *

An array of structures that contain the permission updates to make.

*/ inline UpdatePermissionsRequest& AddUpdateInstructionBatch(UpdateInstruction&& value) { m_updateInstructionBatchHasBeenSet = true; m_updateInstructionBatch.push_back(std::move(value)); return *this; } /** *

The ID of the workspace to update.

*/ inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; } /** *

The ID of the workspace to update.

*/ inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; } /** *

The ID of the workspace to update.

*/ inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; } /** *

The ID of the workspace to update.

*/ inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); } /** *

The ID of the workspace to update.

*/ inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); } /** *

The ID of the workspace to update.

*/ inline UpdatePermissionsRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;} /** *

The ID of the workspace to update.

*/ inline UpdatePermissionsRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;} /** *

The ID of the workspace to update.

*/ inline UpdatePermissionsRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;} private: Aws::Vector m_updateInstructionBatch; bool m_updateInstructionBatchHasBeenSet = false; Aws::String m_workspaceId; bool m_workspaceIdHasBeenSet = false; }; } // namespace Model } // namespace ManagedGrafana } // namespace Aws