AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateChannelRequest.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 <utility>
13
14namespace Aws
15{
16namespace IoTAnalytics
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_IOTANALYTICS_API UpdateChannelRequest() = 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 "UpdateChannel"; }
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 UpdateChannelRequest& WithChannelName(ChannelNameT&& value) { SetChannelName(std::forward<ChannelNameT>(value)); return *this;}
48
50
56 inline const ChannelStorage& GetChannelStorage() const { return m_channelStorage; }
57 inline bool ChannelStorageHasBeenSet() const { return m_channelStorageHasBeenSet; }
58 template<typename ChannelStorageT = ChannelStorage>
59 void SetChannelStorage(ChannelStorageT&& value) { m_channelStorageHasBeenSet = true; m_channelStorage = std::forward<ChannelStorageT>(value); }
60 template<typename ChannelStorageT = ChannelStorage>
61 UpdateChannelRequest& WithChannelStorage(ChannelStorageT&& value) { SetChannelStorage(std::forward<ChannelStorageT>(value)); return *this;}
63
65
69 inline const RetentionPeriod& GetRetentionPeriod() const { return m_retentionPeriod; }
70 inline bool RetentionPeriodHasBeenSet() const { return m_retentionPeriodHasBeenSet; }
71 template<typename RetentionPeriodT = RetentionPeriod>
72 void SetRetentionPeriod(RetentionPeriodT&& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = std::forward<RetentionPeriodT>(value); }
73 template<typename RetentionPeriodT = RetentionPeriod>
74 UpdateChannelRequest& WithRetentionPeriod(RetentionPeriodT&& value) { SetRetentionPeriod(std::forward<RetentionPeriodT>(value)); return *this;}
76 private:
77
78 Aws::String m_channelName;
79 bool m_channelNameHasBeenSet = false;
80
81 ChannelStorage m_channelStorage;
82 bool m_channelStorageHasBeenSet = false;
83
84 RetentionPeriod m_retentionPeriod;
85 bool m_retentionPeriodHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace IoTAnalytics
90} // namespace Aws
UpdateChannelRequest & WithRetentionPeriod(RetentionPeriodT &&value)
const RetentionPeriod & GetRetentionPeriod() const
virtual const char * GetServiceRequestName() const override
AWS_IOTANALYTICS_API UpdateChannelRequest()=default
UpdateChannelRequest & WithChannelStorage(ChannelStorageT &&value)
AWS_IOTANALYTICS_API Aws::String SerializePayload() const override
UpdateChannelRequest & WithChannelName(ChannelNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String