AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateStreamRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iot/model/StreamFile.h>
12#include <aws/iot/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace IoT
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_IOT_API CreateStreamRequest() = default;
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_IOT_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetStreamId() const { return m_streamId; }
43 inline bool StreamIdHasBeenSet() const { return m_streamIdHasBeenSet; }
44 template<typename StreamIdT = Aws::String>
45 void SetStreamId(StreamIdT&& value) { m_streamIdHasBeenSet = true; m_streamId = std::forward<StreamIdT>(value); }
46 template<typename StreamIdT = Aws::String>
47 CreateStreamRequest& WithStreamId(StreamIdT&& value) { SetStreamId(std::forward<StreamIdT>(value)); return *this;}
49
51
54 inline const Aws::String& GetDescription() const { return m_description; }
55 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
56 template<typename DescriptionT = Aws::String>
57 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
58 template<typename DescriptionT = Aws::String>
59 CreateStreamRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
61
63
66 inline const Aws::Vector<StreamFile>& GetFiles() const { return m_files; }
67 inline bool FilesHasBeenSet() const { return m_filesHasBeenSet; }
68 template<typename FilesT = Aws::Vector<StreamFile>>
69 void SetFiles(FilesT&& value) { m_filesHasBeenSet = true; m_files = std::forward<FilesT>(value); }
70 template<typename FilesT = Aws::Vector<StreamFile>>
71 CreateStreamRequest& WithFiles(FilesT&& value) { SetFiles(std::forward<FilesT>(value)); return *this;}
72 template<typename FilesT = StreamFile>
73 CreateStreamRequest& AddFiles(FilesT&& value) { m_filesHasBeenSet = true; m_files.emplace_back(std::forward<FilesT>(value)); return *this; }
75
77
81 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
82 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
83 template<typename RoleArnT = Aws::String>
84 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
85 template<typename RoleArnT = Aws::String>
86 CreateStreamRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
88
90
93 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
94 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
95 template<typename TagsT = Aws::Vector<Tag>>
96 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
97 template<typename TagsT = Aws::Vector<Tag>>
98 CreateStreamRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
99 template<typename TagsT = Tag>
100 CreateStreamRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
102 private:
103
104 Aws::String m_streamId;
105 bool m_streamIdHasBeenSet = false;
106
107 Aws::String m_description;
108 bool m_descriptionHasBeenSet = false;
109
111 bool m_filesHasBeenSet = false;
112
113 Aws::String m_roleArn;
114 bool m_roleArnHasBeenSet = false;
115
116 Aws::Vector<Tag> m_tags;
117 bool m_tagsHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace IoT
122} // 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