AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ChannelNameT = Aws::String>
44 void SetChannelName(ChannelNameT&& value) { m_channelNameHasBeenSet = true; m_channelName = std::forward<ChannelNameT>(value); }
45 template<typename ChannelNameT = Aws::String>
46 BatchPutMessageRequest& WithChannelName(ChannelNameT&& value) { SetChannelName(std::forward<ChannelNameT>(value)); return *this;}
48
50
65 inline const Aws::Vector<Message>& GetMessages() const { return m_messages; }
66 inline bool MessagesHasBeenSet() const { return m_messagesHasBeenSet; }
67 template<typename MessagesT = Aws::Vector<Message>>
68 void SetMessages(MessagesT&& value) { m_messagesHasBeenSet = true; m_messages = std::forward<MessagesT>(value); }
69 template<typename MessagesT = Aws::Vector<Message>>
70 BatchPutMessageRequest& WithMessages(MessagesT&& value) { SetMessages(std::forward<MessagesT>(value)); return *this;}
71 template<typename MessagesT = Message>
72 BatchPutMessageRequest& AddMessages(MessagesT&& value) { m_messagesHasBeenSet = true; m_messages.emplace_back(std::forward<MessagesT>(value)); return *this; }
74 private:
75
76 Aws::String m_channelName;
77 bool m_channelNameHasBeenSet = false;
78
79 Aws::Vector<Message> m_messages;
80 bool m_messagesHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace IoTAnalytics
85} // namespace Aws
BatchPutMessageRequest & WithMessages(MessagesT &&value)
AWS_IOTANALYTICS_API BatchPutMessageRequest()=default
const Aws::Vector< Message > & GetMessages() const
BatchPutMessageRequest & AddMessages(MessagesT &&value)
virtual const char * GetServiceRequestName() const override
AWS_IOTANALYTICS_API Aws::String SerializePayload() const override
BatchPutMessageRequest & WithChannelName(ChannelNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector