AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
IngestConfiguration.h
1
6#pragma once
7#include <aws/ivs-realtime/Ivsrealtime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ivs-realtime/model/IngestProtocol.h>
10#include <aws/ivs-realtime/model/IngestConfigurationState.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ivsrealtime
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_IVSREALTIME_API IngestConfiguration() = default;
38 AWS_IVSREALTIME_API IngestConfiguration(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IVSREALTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 IngestConfiguration& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
54
56
59 inline const Aws::String& GetArn() const { return m_arn; }
60 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
61 template<typename ArnT = Aws::String>
62 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
63 template<typename ArnT = Aws::String>
64 IngestConfiguration& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
66
68
71 inline IngestProtocol GetIngestProtocol() const { return m_ingestProtocol; }
72 inline bool IngestProtocolHasBeenSet() const { return m_ingestProtocolHasBeenSet; }
73 inline void SetIngestProtocol(IngestProtocol value) { m_ingestProtocolHasBeenSet = true; m_ingestProtocol = value; }
76
78
81 inline const Aws::String& GetStreamKey() const { return m_streamKey; }
82 inline bool StreamKeyHasBeenSet() const { return m_streamKeyHasBeenSet; }
83 template<typename StreamKeyT = Aws::String>
84 void SetStreamKey(StreamKeyT&& value) { m_streamKeyHasBeenSet = true; m_streamKey = std::forward<StreamKeyT>(value); }
85 template<typename StreamKeyT = Aws::String>
86 IngestConfiguration& WithStreamKey(StreamKeyT&& value) { SetStreamKey(std::forward<StreamKeyT>(value)); return *this;}
88
90
93 inline const Aws::String& GetStageArn() const { return m_stageArn; }
94 inline bool StageArnHasBeenSet() const { return m_stageArnHasBeenSet; }
95 template<typename StageArnT = Aws::String>
96 void SetStageArn(StageArnT&& value) { m_stageArnHasBeenSet = true; m_stageArn = std::forward<StageArnT>(value); }
97 template<typename StageArnT = Aws::String>
98 IngestConfiguration& WithStageArn(StageArnT&& value) { SetStageArn(std::forward<StageArnT>(value)); return *this;}
100
102
105 inline const Aws::String& GetParticipantId() const { return m_participantId; }
106 inline bool ParticipantIdHasBeenSet() const { return m_participantIdHasBeenSet; }
107 template<typename ParticipantIdT = Aws::String>
108 void SetParticipantId(ParticipantIdT&& value) { m_participantIdHasBeenSet = true; m_participantId = std::forward<ParticipantIdT>(value); }
109 template<typename ParticipantIdT = Aws::String>
110 IngestConfiguration& WithParticipantId(ParticipantIdT&& value) { SetParticipantId(std::forward<ParticipantIdT>(value)); return *this;}
112
114
119 inline IngestConfigurationState GetState() const { return m_state; }
120 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
121 inline void SetState(IngestConfigurationState value) { m_stateHasBeenSet = true; m_state = value; }
122 inline IngestConfiguration& WithState(IngestConfigurationState value) { SetState(value); return *this;}
124
126
133 inline const Aws::String& GetUserId() const { return m_userId; }
134 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
135 template<typename UserIdT = Aws::String>
136 void SetUserId(UserIdT&& value) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
137 template<typename UserIdT = Aws::String>
138 IngestConfiguration& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
140
142
149 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
150 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
151 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
152 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
153 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
154 IngestConfiguration& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
155 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
156 IngestConfiguration& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
157 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
158 }
160
162
171 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
172 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
173 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
174 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
175 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
176 IngestConfiguration& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
177 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
178 IngestConfiguration& AddTags(TagsKeyT&& key, TagsValueT&& value) {
179 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
180 }
182 private:
183
184 Aws::String m_name;
185 bool m_nameHasBeenSet = false;
186
187 Aws::String m_arn;
188 bool m_arnHasBeenSet = false;
189
190 IngestProtocol m_ingestProtocol{IngestProtocol::NOT_SET};
191 bool m_ingestProtocolHasBeenSet = false;
192
193 Aws::String m_streamKey;
194 bool m_streamKeyHasBeenSet = false;
195
196 Aws::String m_stageArn;
197 bool m_stageArnHasBeenSet = false;
198
199 Aws::String m_participantId;
200 bool m_participantIdHasBeenSet = false;
201
203 bool m_stateHasBeenSet = false;
204
205 Aws::String m_userId;
206 bool m_userIdHasBeenSet = false;
207
209 bool m_attributesHasBeenSet = false;
210
212 bool m_tagsHasBeenSet = false;
213 };
214
215} // namespace Model
216} // namespace ivsrealtime
217} // namespace Aws
IngestConfiguration & WithArn(ArnT &&value)
IngestConfiguration & WithName(NameT &&value)
IngestConfiguration & WithParticipantId(ParticipantIdT &&value)
IngestConfiguration & WithStageArn(StageArnT &&value)
IngestConfiguration & WithStreamKey(StreamKeyT &&value)
AWS_IVSREALTIME_API IngestConfiguration()=default
AWS_IVSREALTIME_API IngestConfiguration(Aws::Utils::Json::JsonView jsonValue)
IngestConfiguration & WithUserId(UserIdT &&value)
IngestConfiguration & WithIngestProtocol(IngestProtocol value)
void SetState(IngestConfigurationState value)
IngestConfiguration & AddTags(TagsKeyT &&key, TagsValueT &&value)
IngestConfiguration & WithAttributes(AttributesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
AWS_IVSREALTIME_API Aws::Utils::Json::JsonValue Jsonize() const
IngestConfiguration & WithState(IngestConfigurationState value)
AWS_IVSREALTIME_API IngestConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
IngestConfiguration & WithTags(TagsT &&value)
IngestConfiguration & AddAttributes(AttributesKeyT &&key, AttributesValueT &&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
Aws::Utils::Json::JsonValue JsonValue