AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateChannelRequest.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/iotanalytics/model/ChannelStorage.h>
11#include <aws/iotanalytics/model/RetentionPeriod.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/iotanalytics/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace IoTAnalytics
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_IOTANALYTICS_API CreateChannelRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateChannel"; }
35
36 AWS_IOTANALYTICS_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetChannelName() const { return m_channelName; }
44 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
45 template<typename ChannelNameT = Aws::String>
46 void SetChannelName(ChannelNameT&& value) { m_channelNameHasBeenSet = true; m_channelName = std::forward<ChannelNameT>(value); }
47 template<typename ChannelNameT = Aws::String>
48 CreateChannelRequest& WithChannelName(ChannelNameT&& value) { SetChannelName(std::forward<ChannelNameT>(value)); return *this;}
50
52
58 inline const ChannelStorage& GetChannelStorage() const { return m_channelStorage; }
59 inline bool ChannelStorageHasBeenSet() const { return m_channelStorageHasBeenSet; }
60 template<typename ChannelStorageT = ChannelStorage>
61 void SetChannelStorage(ChannelStorageT&& value) { m_channelStorageHasBeenSet = true; m_channelStorage = std::forward<ChannelStorageT>(value); }
62 template<typename ChannelStorageT = ChannelStorage>
63 CreateChannelRequest& WithChannelStorage(ChannelStorageT&& value) { SetChannelStorage(std::forward<ChannelStorageT>(value)); return *this;}
65
67
72 inline const RetentionPeriod& GetRetentionPeriod() const { return m_retentionPeriod; }
73 inline bool RetentionPeriodHasBeenSet() const { return m_retentionPeriodHasBeenSet; }
74 template<typename RetentionPeriodT = RetentionPeriod>
75 void SetRetentionPeriod(RetentionPeriodT&& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = std::forward<RetentionPeriodT>(value); }
76 template<typename RetentionPeriodT = RetentionPeriod>
77 CreateChannelRequest& WithRetentionPeriod(RetentionPeriodT&& value) { SetRetentionPeriod(std::forward<RetentionPeriodT>(value)); return *this;}
79
81
84 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
85 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
86 template<typename TagsT = Aws::Vector<Tag>>
87 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
88 template<typename TagsT = Aws::Vector<Tag>>
89 CreateChannelRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
90 template<typename TagsT = Tag>
91 CreateChannelRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
93 private:
94
95 Aws::String m_channelName;
96 bool m_channelNameHasBeenSet = false;
97
98 ChannelStorage m_channelStorage;
99 bool m_channelStorageHasBeenSet = false;
100
101 RetentionPeriod m_retentionPeriod;
102 bool m_retentionPeriodHasBeenSet = false;
103
104 Aws::Vector<Tag> m_tags;
105 bool m_tagsHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace IoTAnalytics
110} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateChannelRequest & WithRetentionPeriod(RetentionPeriodT &&value)
AWS_IOTANALYTICS_API CreateChannelRequest()=default
CreateChannelRequest & WithChannelName(ChannelNameT &&value)
CreateChannelRequest & AddTags(TagsT &&value)
CreateChannelRequest & WithChannelStorage(ChannelStorageT &&value)
AWS_IOTANALYTICS_API Aws::String SerializePayload() const override
CreateChannelRequest & WithTags(TagsT &&value)
const RetentionPeriod & GetRetentionPeriod() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector