/** * 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 SNS { namespace Model { /** */ class PublishBatchRequest : public SNSRequest { public: AWS_SNS_API PublishBatchRequest(); // 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 "PublishBatch"; } AWS_SNS_API Aws::String SerializePayload() const override; protected: AWS_SNS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The Amazon resource name (ARN) of the topic you want to batch publish to.

*/ inline const Aws::String& GetTopicArn() const{ return m_topicArn; } /** *

The Amazon resource name (ARN) of the topic you want to batch publish to.

*/ inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; } /** *

The Amazon resource name (ARN) of the topic you want to batch publish to.

*/ inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; } /** *

The Amazon resource name (ARN) of the topic you want to batch publish to.

*/ inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = std::move(value); } /** *

The Amazon resource name (ARN) of the topic you want to batch publish to.

*/ inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); } /** *

The Amazon resource name (ARN) of the topic you want to batch publish to.

*/ inline PublishBatchRequest& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;} /** *

The Amazon resource name (ARN) of the topic you want to batch publish to.

*/ inline PublishBatchRequest& WithTopicArn(Aws::String&& value) { SetTopicArn(std::move(value)); return *this;} /** *

The Amazon resource name (ARN) of the topic you want to batch publish to.

*/ inline PublishBatchRequest& WithTopicArn(const char* value) { SetTopicArn(value); return *this;} /** *

A list of PublishBatch request entries to be sent to the SNS * topic.

*/ inline const Aws::Vector& GetPublishBatchRequestEntries() const{ return m_publishBatchRequestEntries; } /** *

A list of PublishBatch request entries to be sent to the SNS * topic.

*/ inline bool PublishBatchRequestEntriesHasBeenSet() const { return m_publishBatchRequestEntriesHasBeenSet; } /** *

A list of PublishBatch request entries to be sent to the SNS * topic.

*/ inline void SetPublishBatchRequestEntries(const Aws::Vector& value) { m_publishBatchRequestEntriesHasBeenSet = true; m_publishBatchRequestEntries = value; } /** *

A list of PublishBatch request entries to be sent to the SNS * topic.

*/ inline void SetPublishBatchRequestEntries(Aws::Vector&& value) { m_publishBatchRequestEntriesHasBeenSet = true; m_publishBatchRequestEntries = std::move(value); } /** *

A list of PublishBatch request entries to be sent to the SNS * topic.

*/ inline PublishBatchRequest& WithPublishBatchRequestEntries(const Aws::Vector& value) { SetPublishBatchRequestEntries(value); return *this;} /** *

A list of PublishBatch request entries to be sent to the SNS * topic.

*/ inline PublishBatchRequest& WithPublishBatchRequestEntries(Aws::Vector&& value) { SetPublishBatchRequestEntries(std::move(value)); return *this;} /** *

A list of PublishBatch request entries to be sent to the SNS * topic.

*/ inline PublishBatchRequest& AddPublishBatchRequestEntries(const PublishBatchRequestEntry& value) { m_publishBatchRequestEntriesHasBeenSet = true; m_publishBatchRequestEntries.push_back(value); return *this; } /** *

A list of PublishBatch request entries to be sent to the SNS * topic.

*/ inline PublishBatchRequest& AddPublishBatchRequestEntries(PublishBatchRequestEntry&& value) { m_publishBatchRequestEntriesHasBeenSet = true; m_publishBatchRequestEntries.push_back(std::move(value)); return *this; } private: Aws::String m_topicArn; bool m_topicArnHasBeenSet = false; Aws::Vector m_publishBatchRequestEntries; bool m_publishBatchRequestEntriesHasBeenSet = false; }; } // namespace Model } // namespace SNS } // namespace Aws