AWS SDK for C++

AWS SDK for C++ Version 1.11.827

Loading...
Searching...
No Matches
AdConfigurationSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ivs/IVS_EXPORTS.h>
11#include <aws/ivs/model/MediaTailorPlaybackConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IVS {
23namespace Model {
24
31 public:
32 AWS_IVS_API AdConfigurationSummary() = default;
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
43 template <typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) {
45 m_arnHasBeenSet = true;
46 m_arn = std::forward<ArnT>(value);
47 }
48 template <typename ArnT = Aws::String>
50 SetArn(std::forward<ArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
82 return m_mediaTailorPlaybackConfigurations;
83 }
84 inline bool MediaTailorPlaybackConfigurationsHasBeenSet() const { return m_mediaTailorPlaybackConfigurationsHasBeenSet; }
85 template <typename MediaTailorPlaybackConfigurationsT = Aws::Vector<MediaTailorPlaybackConfiguration>>
86 void SetMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT&& value) {
87 m_mediaTailorPlaybackConfigurationsHasBeenSet = true;
88 m_mediaTailorPlaybackConfigurations = std::forward<MediaTailorPlaybackConfigurationsT>(value);
89 }
90 template <typename MediaTailorPlaybackConfigurationsT = Aws::Vector<MediaTailorPlaybackConfiguration>>
91 AdConfigurationSummary& WithMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT&& value) {
92 SetMediaTailorPlaybackConfigurations(std::forward<MediaTailorPlaybackConfigurationsT>(value));
93 return *this;
94 }
95 template <typename MediaTailorPlaybackConfigurationsT = MediaTailorPlaybackConfiguration>
96 AdConfigurationSummary& AddMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT&& value) {
97 m_mediaTailorPlaybackConfigurationsHasBeenSet = true;
98 m_mediaTailorPlaybackConfigurations.emplace_back(std::forward<MediaTailorPlaybackConfigurationsT>(value));
99 return *this;
100 }
102
104
113 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
114 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
115 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
116 void SetTags(TagsT&& value) {
117 m_tagsHasBeenSet = true;
118 m_tags = std::forward<TagsT>(value);
119 }
120 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
122 SetTags(std::forward<TagsT>(value));
123 return *this;
124 }
125 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
126 AdConfigurationSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
127 m_tagsHasBeenSet = true;
128 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
129 return *this;
130 }
132 private:
133 Aws::String m_arn;
134
135 Aws::String m_name;
136
137 Aws::Vector<MediaTailorPlaybackConfiguration> m_mediaTailorPlaybackConfigurations;
138
140 bool m_arnHasBeenSet = false;
141 bool m_nameHasBeenSet = false;
142 bool m_mediaTailorPlaybackConfigurationsHasBeenSet = false;
143 bool m_tagsHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace IVS
148} // namespace Aws
AdConfigurationSummary & AddMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT &&value)
AWS_IVS_API Aws::Utils::Json::JsonValue Jsonize() const
AdConfigurationSummary & WithTags(TagsT &&value)
AdConfigurationSummary & WithName(NameT &&value)
AWS_IVS_API AdConfigurationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< MediaTailorPlaybackConfiguration > & GetMediaTailorPlaybackConfigurations() const
AdConfigurationSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
AdConfigurationSummary & WithMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT &&value)
AWS_IVS_API AdConfigurationSummary(Aws::Utils::Json::JsonView jsonValue)
void SetMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AdConfigurationSummary & WithArn(ArnT &&value)
AWS_IVS_API AdConfigurationSummary()=default
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue