AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
AdConfiguration.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#include <aws/ivs/model/PostRollConfiguration.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace IVS {
24namespace Model {
25
33 public:
34 AWS_IVS_API AdConfiguration() = default;
38
40
43 inline const Aws::String& GetArn() const { return m_arn; }
44 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
45 template <typename ArnT = Aws::String>
46 void SetArn(ArnT&& value) {
47 m_arnHasBeenSet = true;
48 m_arn = std::forward<ArnT>(value);
49 }
50 template <typename ArnT = Aws::String>
51 AdConfiguration& WithArn(ArnT&& value) {
52 SetArn(std::forward<ArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
69 AdConfiguration& WithName(NameT&& value) {
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
84 return m_mediaTailorPlaybackConfigurations;
85 }
86 inline bool MediaTailorPlaybackConfigurationsHasBeenSet() const { return m_mediaTailorPlaybackConfigurationsHasBeenSet; }
87 template <typename MediaTailorPlaybackConfigurationsT = Aws::Vector<MediaTailorPlaybackConfiguration>>
88 void SetMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT&& value) {
89 m_mediaTailorPlaybackConfigurationsHasBeenSet = true;
90 m_mediaTailorPlaybackConfigurations = std::forward<MediaTailorPlaybackConfigurationsT>(value);
91 }
92 template <typename MediaTailorPlaybackConfigurationsT = Aws::Vector<MediaTailorPlaybackConfiguration>>
93 AdConfiguration& WithMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT&& value) {
94 SetMediaTailorPlaybackConfigurations(std::forward<MediaTailorPlaybackConfigurationsT>(value));
95 return *this;
96 }
97 template <typename MediaTailorPlaybackConfigurationsT = MediaTailorPlaybackConfiguration>
98 AdConfiguration& AddMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT&& value) {
99 m_mediaTailorPlaybackConfigurationsHasBeenSet = true;
100 m_mediaTailorPlaybackConfigurations.emplace_back(std::forward<MediaTailorPlaybackConfigurationsT>(value));
101 return *this;
102 }
104
106
110 inline const PostRollConfiguration& GetPostRollConfiguration() const { return m_postRollConfiguration; }
111 inline bool PostRollConfigurationHasBeenSet() const { return m_postRollConfigurationHasBeenSet; }
112 template <typename PostRollConfigurationT = PostRollConfiguration>
113 void SetPostRollConfiguration(PostRollConfigurationT&& value) {
114 m_postRollConfigurationHasBeenSet = true;
115 m_postRollConfiguration = std::forward<PostRollConfigurationT>(value);
116 }
117 template <typename PostRollConfigurationT = PostRollConfiguration>
118 AdConfiguration& WithPostRollConfiguration(PostRollConfigurationT&& value) {
119 SetPostRollConfiguration(std::forward<PostRollConfigurationT>(value));
120 return *this;
121 }
123
125
134 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
135 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
136 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
137 void SetTags(TagsT&& value) {
138 m_tagsHasBeenSet = true;
139 m_tags = std::forward<TagsT>(value);
140 }
141 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
142 AdConfiguration& WithTags(TagsT&& value) {
143 SetTags(std::forward<TagsT>(value));
144 return *this;
145 }
146 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
147 AdConfiguration& AddTags(TagsKeyT&& key, TagsValueT&& value) {
148 m_tagsHasBeenSet = true;
149 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
150 return *this;
151 }
153 private:
154 Aws::String m_arn;
155
156 Aws::String m_name;
157
158 Aws::Vector<MediaTailorPlaybackConfiguration> m_mediaTailorPlaybackConfigurations;
159
160 PostRollConfiguration m_postRollConfiguration;
161
163 bool m_arnHasBeenSet = false;
164 bool m_nameHasBeenSet = false;
165 bool m_mediaTailorPlaybackConfigurationsHasBeenSet = false;
166 bool m_postRollConfigurationHasBeenSet = false;
167 bool m_tagsHasBeenSet = false;
168};
169
170} // namespace Model
171} // namespace IVS
172} // namespace Aws
AdConfiguration & WithPostRollConfiguration(PostRollConfigurationT &&value)
const Aws::String & GetArn() const
AWS_IVS_API AdConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPostRollConfiguration(PostRollConfigurationT &&value)
const Aws::Vector< MediaTailorPlaybackConfiguration > & GetMediaTailorPlaybackConfigurations() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
bool MediaTailorPlaybackConfigurationsHasBeenSet() const
AWS_IVS_API AdConfiguration()=default
AdConfiguration & WithTags(TagsT &&value)
AdConfiguration & WithMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT &&value)
const PostRollConfiguration & GetPostRollConfiguration() const
AdConfiguration & AddTags(TagsKeyT &&key, TagsValueT &&value)
AdConfiguration & WithArn(ArnT &&value)
AdConfiguration & WithName(NameT &&value)
const Aws::String & GetName() const
void SetMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT &&value)
AdConfiguration & AddMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT &&value)
AWS_IVS_API AdConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_IVS_API Aws::Utils::Json::JsonValue Jsonize() const
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