AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetChannelName(const Aws::String& value) { m_channelNameHasBeenSet = true; m_channelName = value; }
46 inline void SetChannelName(Aws::String&& value) { m_channelNameHasBeenSet = true; m_channelName = std::move(value); }
47 inline void SetChannelName(const char* value) { m_channelNameHasBeenSet = true; m_channelName.assign(value); }
48 inline CreateChannelRequest& WithChannelName(const Aws::String& value) { SetChannelName(value); return *this;}
49 inline CreateChannelRequest& WithChannelName(Aws::String&& value) { SetChannelName(std::move(value)); return *this;}
50 inline CreateChannelRequest& WithChannelName(const char* value) { SetChannelName(value); return *this;}
52
54
60 inline const ChannelStorage& GetChannelStorage() const{ return m_channelStorage; }
61 inline bool ChannelStorageHasBeenSet() const { return m_channelStorageHasBeenSet; }
62 inline void SetChannelStorage(const ChannelStorage& value) { m_channelStorageHasBeenSet = true; m_channelStorage = value; }
63 inline void SetChannelStorage(ChannelStorage&& value) { m_channelStorageHasBeenSet = true; m_channelStorage = std::move(value); }
64 inline CreateChannelRequest& WithChannelStorage(const ChannelStorage& value) { SetChannelStorage(value); return *this;}
65 inline CreateChannelRequest& WithChannelStorage(ChannelStorage&& value) { SetChannelStorage(std::move(value)); return *this;}
67
69
74 inline const RetentionPeriod& GetRetentionPeriod() const{ return m_retentionPeriod; }
75 inline bool RetentionPeriodHasBeenSet() const { return m_retentionPeriodHasBeenSet; }
76 inline void SetRetentionPeriod(const RetentionPeriod& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = value; }
77 inline void SetRetentionPeriod(RetentionPeriod&& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = std::move(value); }
78 inline CreateChannelRequest& WithRetentionPeriod(const RetentionPeriod& value) { SetRetentionPeriod(value); return *this;}
79 inline CreateChannelRequest& WithRetentionPeriod(RetentionPeriod&& value) { SetRetentionPeriod(std::move(value)); return *this;}
81
83
86 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
87 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
88 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
89 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
90 inline CreateChannelRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
91 inline CreateChannelRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
92 inline CreateChannelRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
93 inline CreateChannelRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
95 private:
96
97 Aws::String m_channelName;
98 bool m_channelNameHasBeenSet = false;
99
100 ChannelStorage m_channelStorage;
101 bool m_channelStorageHasBeenSet = false;
102
103 RetentionPeriod m_retentionPeriod;
104 bool m_retentionPeriodHasBeenSet = false;
105
106 Aws::Vector<Tag> m_tags;
107 bool m_tagsHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace IoTAnalytics
112} // namespace Aws
void SetTags(const Aws::Vector< Tag > &value)
void SetRetentionPeriod(const RetentionPeriod &value)
virtual const char * GetServiceRequestName() const override
CreateChannelRequest & WithRetentionPeriod(const RetentionPeriod &value)
CreateChannelRequest & AddTags(Tag &&value)
CreateChannelRequest & WithRetentionPeriod(RetentionPeriod &&value)
CreateChannelRequest & AddTags(const Tag &value)
CreateChannelRequest & WithChannelName(Aws::String &&value)
CreateChannelRequest & WithTags(const Aws::Vector< Tag > &value)
CreateChannelRequest & WithTags(Aws::Vector< Tag > &&value)
CreateChannelRequest & WithChannelStorage(const ChannelStorage &value)
void SetChannelStorage(const ChannelStorage &value)
CreateChannelRequest & WithChannelName(const Aws::String &value)
CreateChannelRequest & WithChannelName(const char *value)
AWS_IOTANALYTICS_API Aws::String SerializePayload() const override
CreateChannelRequest & WithChannelStorage(ChannelStorage &&value)
const RetentionPeriod & GetRetentionPeriod() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector