AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
CreateStreamRequest.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#include <aws/iot/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace IoT {
18namespace Model {
19
23 public:
24 AWS_IOT_API CreateStreamRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateStream"; }
31
32 AWS_IOT_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetStreamId() const { return m_streamId; }
39 inline bool StreamIdHasBeenSet() const { return m_streamIdHasBeenSet; }
40 template <typename StreamIdT = Aws::String>
41 void SetStreamId(StreamIdT&& value) {
42 m_streamIdHasBeenSet = true;
43 m_streamId = std::forward<StreamIdT>(value);
44 }
45 template <typename StreamIdT = Aws::String>
46 CreateStreamRequest& WithStreamId(StreamIdT&& value) {
47 SetStreamId(std::forward<StreamIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetDescription() const { return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 template <typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) {
60 m_descriptionHasBeenSet = true;
61 m_description = std::forward<DescriptionT>(value);
62 }
63 template <typename DescriptionT = Aws::String>
64 CreateStreamRequest& WithDescription(DescriptionT&& value) {
65 SetDescription(std::forward<DescriptionT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::Vector<StreamFile>& GetFiles() const { return m_files; }
75 inline bool FilesHasBeenSet() const { return m_filesHasBeenSet; }
76 template <typename FilesT = Aws::Vector<StreamFile>>
77 void SetFiles(FilesT&& value) {
78 m_filesHasBeenSet = true;
79 m_files = std::forward<FilesT>(value);
80 }
81 template <typename FilesT = Aws::Vector<StreamFile>>
82 CreateStreamRequest& WithFiles(FilesT&& value) {
83 SetFiles(std::forward<FilesT>(value));
84 return *this;
85 }
86 template <typename FilesT = StreamFile>
87 CreateStreamRequest& AddFiles(FilesT&& value) {
88 m_filesHasBeenSet = true;
89 m_files.emplace_back(std::forward<FilesT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
100 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
101 template <typename RoleArnT = Aws::String>
102 void SetRoleArn(RoleArnT&& value) {
103 m_roleArnHasBeenSet = true;
104 m_roleArn = std::forward<RoleArnT>(value);
105 }
106 template <typename RoleArnT = Aws::String>
107 CreateStreamRequest& WithRoleArn(RoleArnT&& value) {
108 SetRoleArn(std::forward<RoleArnT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
118 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
119 template <typename TagsT = Aws::Vector<Tag>>
120 void SetTags(TagsT&& value) {
121 m_tagsHasBeenSet = true;
122 m_tags = std::forward<TagsT>(value);
123 }
124 template <typename TagsT = Aws::Vector<Tag>>
126 SetTags(std::forward<TagsT>(value));
127 return *this;
128 }
129 template <typename TagsT = Tag>
130 CreateStreamRequest& AddTags(TagsT&& value) {
131 m_tagsHasBeenSet = true;
132 m_tags.emplace_back(std::forward<TagsT>(value));
133 return *this;
134 }
136 private:
137 Aws::String m_streamId;
138
139 Aws::String m_description;
140
142
143 Aws::String m_roleArn;
144
145 Aws::Vector<Tag> m_tags;
146 bool m_streamIdHasBeenSet = false;
147 bool m_descriptionHasBeenSet = false;
148 bool m_filesHasBeenSet = false;
149 bool m_roleArnHasBeenSet = false;
150 bool m_tagsHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace IoT
155} // namespace Aws
CreateStreamRequest & WithRoleArn(RoleArnT &&value)
CreateStreamRequest & WithFiles(FilesT &&value)
CreateStreamRequest & WithStreamId(StreamIdT &&value)
const Aws::Vector< Tag > & GetTags() const
const Aws::Vector< StreamFile > & GetFiles() const
const Aws::String & GetDescription() const
AWS_IOT_API Aws::String SerializePayload() const override
CreateStreamRequest & WithDescription(DescriptionT &&value)
CreateStreamRequest & WithTags(TagsT &&value)
const Aws::String & GetRoleArn() const
void SetDescription(DescriptionT &&value)
virtual const char * GetServiceRequestName() const override
CreateStreamRequest & AddTags(TagsT &&value)
CreateStreamRequest & AddFiles(FilesT &&value)
const Aws::String & GetStreamId() const
AWS_IOT_API CreateStreamRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector