AWS SDK for C++  1.9.125
AWS SDK for C++
CreateStreamRequest.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 <aws/iot/model/Tag.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace IoT
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreateStream"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
41  inline const Aws::String& GetStreamId() const{ return m_streamId; }
42 
46  inline bool StreamIdHasBeenSet() const { return m_streamIdHasBeenSet; }
47 
51  inline void SetStreamId(const Aws::String& value) { m_streamIdHasBeenSet = true; m_streamId = value; }
52 
56  inline void SetStreamId(Aws::String&& value) { m_streamIdHasBeenSet = true; m_streamId = std::move(value); }
57 
61  inline void SetStreamId(const char* value) { m_streamIdHasBeenSet = true; m_streamId.assign(value); }
62 
66  inline CreateStreamRequest& WithStreamId(const Aws::String& value) { SetStreamId(value); return *this;}
67 
71  inline CreateStreamRequest& WithStreamId(Aws::String&& value) { SetStreamId(std::move(value)); return *this;}
72 
76  inline CreateStreamRequest& WithStreamId(const char* value) { SetStreamId(value); return *this;}
77 
78 
82  inline const Aws::String& GetDescription() const{ return m_description; }
83 
87  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
88 
92  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
93 
97  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
98 
102  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
103 
107  inline CreateStreamRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
108 
112  inline CreateStreamRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
113 
117  inline CreateStreamRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
118 
119 
123  inline const Aws::Vector<StreamFile>& GetFiles() const{ return m_files; }
124 
128  inline bool FilesHasBeenSet() const { return m_filesHasBeenSet; }
129 
133  inline void SetFiles(const Aws::Vector<StreamFile>& value) { m_filesHasBeenSet = true; m_files = value; }
134 
138  inline void SetFiles(Aws::Vector<StreamFile>&& value) { m_filesHasBeenSet = true; m_files = std::move(value); }
139 
143  inline CreateStreamRequest& WithFiles(const Aws::Vector<StreamFile>& value) { SetFiles(value); return *this;}
144 
148  inline CreateStreamRequest& WithFiles(Aws::Vector<StreamFile>&& value) { SetFiles(std::move(value)); return *this;}
149 
153  inline CreateStreamRequest& AddFiles(const StreamFile& value) { m_filesHasBeenSet = true; m_files.push_back(value); return *this; }
154 
158  inline CreateStreamRequest& AddFiles(StreamFile&& value) { m_filesHasBeenSet = true; m_files.push_back(std::move(value)); return *this; }
159 
160 
165  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
166 
171  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
172 
177  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
178 
183  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
184 
189  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
190 
195  inline CreateStreamRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
196 
201  inline CreateStreamRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
202 
207  inline CreateStreamRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
208 
209 
213  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
214 
218  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
219 
223  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
224 
228  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
229 
233  inline CreateStreamRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
234 
238  inline CreateStreamRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
239 
243  inline CreateStreamRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
244 
248  inline CreateStreamRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
249 
250  private:
251 
252  Aws::String m_streamId;
253  bool m_streamIdHasBeenSet;
254 
255  Aws::String m_description;
256  bool m_descriptionHasBeenSet;
257 
258  Aws::Vector<StreamFile> m_files;
259  bool m_filesHasBeenSet;
260 
261  Aws::String m_roleArn;
262  bool m_roleArnHasBeenSet;
263 
264  Aws::Vector<Tag> m_tags;
265  bool m_tagsHasBeenSet;
266  };
267 
268 } // namespace Model
269 } // namespace IoT
270 } // namespace Aws
Aws::IoT::Model::CreateStreamRequest::WithDescription
CreateStreamRequest & WithDescription(const Aws::String &value)
Definition: CreateStreamRequest.h:107
Aws::IoT::Model::CreateStreamRequest::WithRoleArn
CreateStreamRequest & WithRoleArn(const char *value)
Definition: CreateStreamRequest.h:207
Aws::IoT::Model::CreateStreamRequest::SetStreamId
void SetStreamId(const char *value)
Definition: CreateStreamRequest.h:61
Aws::IoT::Model::CreateStreamRequest::CreateStreamRequest
CreateStreamRequest()
Aws::IoT::Model::CreateStreamRequest::WithRoleArn
CreateStreamRequest & WithRoleArn(const Aws::String &value)
Definition: CreateStreamRequest.h:195
Aws::IoT::Model::CreateStreamRequest::AddFiles
CreateStreamRequest & AddFiles(const StreamFile &value)
Definition: CreateStreamRequest.h:153
Aws::IoT::Model::CreateStreamRequest::WithRoleArn
CreateStreamRequest & WithRoleArn(Aws::String &&value)
Definition: CreateStreamRequest.h:201
Aws::IoT::Model::CreateStreamRequest::WithDescription
CreateStreamRequest & WithDescription(Aws::String &&value)
Definition: CreateStreamRequest.h:112
Aws::IoT::Model::CreateStreamRequest::SetStreamId
void SetStreamId(Aws::String &&value)
Definition: CreateStreamRequest.h:56
Aws::IoT::Model::CreateStreamRequest::WithStreamId
CreateStreamRequest & WithStreamId(const Aws::String &value)
Definition: CreateStreamRequest.h:66
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::CreateStreamRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateStreamRequest.h:97
Aws::IoT::Model::StreamFile
Definition: StreamFile.h:32
AWSVector.h
Aws::IoT::Model::CreateStreamRequest::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: CreateStreamRequest.h:177
Aws::IoT::Model::CreateStreamRequest::WithFiles
CreateStreamRequest & WithFiles(Aws::Vector< StreamFile > &&value)
Definition: CreateStreamRequest.h:148
Aws::IoT::Model::CreateStreamRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateStreamRequest.h:33
Aws::IoT::Model::Tag
Definition: Tag.h:33
Aws::IoT::Model::CreateStreamRequest::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: CreateStreamRequest.h:171
Aws::IoT::Model::CreateStreamRequest::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: CreateStreamRequest.h:165
Aws::IoT::Model::CreateStreamRequest::FilesHasBeenSet
bool FilesHasBeenSet() const
Definition: CreateStreamRequest.h:128
Aws::IoT::Model::CreateStreamRequest::SerializePayload
Aws::String SerializePayload() const override
StreamFile.h
Aws::IoT::Model::CreateStreamRequest::GetFiles
const Aws::Vector< StreamFile > & GetFiles() const
Definition: CreateStreamRequest.h:123
Aws::IoT::Model::CreateStreamRequest::SetFiles
void SetFiles(const Aws::Vector< StreamFile > &value)
Definition: CreateStreamRequest.h:133
AWSString.h
Aws::IoT::Model::CreateStreamRequest::StreamIdHasBeenSet
bool StreamIdHasBeenSet() const
Definition: CreateStreamRequest.h:46
Aws::IoT::Model::CreateStreamRequest::WithFiles
CreateStreamRequest & WithFiles(const Aws::Vector< StreamFile > &value)
Definition: CreateStreamRequest.h:143
Aws::IoT::Model::CreateStreamRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateStreamRequest.h:218
Aws::IoT::Model::CreateStreamRequest::AddTags
CreateStreamRequest & AddTags(Tag &&value)
Definition: CreateStreamRequest.h:248
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::CreateStreamRequest::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: CreateStreamRequest.h:183
Aws::IoT::Model::CreateStreamRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateStreamRequest.h:102
Aws::IoT::Model::CreateStreamRequest::SetStreamId
void SetStreamId(const Aws::String &value)
Definition: CreateStreamRequest.h:51
Aws::IoT::Model::CreateStreamRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateStreamRequest.h:228
Aws::IoT::Model::CreateStreamRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateStreamRequest.h:223
Aws::IoT::Model::CreateStreamRequest::GetStreamId
const Aws::String & GetStreamId() const
Definition: CreateStreamRequest.h:41
Aws::IoT::Model::CreateStreamRequest::WithStreamId
CreateStreamRequest & WithStreamId(Aws::String &&value)
Definition: CreateStreamRequest.h:71
Aws::IoT::Model::CreateStreamRequest
Definition: CreateStreamRequest.h:25
Aws::IoT::Model::CreateStreamRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateStreamRequest.h:82
Aws::IoT::Model::CreateStreamRequest::SetRoleArn
void SetRoleArn(const char *value)
Definition: CreateStreamRequest.h:189
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::CreateStreamRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateStreamRequest.h:213
Aws::IoT::Model::CreateStreamRequest::SetFiles
void SetFiles(Aws::Vector< StreamFile > &&value)
Definition: CreateStreamRequest.h:138
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
Aws::IoT::Model::CreateStreamRequest::AddTags
CreateStreamRequest & AddTags(const Tag &value)
Definition: CreateStreamRequest.h:243
Aws::IoT::Model::CreateStreamRequest::WithTags
CreateStreamRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateStreamRequest.h:233
Aws::IoT::Model::CreateStreamRequest::WithDescription
CreateStreamRequest & WithDescription(const char *value)
Definition: CreateStreamRequest.h:117
IoTRequest.h
Aws::IoT::Model::CreateStreamRequest::WithStreamId
CreateStreamRequest & WithStreamId(const char *value)
Definition: CreateStreamRequest.h:76
Aws::IoT::Model::CreateStreamRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateStreamRequest.h:92
Aws::IoT::Model::CreateStreamRequest::AddFiles
CreateStreamRequest & AddFiles(StreamFile &&value)
Definition: CreateStreamRequest.h:158
Aws::IoT::Model::CreateStreamRequest::WithTags
CreateStreamRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateStreamRequest.h:238
Tag.h
Aws::IoT::Model::CreateStreamRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateStreamRequest.h:87
IoT_EXPORTS.h