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/kinesisvideo/KinesisVideo_EXPORTS.h>
8#include <aws/kinesisvideo/KinesisVideoRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace KinesisVideo
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_KINESISVIDEO_API CreateStreamRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateStream"; }
32
33 AWS_KINESISVIDEO_API Aws::String SerializePayload() const override;
34
35
37
42 inline const Aws::String& GetDeviceName() const{ return m_deviceName; }
43 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
44 inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
45 inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); }
46 inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
47 inline CreateStreamRequest& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;}
48 inline CreateStreamRequest& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;}
49 inline CreateStreamRequest& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
51
53
57 inline const Aws::String& GetStreamName() const{ return m_streamName; }
58 inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
59 inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
60 inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); }
61 inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); }
62 inline CreateStreamRequest& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
63 inline CreateStreamRequest& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;}
64 inline CreateStreamRequest& WithStreamName(const char* value) { SetStreamName(value); return *this;}
66
68
79 inline const Aws::String& GetMediaType() const{ return m_mediaType; }
80 inline bool MediaTypeHasBeenSet() const { return m_mediaTypeHasBeenSet; }
81 inline void SetMediaType(const Aws::String& value) { m_mediaTypeHasBeenSet = true; m_mediaType = value; }
82 inline void SetMediaType(Aws::String&& value) { m_mediaTypeHasBeenSet = true; m_mediaType = std::move(value); }
83 inline void SetMediaType(const char* value) { m_mediaTypeHasBeenSet = true; m_mediaType.assign(value); }
84 inline CreateStreamRequest& WithMediaType(const Aws::String& value) { SetMediaType(value); return *this;}
85 inline CreateStreamRequest& WithMediaType(Aws::String&& value) { SetMediaType(std::move(value)); return *this;}
86 inline CreateStreamRequest& WithMediaType(const char* value) { SetMediaType(value); return *this;}
88
90
98 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
99 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
100 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
101 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
102 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
103 inline CreateStreamRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
104 inline CreateStreamRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
105 inline CreateStreamRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
107
109
119 inline int GetDataRetentionInHours() const{ return m_dataRetentionInHours; }
120 inline bool DataRetentionInHoursHasBeenSet() const { return m_dataRetentionInHoursHasBeenSet; }
121 inline void SetDataRetentionInHours(int value) { m_dataRetentionInHoursHasBeenSet = true; m_dataRetentionInHours = value; }
122 inline CreateStreamRequest& WithDataRetentionInHours(int value) { SetDataRetentionInHours(value); return *this;}
124
126
130 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
131 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
132 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
133 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
134 inline CreateStreamRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
135 inline CreateStreamRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
136 inline CreateStreamRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
137 inline CreateStreamRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
138 inline CreateStreamRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
139 inline CreateStreamRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
140 inline CreateStreamRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
141 inline CreateStreamRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
142 inline CreateStreamRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
144 private:
145
146 Aws::String m_deviceName;
147 bool m_deviceNameHasBeenSet = false;
148
149 Aws::String m_streamName;
150 bool m_streamNameHasBeenSet = false;
151
152 Aws::String m_mediaType;
153 bool m_mediaTypeHasBeenSet = false;
154
155 Aws::String m_kmsKeyId;
156 bool m_kmsKeyIdHasBeenSet = false;
157
158 int m_dataRetentionInHours;
159 bool m_dataRetentionInHoursHasBeenSet = false;
160
162 bool m_tagsHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace KinesisVideo
167} // namespace Aws
CreateStreamRequest & WithStreamName(const char *value)
virtual const char * GetServiceRequestName() const override
CreateStreamRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateStreamRequest & WithDeviceName(Aws::String &&value)
CreateStreamRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateStreamRequest & WithMediaType(Aws::String &&value)
CreateStreamRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateStreamRequest & AddTags(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateStreamRequest & WithKmsKeyId(const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateStreamRequest & WithDataRetentionInHours(int value)
CreateStreamRequest & AddTags(const char *key, Aws::String &&value)
CreateStreamRequest & WithDeviceName(const char *value)
CreateStreamRequest & AddTags(const char *key, const char *value)
CreateStreamRequest & WithKmsKeyId(const Aws::String &value)
CreateStreamRequest & WithDeviceName(const Aws::String &value)
CreateStreamRequest & WithMediaType(const Aws::String &value)
CreateStreamRequest & AddTags(Aws::String &&key, const char *value)
CreateStreamRequest & WithKmsKeyId(Aws::String &&value)
CreateStreamRequest & WithStreamName(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_KINESISVIDEO_API Aws::String SerializePayload() const override
CreateStreamRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateStreamRequest & WithStreamName(Aws::String &&value)
CreateStreamRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateStreamRequest & WithMediaType(const char *value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String