AWS SDK for C++

AWS SDK for C++ Version 1.11.686

Loading...
Searching...
No Matches
UpdateStreamRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iot/IoTRequest.h>
10#include <aws/iot/IoT_EXPORTS.h>
11#include <aws/iot/model/StreamFile.h>
12
13#include <utility>
14
15namespace Aws {
16namespace IoT {
17namespace Model {
18
22 public:
23 AWS_IOT_API UpdateStreamRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateStream"; }
30
31 AWS_IOT_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetStreamId() const { return m_streamId; }
38 inline bool StreamIdHasBeenSet() const { return m_streamIdHasBeenSet; }
39 template <typename StreamIdT = Aws::String>
40 void SetStreamId(StreamIdT&& value) {
41 m_streamIdHasBeenSet = true;
42 m_streamId = std::forward<StreamIdT>(value);
43 }
44 template <typename StreamIdT = Aws::String>
45 UpdateStreamRequest& WithStreamId(StreamIdT&& value) {
46 SetStreamId(std::forward<StreamIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetDescription() const { return m_description; }
56 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
57 template <typename DescriptionT = Aws::String>
58 void SetDescription(DescriptionT&& value) {
59 m_descriptionHasBeenSet = true;
60 m_description = std::forward<DescriptionT>(value);
61 }
62 template <typename DescriptionT = Aws::String>
63 UpdateStreamRequest& WithDescription(DescriptionT&& value) {
64 SetDescription(std::forward<DescriptionT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::Vector<StreamFile>& GetFiles() const { return m_files; }
74 inline bool FilesHasBeenSet() const { return m_filesHasBeenSet; }
75 template <typename FilesT = Aws::Vector<StreamFile>>
76 void SetFiles(FilesT&& value) {
77 m_filesHasBeenSet = true;
78 m_files = std::forward<FilesT>(value);
79 }
80 template <typename FilesT = Aws::Vector<StreamFile>>
81 UpdateStreamRequest& WithFiles(FilesT&& value) {
82 SetFiles(std::forward<FilesT>(value));
83 return *this;
84 }
85 template <typename FilesT = StreamFile>
86 UpdateStreamRequest& AddFiles(FilesT&& value) {
87 m_filesHasBeenSet = true;
88 m_files.emplace_back(std::forward<FilesT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
99 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
100 template <typename RoleArnT = Aws::String>
101 void SetRoleArn(RoleArnT&& value) {
102 m_roleArnHasBeenSet = true;
103 m_roleArn = std::forward<RoleArnT>(value);
104 }
105 template <typename RoleArnT = Aws::String>
106 UpdateStreamRequest& WithRoleArn(RoleArnT&& value) {
107 SetRoleArn(std::forward<RoleArnT>(value));
108 return *this;
109 }
111 private:
112 Aws::String m_streamId;
113 bool m_streamIdHasBeenSet = false;
114
115 Aws::String m_description;
116 bool m_descriptionHasBeenSet = false;
117
119 bool m_filesHasBeenSet = false;
120
121 Aws::String m_roleArn;
122 bool m_roleArnHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace IoT
127} // namespace Aws
virtual const char * GetServiceRequestName() const override
const Aws::String & GetRoleArn() const
void SetDescription(DescriptionT &&value)
const Aws::String & GetStreamId() const
UpdateStreamRequest & AddFiles(FilesT &&value)
AWS_IOT_API UpdateStreamRequest()=default
UpdateStreamRequest & WithDescription(DescriptionT &&value)
UpdateStreamRequest & WithStreamId(StreamIdT &&value)
const Aws::String & GetDescription() const
AWS_IOT_API Aws::String SerializePayload() const override
const Aws::Vector< StreamFile > & GetFiles() const
UpdateStreamRequest & WithFiles(FilesT &&value)
UpdateStreamRequest & WithRoleArn(RoleArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector