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/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() = default;
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 template<typename DeviceNameT = Aws::String>
45 void SetDeviceName(DeviceNameT&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::forward<DeviceNameT>(value); }
46 template<typename DeviceNameT = Aws::String>
47 CreateStreamRequest& WithDeviceName(DeviceNameT&& value) { SetDeviceName(std::forward<DeviceNameT>(value)); return *this;}
49
51
55 inline const Aws::String& GetStreamName() const { return m_streamName; }
56 inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
57 template<typename StreamNameT = Aws::String>
58 void SetStreamName(StreamNameT&& value) { m_streamNameHasBeenSet = true; m_streamName = std::forward<StreamNameT>(value); }
59 template<typename StreamNameT = Aws::String>
60 CreateStreamRequest& WithStreamName(StreamNameT&& value) { SetStreamName(std::forward<StreamNameT>(value)); return *this;}
62
64
75 inline const Aws::String& GetMediaType() const { return m_mediaType; }
76 inline bool MediaTypeHasBeenSet() const { return m_mediaTypeHasBeenSet; }
77 template<typename MediaTypeT = Aws::String>
78 void SetMediaType(MediaTypeT&& value) { m_mediaTypeHasBeenSet = true; m_mediaType = std::forward<MediaTypeT>(value); }
79 template<typename MediaTypeT = Aws::String>
80 CreateStreamRequest& WithMediaType(MediaTypeT&& value) { SetMediaType(std::forward<MediaTypeT>(value)); return *this;}
82
84
92 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
93 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
94 template<typename KmsKeyIdT = Aws::String>
95 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
96 template<typename KmsKeyIdT = Aws::String>
97 CreateStreamRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
99
101
111 inline int GetDataRetentionInHours() const { return m_dataRetentionInHours; }
112 inline bool DataRetentionInHoursHasBeenSet() const { return m_dataRetentionInHoursHasBeenSet; }
113 inline void SetDataRetentionInHours(int value) { m_dataRetentionInHoursHasBeenSet = true; m_dataRetentionInHours = value; }
114 inline CreateStreamRequest& WithDataRetentionInHours(int value) { SetDataRetentionInHours(value); return *this;}
116
118
122 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
123 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
124 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
125 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
126 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
127 CreateStreamRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
128 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
129 CreateStreamRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
130 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
131 }
133 private:
134
135 Aws::String m_deviceName;
136 bool m_deviceNameHasBeenSet = false;
137
138 Aws::String m_streamName;
139 bool m_streamNameHasBeenSet = false;
140
141 Aws::String m_mediaType;
142 bool m_mediaTypeHasBeenSet = false;
143
144 Aws::String m_kmsKeyId;
145 bool m_kmsKeyIdHasBeenSet = false;
146
147 int m_dataRetentionInHours{0};
148 bool m_dataRetentionInHoursHasBeenSet = false;
149
151 bool m_tagsHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace KinesisVideo
156} // namespace Aws
AWS_KINESISVIDEO_API CreateStreamRequest()=default
virtual const char * GetServiceRequestName() const override
CreateStreamRequest & WithStreamName(StreamNameT &&value)
CreateStreamRequest & WithDeviceName(DeviceNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateStreamRequest & WithMediaType(MediaTypeT &&value)
CreateStreamRequest & WithKmsKeyId(KmsKeyIdT &&value)
CreateStreamRequest & WithDataRetentionInHours(int value)
CreateStreamRequest & WithTags(TagsT &&value)
CreateStreamRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_KINESISVIDEO_API Aws::String SerializePayload() const override
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