/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace SQS { namespace Model { /** *

See Also:

AWS * API Reference

*/ class AddPermissionRequest : public SQSRequest { public: AWS_SQS_API AddPermissionRequest(); // 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 "AddPermission"; } AWS_SQS_API Aws::String SerializePayload() const override; protected: AWS_SQS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The URL of the Amazon SQS queue to which permissions are added.

Queue * URLs and names are case-sensitive.

*/ inline const Aws::String& GetQueueUrl() const{ return m_queueUrl; } /** *

The URL of the Amazon SQS queue to which permissions are added.

Queue * URLs and names are case-sensitive.

*/ inline bool QueueUrlHasBeenSet() const { return m_queueUrlHasBeenSet; } /** *

The URL of the Amazon SQS queue to which permissions are added.

Queue * URLs and names are case-sensitive.

*/ inline void SetQueueUrl(const Aws::String& value) { m_queueUrlHasBeenSet = true; m_queueUrl = value; } /** *

The URL of the Amazon SQS queue to which permissions are added.

Queue * URLs and names are case-sensitive.

*/ inline void SetQueueUrl(Aws::String&& value) { m_queueUrlHasBeenSet = true; m_queueUrl = std::move(value); } /** *

The URL of the Amazon SQS queue to which permissions are added.

Queue * URLs and names are case-sensitive.

*/ inline void SetQueueUrl(const char* value) { m_queueUrlHasBeenSet = true; m_queueUrl.assign(value); } /** *

The URL of the Amazon SQS queue to which permissions are added.

Queue * URLs and names are case-sensitive.

*/ inline AddPermissionRequest& WithQueueUrl(const Aws::String& value) { SetQueueUrl(value); return *this;} /** *

The URL of the Amazon SQS queue to which permissions are added.

Queue * URLs and names are case-sensitive.

*/ inline AddPermissionRequest& WithQueueUrl(Aws::String&& value) { SetQueueUrl(std::move(value)); return *this;} /** *

The URL of the Amazon SQS queue to which permissions are added.

Queue * URLs and names are case-sensitive.

*/ inline AddPermissionRequest& WithQueueUrl(const char* value) { SetQueueUrl(value); return *this;} /** *

The unique identification of the permission you're setting (for example, * AliceSendMessage). Maximum 80 characters. Allowed characters * include alphanumeric characters, hyphens (-), and underscores * (_).

*/ inline const Aws::String& GetLabel() const{ return m_label; } /** *

The unique identification of the permission you're setting (for example, * AliceSendMessage). Maximum 80 characters. Allowed characters * include alphanumeric characters, hyphens (-), and underscores * (_).

*/ inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; } /** *

The unique identification of the permission you're setting (for example, * AliceSendMessage). Maximum 80 characters. Allowed characters * include alphanumeric characters, hyphens (-), and underscores * (_).

*/ inline void SetLabel(const Aws::String& value) { m_labelHasBeenSet = true; m_label = value; } /** *

The unique identification of the permission you're setting (for example, * AliceSendMessage). Maximum 80 characters. Allowed characters * include alphanumeric characters, hyphens (-), and underscores * (_).

*/ inline void SetLabel(Aws::String&& value) { m_labelHasBeenSet = true; m_label = std::move(value); } /** *

The unique identification of the permission you're setting (for example, * AliceSendMessage). Maximum 80 characters. Allowed characters * include alphanumeric characters, hyphens (-), and underscores * (_).

*/ inline void SetLabel(const char* value) { m_labelHasBeenSet = true; m_label.assign(value); } /** *

The unique identification of the permission you're setting (for example, * AliceSendMessage). Maximum 80 characters. Allowed characters * include alphanumeric characters, hyphens (-), and underscores * (_).

*/ inline AddPermissionRequest& WithLabel(const Aws::String& value) { SetLabel(value); return *this;} /** *

The unique identification of the permission you're setting (for example, * AliceSendMessage). Maximum 80 characters. Allowed characters * include alphanumeric characters, hyphens (-), and underscores * (_).

*/ inline AddPermissionRequest& WithLabel(Aws::String&& value) { SetLabel(std::move(value)); return *this;} /** *

The unique identification of the permission you're setting (for example, * AliceSendMessage). Maximum 80 characters. Allowed characters * include alphanumeric characters, hyphens (-), and underscores * (_).

*/ inline AddPermissionRequest& WithLabel(const char* value) { SetLabel(value); return *this;} /** *

The Amazon Web Services account numbers of the principals * who are to receive permission. For information about locating the Amazon Web * Services account identification, see Your * Amazon Web Services Identifiers in the Amazon SQS Developer * Guide.

*/ inline const Aws::Vector& GetAWSAccountIds() const{ return m_aWSAccountIds; } /** *

The Amazon Web Services account numbers of the principals * who are to receive permission. For information about locating the Amazon Web * Services account identification, see Your * Amazon Web Services Identifiers in the Amazon SQS Developer * Guide.

*/ inline bool AWSAccountIdsHasBeenSet() const { return m_aWSAccountIdsHasBeenSet; } /** *

The Amazon Web Services account numbers of the principals * who are to receive permission. For information about locating the Amazon Web * Services account identification, see Your * Amazon Web Services Identifiers in the Amazon SQS Developer * Guide.

*/ inline void SetAWSAccountIds(const Aws::Vector& value) { m_aWSAccountIdsHasBeenSet = true; m_aWSAccountIds = value; } /** *

The Amazon Web Services account numbers of the principals * who are to receive permission. For information about locating the Amazon Web * Services account identification, see Your * Amazon Web Services Identifiers in the Amazon SQS Developer * Guide.

*/ inline void SetAWSAccountIds(Aws::Vector&& value) { m_aWSAccountIdsHasBeenSet = true; m_aWSAccountIds = std::move(value); } /** *

The Amazon Web Services account numbers of the principals * who are to receive permission. For information about locating the Amazon Web * Services account identification, see Your * Amazon Web Services Identifiers in the Amazon SQS Developer * Guide.

*/ inline AddPermissionRequest& WithAWSAccountIds(const Aws::Vector& value) { SetAWSAccountIds(value); return *this;} /** *

The Amazon Web Services account numbers of the principals * who are to receive permission. For information about locating the Amazon Web * Services account identification, see Your * Amazon Web Services Identifiers in the Amazon SQS Developer * Guide.

*/ inline AddPermissionRequest& WithAWSAccountIds(Aws::Vector&& value) { SetAWSAccountIds(std::move(value)); return *this;} /** *

The Amazon Web Services account numbers of the principals * who are to receive permission. For information about locating the Amazon Web * Services account identification, see Your * Amazon Web Services Identifiers in the Amazon SQS Developer * Guide.

*/ inline AddPermissionRequest& AddAWSAccountIds(const Aws::String& value) { m_aWSAccountIdsHasBeenSet = true; m_aWSAccountIds.push_back(value); return *this; } /** *

The Amazon Web Services account numbers of the principals * who are to receive permission. For information about locating the Amazon Web * Services account identification, see Your * Amazon Web Services Identifiers in the Amazon SQS Developer * Guide.

*/ inline AddPermissionRequest& AddAWSAccountIds(Aws::String&& value) { m_aWSAccountIdsHasBeenSet = true; m_aWSAccountIds.push_back(std::move(value)); return *this; } /** *

The Amazon Web Services account numbers of the principals * who are to receive permission. For information about locating the Amazon Web * Services account identification, see Your * Amazon Web Services Identifiers in the Amazon SQS Developer * Guide.

*/ inline AddPermissionRequest& AddAWSAccountIds(const char* value) { m_aWSAccountIdsHasBeenSet = true; m_aWSAccountIds.push_back(value); return *this; } /** *

The action the client wants to allow for the specified principal. Valid * values: the name of any action or *.

For more information * about these actions, see Overview * of Managing Access Permissions to Your Amazon Simple Queue Service Resource * in the Amazon SQS Developer Guide.

Specifying * SendMessage, DeleteMessage, or * ChangeMessageVisibility for ActionName.n also grants * permissions for the corresponding batch versions of those actions: * SendMessageBatch, DeleteMessageBatch, and * ChangeMessageVisibilityBatch.

*/ inline const Aws::Vector& GetActions() const{ return m_actions; } /** *

The action the client wants to allow for the specified principal. Valid * values: the name of any action or *.

For more information * about these actions, see Overview * of Managing Access Permissions to Your Amazon Simple Queue Service Resource * in the Amazon SQS Developer Guide.

Specifying * SendMessage, DeleteMessage, or * ChangeMessageVisibility for ActionName.n also grants * permissions for the corresponding batch versions of those actions: * SendMessageBatch, DeleteMessageBatch, and * ChangeMessageVisibilityBatch.

*/ inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; } /** *

The action the client wants to allow for the specified principal. Valid * values: the name of any action or *.

For more information * about these actions, see Overview * of Managing Access Permissions to Your Amazon Simple Queue Service Resource * in the Amazon SQS Developer Guide.

Specifying * SendMessage, DeleteMessage, or * ChangeMessageVisibility for ActionName.n also grants * permissions for the corresponding batch versions of those actions: * SendMessageBatch, DeleteMessageBatch, and * ChangeMessageVisibilityBatch.

*/ inline void SetActions(const Aws::Vector& value) { m_actionsHasBeenSet = true; m_actions = value; } /** *

The action the client wants to allow for the specified principal. Valid * values: the name of any action or *.

For more information * about these actions, see Overview * of Managing Access Permissions to Your Amazon Simple Queue Service Resource * in the Amazon SQS Developer Guide.

Specifying * SendMessage, DeleteMessage, or * ChangeMessageVisibility for ActionName.n also grants * permissions for the corresponding batch versions of those actions: * SendMessageBatch, DeleteMessageBatch, and * ChangeMessageVisibilityBatch.

*/ inline void SetActions(Aws::Vector&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); } /** *

The action the client wants to allow for the specified principal. Valid * values: the name of any action or *.

For more information * about these actions, see Overview * of Managing Access Permissions to Your Amazon Simple Queue Service Resource * in the Amazon SQS Developer Guide.

Specifying * SendMessage, DeleteMessage, or * ChangeMessageVisibility for ActionName.n also grants * permissions for the corresponding batch versions of those actions: * SendMessageBatch, DeleteMessageBatch, and * ChangeMessageVisibilityBatch.

*/ inline AddPermissionRequest& WithActions(const Aws::Vector& value) { SetActions(value); return *this;} /** *

The action the client wants to allow for the specified principal. Valid * values: the name of any action or *.

For more information * about these actions, see Overview * of Managing Access Permissions to Your Amazon Simple Queue Service Resource * in the Amazon SQS Developer Guide.

Specifying * SendMessage, DeleteMessage, or * ChangeMessageVisibility for ActionName.n also grants * permissions for the corresponding batch versions of those actions: * SendMessageBatch, DeleteMessageBatch, and * ChangeMessageVisibilityBatch.

*/ inline AddPermissionRequest& WithActions(Aws::Vector&& value) { SetActions(std::move(value)); return *this;} /** *

The action the client wants to allow for the specified principal. Valid * values: the name of any action or *.

For more information * about these actions, see Overview * of Managing Access Permissions to Your Amazon Simple Queue Service Resource * in the Amazon SQS Developer Guide.

Specifying * SendMessage, DeleteMessage, or * ChangeMessageVisibility for ActionName.n also grants * permissions for the corresponding batch versions of those actions: * SendMessageBatch, DeleteMessageBatch, and * ChangeMessageVisibilityBatch.

*/ inline AddPermissionRequest& AddActions(const Aws::String& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; } /** *

The action the client wants to allow for the specified principal. Valid * values: the name of any action or *.

For more information * about these actions, see Overview * of Managing Access Permissions to Your Amazon Simple Queue Service Resource * in the Amazon SQS Developer Guide.

Specifying * SendMessage, DeleteMessage, or * ChangeMessageVisibility for ActionName.n also grants * permissions for the corresponding batch versions of those actions: * SendMessageBatch, DeleteMessageBatch, and * ChangeMessageVisibilityBatch.

*/ inline AddPermissionRequest& AddActions(Aws::String&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; } /** *

The action the client wants to allow for the specified principal. Valid * values: the name of any action or *.

For more information * about these actions, see Overview * of Managing Access Permissions to Your Amazon Simple Queue Service Resource * in the Amazon SQS Developer Guide.

Specifying * SendMessage, DeleteMessage, or * ChangeMessageVisibility for ActionName.n also grants * permissions for the corresponding batch versions of those actions: * SendMessageBatch, DeleteMessageBatch, and * ChangeMessageVisibilityBatch.

*/ inline AddPermissionRequest& AddActions(const char* value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; } private: Aws::String m_queueUrl; bool m_queueUrlHasBeenSet = false; Aws::String m_label; bool m_labelHasBeenSet = false; Aws::Vector m_aWSAccountIds; bool m_aWSAccountIdsHasBeenSet = false; Aws::Vector m_actions; bool m_actionsHasBeenSet = false; }; } // namespace Model } // namespace SQS } // namespace Aws