AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchPutMessageRequest.h
1
6#pragma once
7#include <aws/iotanalytics/IoTAnalytics_EXPORTS.h>
8#include <aws/iotanalytics/IoTAnalyticsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iotanalytics/model/Message.h>
12#include <utility>
13
14namespace Aws
15{
16namespace IoTAnalytics
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_IOTANALYTICS_API BatchPutMessageRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "BatchPutMessage"; }
33
34 AWS_IOTANALYTICS_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetChannelName() const{ return m_channelName; }
42 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
43 inline void SetChannelName(const Aws::String& value) { m_channelNameHasBeenSet = true; m_channelName = value; }
44 inline void SetChannelName(Aws::String&& value) { m_channelNameHasBeenSet = true; m_channelName = std::move(value); }
45 inline void SetChannelName(const char* value) { m_channelNameHasBeenSet = true; m_channelName.assign(value); }
46 inline BatchPutMessageRequest& WithChannelName(const Aws::String& value) { SetChannelName(value); return *this;}
47 inline BatchPutMessageRequest& WithChannelName(Aws::String&& value) { SetChannelName(std::move(value)); return *this;}
48 inline BatchPutMessageRequest& WithChannelName(const char* value) { SetChannelName(value); return *this;}
50
52
67 inline const Aws::Vector<Message>& GetMessages() const{ return m_messages; }
68 inline bool MessagesHasBeenSet() const { return m_messagesHasBeenSet; }
69 inline void SetMessages(const Aws::Vector<Message>& value) { m_messagesHasBeenSet = true; m_messages = value; }
70 inline void SetMessages(Aws::Vector<Message>&& value) { m_messagesHasBeenSet = true; m_messages = std::move(value); }
71 inline BatchPutMessageRequest& WithMessages(const Aws::Vector<Message>& value) { SetMessages(value); return *this;}
72 inline BatchPutMessageRequest& WithMessages(Aws::Vector<Message>&& value) { SetMessages(std::move(value)); return *this;}
73 inline BatchPutMessageRequest& AddMessages(const Message& value) { m_messagesHasBeenSet = true; m_messages.push_back(value); return *this; }
74 inline BatchPutMessageRequest& AddMessages(Message&& value) { m_messagesHasBeenSet = true; m_messages.push_back(std::move(value)); return *this; }
76 private:
77
78 Aws::String m_channelName;
79 bool m_channelNameHasBeenSet = false;
80
81 Aws::Vector<Message> m_messages;
82 bool m_messagesHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace IoTAnalytics
87} // namespace Aws
BatchPutMessageRequest & WithMessages(const Aws::Vector< Message > &value)
BatchPutMessageRequest & WithChannelName(Aws::String &&value)
BatchPutMessageRequest & WithChannelName(const char *value)
const Aws::Vector< Message > & GetMessages() const
BatchPutMessageRequest & WithChannelName(const Aws::String &value)
BatchPutMessageRequest & WithMessages(Aws::Vector< Message > &&value)
BatchPutMessageRequest & AddMessages(const Message &value)
virtual const char * GetServiceRequestName() const override
AWS_IOTANALYTICS_API Aws::String SerializePayload() const override
BatchPutMessageRequest & AddMessages(Message &&value)
void SetMessages(const Aws::Vector< Message > &value)
void SetMessages(Aws::Vector< Message > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector