AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StreamKey.h
1
6#pragma once
7#include <aws/ivs/IVS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IVS
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_IVS_API StreamKey();
36 AWS_IVS_API StreamKey(Aws::Utils::Json::JsonView jsonValue);
39
40
42
45 inline const Aws::String& GetArn() const{ return m_arn; }
46 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
47 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
48 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
49 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
50 inline StreamKey& WithArn(const Aws::String& value) { SetArn(value); return *this;}
51 inline StreamKey& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
52 inline StreamKey& WithArn(const char* value) { SetArn(value); return *this;}
54
56
59 inline const Aws::String& GetChannelArn() const{ return m_channelArn; }
60 inline bool ChannelArnHasBeenSet() const { return m_channelArnHasBeenSet; }
61 inline void SetChannelArn(const Aws::String& value) { m_channelArnHasBeenSet = true; m_channelArn = value; }
62 inline void SetChannelArn(Aws::String&& value) { m_channelArnHasBeenSet = true; m_channelArn = std::move(value); }
63 inline void SetChannelArn(const char* value) { m_channelArnHasBeenSet = true; m_channelArn.assign(value); }
64 inline StreamKey& WithChannelArn(const Aws::String& value) { SetChannelArn(value); return *this;}
65 inline StreamKey& WithChannelArn(Aws::String&& value) { SetChannelArn(std::move(value)); return *this;}
66 inline StreamKey& WithChannelArn(const char* value) { SetChannelArn(value); return *this;}
68
70
79 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
80 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
81 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
82 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
83 inline StreamKey& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
84 inline StreamKey& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
85 inline StreamKey& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
86 inline StreamKey& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
87 inline StreamKey& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
88 inline StreamKey& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
89 inline StreamKey& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
90 inline StreamKey& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
91 inline StreamKey& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
93
95
98 inline const Aws::String& GetValue() const{ return m_value; }
99 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
100 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
101 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
102 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
103 inline StreamKey& WithValue(const Aws::String& value) { SetValue(value); return *this;}
104 inline StreamKey& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
105 inline StreamKey& WithValue(const char* value) { SetValue(value); return *this;}
107 private:
108
109 Aws::String m_arn;
110 bool m_arnHasBeenSet = false;
111
112 Aws::String m_channelArn;
113 bool m_channelArnHasBeenSet = false;
114
116 bool m_tagsHasBeenSet = false;
117
118 Aws::String m_value;
119 bool m_valueHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace IVS
124} // namespace Aws
StreamKey & WithArn(Aws::String &&value)
Definition StreamKey.h:51
void SetValue(Aws::String &&value)
Definition StreamKey.h:101
StreamKey & WithValue(Aws::String &&value)
Definition StreamKey.h:104
StreamKey & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition StreamKey.h:84
StreamKey & AddTags(const Aws::String &key, Aws::String &&value)
Definition StreamKey.h:87
const Aws::String & GetArn() const
Definition StreamKey.h:45
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition StreamKey.h:79
void SetChannelArn(const char *value)
Definition StreamKey.h:63
bool TagsHasBeenSet() const
Definition StreamKey.h:80
bool ChannelArnHasBeenSet() const
Definition StreamKey.h:60
bool ArnHasBeenSet() const
Definition StreamKey.h:46
void SetChannelArn(Aws::String &&value)
Definition StreamKey.h:62
void SetArn(const Aws::String &value)
Definition StreamKey.h:47
StreamKey & AddTags(const char *key, const char *value)
Definition StreamKey.h:91
StreamKey & WithValue(const char *value)
Definition StreamKey.h:105
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition StreamKey.h:82
void SetArn(Aws::String &&value)
Definition StreamKey.h:48
void SetChannelArn(const Aws::String &value)
Definition StreamKey.h:61
AWS_IVS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition StreamKey.h:81
AWS_IVS_API StreamKey & operator=(Aws::Utils::Json::JsonView jsonValue)
StreamKey & AddTags(const Aws::String &key, const Aws::String &value)
Definition StreamKey.h:85
void SetValue(const char *value)
Definition StreamKey.h:102
StreamKey & WithChannelArn(Aws::String &&value)
Definition StreamKey.h:65
StreamKey & WithChannelArn(const char *value)
Definition StreamKey.h:66
StreamKey & WithValue(const Aws::String &value)
Definition StreamKey.h:103
StreamKey & WithArn(const char *value)
Definition StreamKey.h:52
StreamKey & AddTags(Aws::String &&key, Aws::String &&value)
Definition StreamKey.h:88
StreamKey & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition StreamKey.h:83
StreamKey & AddTags(const char *key, Aws::String &&value)
Definition StreamKey.h:89
StreamKey & WithChannelArn(const Aws::String &value)
Definition StreamKey.h:64
const Aws::String & GetChannelArn() const
Definition StreamKey.h:59
bool ValueHasBeenSet() const
Definition StreamKey.h:99
StreamKey & AddTags(Aws::String &&key, const Aws::String &value)
Definition StreamKey.h:86
const Aws::String & GetValue() const
Definition StreamKey.h:98
StreamKey & WithArn(const Aws::String &value)
Definition StreamKey.h:50
StreamKey & AddTags(Aws::String &&key, const char *value)
Definition StreamKey.h:90
void SetArn(const char *value)
Definition StreamKey.h:49
AWS_IVS_API StreamKey(Aws::Utils::Json::JsonView jsonValue)
void SetValue(const Aws::String &value)
Definition StreamKey.h:100
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