AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetStreamId(const Aws::String& value) { m_streamIdHasBeenSet = true; m_streamId = value; }
45 inline void SetStreamId(Aws::String&& value) { m_streamIdHasBeenSet = true; m_streamId = std::move(value); }
46 inline void SetStreamId(const char* value) { m_streamIdHasBeenSet = true; m_streamId.assign(value); }
47 inline CreateStreamRequest& WithStreamId(const Aws::String& value) { SetStreamId(value); return *this;}
48 inline CreateStreamRequest& WithStreamId(Aws::String&& value) { SetStreamId(std::move(value)); return *this;}
49 inline CreateStreamRequest& WithStreamId(const char* value) { SetStreamId(value); return *this;}
51
53
56 inline const Aws::String& GetDescription() const{ return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
59 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
60 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
61 inline CreateStreamRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
62 inline CreateStreamRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
63 inline CreateStreamRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
65
67
70 inline const Aws::Vector<StreamFile>& GetFiles() const{ return m_files; }
71 inline bool FilesHasBeenSet() const { return m_filesHasBeenSet; }
72 inline void SetFiles(const Aws::Vector<StreamFile>& value) { m_filesHasBeenSet = true; m_files = value; }
73 inline void SetFiles(Aws::Vector<StreamFile>&& value) { m_filesHasBeenSet = true; m_files = std::move(value); }
74 inline CreateStreamRequest& WithFiles(const Aws::Vector<StreamFile>& value) { SetFiles(value); return *this;}
75 inline CreateStreamRequest& WithFiles(Aws::Vector<StreamFile>&& value) { SetFiles(std::move(value)); return *this;}
76 inline CreateStreamRequest& AddFiles(const StreamFile& value) { m_filesHasBeenSet = true; m_files.push_back(value); return *this; }
77 inline CreateStreamRequest& AddFiles(StreamFile&& value) { m_filesHasBeenSet = true; m_files.push_back(std::move(value)); return *this; }
79
81
85 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
86 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
87 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
88 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
89 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
90 inline CreateStreamRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
91 inline CreateStreamRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
92 inline CreateStreamRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
94
96
99 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
100 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
101 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
102 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
103 inline CreateStreamRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
104 inline CreateStreamRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
105 inline CreateStreamRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
106 inline CreateStreamRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
108 private:
109
110 Aws::String m_streamId;
111 bool m_streamIdHasBeenSet = false;
112
113 Aws::String m_description;
114 bool m_descriptionHasBeenSet = false;
115
117 bool m_filesHasBeenSet = false;
118
119 Aws::String m_roleArn;
120 bool m_roleArnHasBeenSet = false;
121
122 Aws::Vector<Tag> m_tags;
123 bool m_tagsHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace IoT
128} // namespace Aws
CreateStreamRequest & WithStreamId(const Aws::String &value)
CreateStreamRequest & WithRoleArn(const char *value)
CreateStreamRequest & WithRoleArn(Aws::String &&value)
const Aws::Vector< Tag > & GetTags() const
CreateStreamRequest & WithFiles(Aws::Vector< StreamFile > &&value)
void SetFiles(const Aws::Vector< StreamFile > &value)
void SetStreamId(const Aws::String &value)
const Aws::Vector< StreamFile > & GetFiles() const
CreateStreamRequest & WithStreamId(Aws::String &&value)
CreateStreamRequest & WithDescription(Aws::String &&value)
const Aws::String & GetDescription() const
void SetRoleArn(const Aws::String &value)
AWS_IOT_API Aws::String SerializePayload() const override
CreateStreamRequest & AddFiles(const StreamFile &value)
void SetTags(const Aws::Vector< Tag > &value)
void SetDescription(const Aws::String &value)
const Aws::String & GetRoleArn() const
CreateStreamRequest & WithDescription(const Aws::String &value)
CreateStreamRequest & WithStreamId(const char *value)
CreateStreamRequest & WithDescription(const char *value)
CreateStreamRequest & AddFiles(StreamFile &&value)
virtual const char * GetServiceRequestName() const override
CreateStreamRequest & AddTags(const Tag &value)
void SetFiles(Aws::Vector< StreamFile > &&value)
CreateStreamRequest & WithTags(Aws::Vector< Tag > &&value)
void SetTags(Aws::Vector< Tag > &&value)
CreateStreamRequest & WithRoleArn(const Aws::String &value)
CreateStreamRequest & WithTags(const Aws::Vector< Tag > &value)
CreateStreamRequest & AddTags(Tag &&value)
void SetDescription(Aws::String &&value)
const Aws::String & GetStreamId() const
CreateStreamRequest & WithFiles(const Aws::Vector< StreamFile > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector