AWS SDK for C++  1.9.132
AWS SDK for C++
UpdateStreamRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace IoT
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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 "UpdateStream"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
40  inline const Aws::String& GetStreamId() const{ return m_streamId; }
41 
45  inline bool StreamIdHasBeenSet() const { return m_streamIdHasBeenSet; }
46 
50  inline void SetStreamId(const Aws::String& value) { m_streamIdHasBeenSet = true; m_streamId = value; }
51 
55  inline void SetStreamId(Aws::String&& value) { m_streamIdHasBeenSet = true; m_streamId = std::move(value); }
56 
60  inline void SetStreamId(const char* value) { m_streamIdHasBeenSet = true; m_streamId.assign(value); }
61 
65  inline UpdateStreamRequest& WithStreamId(const Aws::String& value) { SetStreamId(value); return *this;}
66 
70  inline UpdateStreamRequest& WithStreamId(Aws::String&& value) { SetStreamId(std::move(value)); return *this;}
71 
75  inline UpdateStreamRequest& WithStreamId(const char* value) { SetStreamId(value); return *this;}
76 
77 
81  inline const Aws::String& GetDescription() const{ return m_description; }
82 
86  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
87 
91  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
92 
96  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
97 
101  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
102 
106  inline UpdateStreamRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
107 
111  inline UpdateStreamRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
112 
116  inline UpdateStreamRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
117 
118 
122  inline const Aws::Vector<StreamFile>& GetFiles() const{ return m_files; }
123 
127  inline bool FilesHasBeenSet() const { return m_filesHasBeenSet; }
128 
132  inline void SetFiles(const Aws::Vector<StreamFile>& value) { m_filesHasBeenSet = true; m_files = value; }
133 
137  inline void SetFiles(Aws::Vector<StreamFile>&& value) { m_filesHasBeenSet = true; m_files = std::move(value); }
138 
142  inline UpdateStreamRequest& WithFiles(const Aws::Vector<StreamFile>& value) { SetFiles(value); return *this;}
143 
147  inline UpdateStreamRequest& WithFiles(Aws::Vector<StreamFile>&& value) { SetFiles(std::move(value)); return *this;}
148 
152  inline UpdateStreamRequest& AddFiles(const StreamFile& value) { m_filesHasBeenSet = true; m_files.push_back(value); return *this; }
153 
157  inline UpdateStreamRequest& AddFiles(StreamFile&& value) { m_filesHasBeenSet = true; m_files.push_back(std::move(value)); return *this; }
158 
159 
164  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
165 
170  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
171 
176  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
177 
182  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
183 
188  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
189 
194  inline UpdateStreamRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
195 
200  inline UpdateStreamRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
201 
206  inline UpdateStreamRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
207 
208  private:
209 
210  Aws::String m_streamId;
211  bool m_streamIdHasBeenSet;
212 
213  Aws::String m_description;
214  bool m_descriptionHasBeenSet;
215 
216  Aws::Vector<StreamFile> m_files;
217  bool m_filesHasBeenSet;
218 
219  Aws::String m_roleArn;
220  bool m_roleArnHasBeenSet;
221  };
222 
223 } // namespace Model
224 } // namespace IoT
225 } // namespace Aws
Aws::IoT::Model::UpdateStreamRequest::WithFiles
UpdateStreamRequest & WithFiles(Aws::Vector< StreamFile > &&value)
Definition: UpdateStreamRequest.h:147
Aws::IoT::Model::UpdateStreamRequest::SetStreamId
void SetStreamId(Aws::String &&value)
Definition: UpdateStreamRequest.h:55
Aws::IoT::Model::UpdateStreamRequest::WithRoleArn
UpdateStreamRequest & WithRoleArn(const char *value)
Definition: UpdateStreamRequest.h:206
Aws::IoT::Model::UpdateStreamRequest::WithRoleArn
UpdateStreamRequest & WithRoleArn(Aws::String &&value)
Definition: UpdateStreamRequest.h:200
Aws::IoT::Model::UpdateStreamRequest::SetFiles
void SetFiles(const Aws::Vector< StreamFile > &value)
Definition: UpdateStreamRequest.h:132
Aws::IoT::Model::UpdateStreamRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: UpdateStreamRequest.h:91
Aws::IoT::Model::UpdateStreamRequest::WithRoleArn
UpdateStreamRequest & WithRoleArn(const Aws::String &value)
Definition: UpdateStreamRequest.h:194
Aws::IoT::Model::UpdateStreamRequest::SetFiles
void SetFiles(Aws::Vector< StreamFile > &&value)
Definition: UpdateStreamRequest.h:137
Aws::IoT::Model::UpdateStreamRequest::WithStreamId
UpdateStreamRequest & WithStreamId(const char *value)
Definition: UpdateStreamRequest.h:75
Aws::IoT::Model::UpdateStreamRequest::WithDescription
UpdateStreamRequest & WithDescription(const Aws::String &value)
Definition: UpdateStreamRequest.h:106
Aws::IoT::Model::UpdateStreamRequest::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: UpdateStreamRequest.h:164
Aws::IoT::Model::UpdateStreamRequest::FilesHasBeenSet
bool FilesHasBeenSet() const
Definition: UpdateStreamRequest.h:127
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::UpdateStreamRequest::GetDescription
const Aws::String & GetDescription() const
Definition: UpdateStreamRequest.h:81
Aws::IoT::Model::StreamFile
Definition: StreamFile.h:32
AWSVector.h
Aws::IoT::Model::UpdateStreamRequest::SetStreamId
void SetStreamId(const char *value)
Definition: UpdateStreamRequest.h:60
Aws::IoT::Model::UpdateStreamRequest::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: UpdateStreamRequest.h:182
Aws::IoT::Model::UpdateStreamRequest::GetFiles
const Aws::Vector< StreamFile > & GetFiles() const
Definition: UpdateStreamRequest.h:122
Aws::IoT::Model::UpdateStreamRequest::WithDescription
UpdateStreamRequest & WithDescription(const char *value)
Definition: UpdateStreamRequest.h:116
StreamFile.h
Aws::IoT::Model::UpdateStreamRequest
Definition: UpdateStreamRequest.h:24
Aws::IoT::Model::UpdateStreamRequest::SetDescription
void SetDescription(const char *value)
Definition: UpdateStreamRequest.h:101
Aws::IoT::Model::UpdateStreamRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::UpdateStreamRequest::SetRoleArn
void SetRoleArn(const char *value)
Definition: UpdateStreamRequest.h:188
Aws::IoT::Model::UpdateStreamRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: UpdateStreamRequest.h:96
Aws::IoT::Model::UpdateStreamRequest::WithFiles
UpdateStreamRequest & WithFiles(const Aws::Vector< StreamFile > &value)
Definition: UpdateStreamRequest.h:142
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::UpdateStreamRequest::AddFiles
UpdateStreamRequest & AddFiles(StreamFile &&value)
Definition: UpdateStreamRequest.h:157
Aws::IoT::Model::UpdateStreamRequest::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: UpdateStreamRequest.h:170
Aws::IoT::Model::UpdateStreamRequest::AddFiles
UpdateStreamRequest & AddFiles(const StreamFile &value)
Definition: UpdateStreamRequest.h:152
Aws::IoT::Model::UpdateStreamRequest::WithStreamId
UpdateStreamRequest & WithStreamId(Aws::String &&value)
Definition: UpdateStreamRequest.h:70
Aws::IoT::Model::UpdateStreamRequest::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: UpdateStreamRequest.h:176
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::UpdateStreamRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateStreamRequest.h:32
Aws::IoT::Model::UpdateStreamRequest::UpdateStreamRequest
UpdateStreamRequest()
Aws::IoT::Model::UpdateStreamRequest::WithStreamId
UpdateStreamRequest & WithStreamId(const Aws::String &value)
Definition: UpdateStreamRequest.h:65
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
IoTRequest.h
Aws::IoT::Model::UpdateStreamRequest::GetStreamId
const Aws::String & GetStreamId() const
Definition: UpdateStreamRequest.h:40
Aws::IoT::Model::UpdateStreamRequest::StreamIdHasBeenSet
bool StreamIdHasBeenSet() const
Definition: UpdateStreamRequest.h:45
Aws::IoT::Model::UpdateStreamRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: UpdateStreamRequest.h:86
Aws::IoT::Model::UpdateStreamRequest::SetStreamId
void SetStreamId(const Aws::String &value)
Definition: UpdateStreamRequest.h:50
Aws::IoT::Model::UpdateStreamRequest::WithDescription
UpdateStreamRequest & WithDescription(Aws::String &&value)
Definition: UpdateStreamRequest.h:111
IoT_EXPORTS.h