AWS SDK for C++

AWS SDK for C++ Version 1.11.845

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#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
32 public:
33 AWS_IVS_API AdConfigurationSummary() = default;
37
39
42 inline const Aws::String& GetArn() const { return m_arn; }
43 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
44 template <typename ArnT = Aws::String>
45 void SetArn(ArnT&& value) {
46 m_arnHasBeenSet = true;
47 m_arn = std::forward<ArnT>(value);
48 }
49 template <typename ArnT = Aws::String>
51 SetArn(std::forward<ArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
83 return m_mediaTailorPlaybackConfigurations;
84 }
85 inline bool MediaTailorPlaybackConfigurationsHasBeenSet() const { return m_mediaTailorPlaybackConfigurationsHasBeenSet; }
86 template <typename MediaTailorPlaybackConfigurationsT = Aws::Vector<MediaTailorPlaybackConfiguration>>
87 void SetMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT&& value) {
88 m_mediaTailorPlaybackConfigurationsHasBeenSet = true;
89 m_mediaTailorPlaybackConfigurations = std::forward<MediaTailorPlaybackConfigurationsT>(value);
90 }
91 template <typename MediaTailorPlaybackConfigurationsT = Aws::Vector<MediaTailorPlaybackConfiguration>>
92 AdConfigurationSummary& WithMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT&& value) {
93 SetMediaTailorPlaybackConfigurations(std::forward<MediaTailorPlaybackConfigurationsT>(value));
94 return *this;
95 }
96 template <typename MediaTailorPlaybackConfigurationsT = MediaTailorPlaybackConfiguration>
97 AdConfigurationSummary& AddMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT&& value) {
98 m_mediaTailorPlaybackConfigurationsHasBeenSet = true;
99 m_mediaTailorPlaybackConfigurations.emplace_back(std::forward<MediaTailorPlaybackConfigurationsT>(value));
100 return *this;
101 }
103
105
109 inline const PostRollConfiguration& GetPostRollConfiguration() const { return m_postRollConfiguration; }
110 inline bool PostRollConfigurationHasBeenSet() const { return m_postRollConfigurationHasBeenSet; }
111 template <typename PostRollConfigurationT = PostRollConfiguration>
112 void SetPostRollConfiguration(PostRollConfigurationT&& value) {
113 m_postRollConfigurationHasBeenSet = true;
114 m_postRollConfiguration = std::forward<PostRollConfigurationT>(value);
115 }
116 template <typename PostRollConfigurationT = PostRollConfiguration>
117 AdConfigurationSummary& WithPostRollConfiguration(PostRollConfigurationT&& value) {
118 SetPostRollConfiguration(std::forward<PostRollConfigurationT>(value));
119 return *this;
120 }
122
124
133 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
134 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
135 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
136 void SetTags(TagsT&& value) {
137 m_tagsHasBeenSet = true;
138 m_tags = std::forward<TagsT>(value);
139 }
140 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
142 SetTags(std::forward<TagsT>(value));
143 return *this;
144 }
145 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
146 AdConfigurationSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
147 m_tagsHasBeenSet = true;
148 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
149 return *this;
150 }
152 private:
153 Aws::String m_arn;
154
155 Aws::String m_name;
156
157 Aws::Vector<MediaTailorPlaybackConfiguration> m_mediaTailorPlaybackConfigurations;
158
159 PostRollConfiguration m_postRollConfiguration;
160
162 bool m_arnHasBeenSet = false;
163 bool m_nameHasBeenSet = false;
164 bool m_mediaTailorPlaybackConfigurationsHasBeenSet = false;
165 bool m_postRollConfigurationHasBeenSet = false;
166 bool m_tagsHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace IVS
171} // namespace Aws
AdConfigurationSummary & AddMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT &&value)
AWS_IVS_API Aws::Utils::Json::JsonValue Jsonize() const
AdConfigurationSummary & WithTags(TagsT &&value)
AdConfigurationSummary & WithName(NameT &&value)
void SetPostRollConfiguration(PostRollConfigurationT &&value)
AWS_IVS_API AdConfigurationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< MediaTailorPlaybackConfiguration > & GetMediaTailorPlaybackConfigurations() const
AdConfigurationSummary & WithPostRollConfiguration(PostRollConfigurationT &&value)
AdConfigurationSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
AdConfigurationSummary & WithMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT &&value)
AWS_IVS_API AdConfigurationSummary(Aws::Utils::Json::JsonView jsonValue)
void SetMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT &&value)
const PostRollConfiguration & GetPostRollConfiguration() const
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