AWS SDK for C++

AWS SDK for C++ Version 1.11.827

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
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
32 public:
33 AWS_IVS_API AdConfiguration() = 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>
50 AdConfiguration& WithArn(ArnT&& value) {
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>
68 AdConfiguration& WithName(NameT&& value) {
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 AdConfiguration& WithMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT&& value) {
93 SetMediaTailorPlaybackConfigurations(std::forward<MediaTailorPlaybackConfigurationsT>(value));
94 return *this;
95 }
96 template <typename MediaTailorPlaybackConfigurationsT = MediaTailorPlaybackConfiguration>
97 AdConfiguration& AddMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT&& value) {
98 m_mediaTailorPlaybackConfigurationsHasBeenSet = true;
99 m_mediaTailorPlaybackConfigurations.emplace_back(std::forward<MediaTailorPlaybackConfigurationsT>(value));
100 return *this;
101 }
103
105
114 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
115 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
116 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
117 void SetTags(TagsT&& value) {
118 m_tagsHasBeenSet = true;
119 m_tags = std::forward<TagsT>(value);
120 }
121 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
122 AdConfiguration& WithTags(TagsT&& value) {
123 SetTags(std::forward<TagsT>(value));
124 return *this;
125 }
126 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
127 AdConfiguration& AddTags(TagsKeyT&& key, TagsValueT&& value) {
128 m_tagsHasBeenSet = true;
129 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
130 return *this;
131 }
133 private:
134 Aws::String m_arn;
135
136 Aws::String m_name;
137
138 Aws::Vector<MediaTailorPlaybackConfiguration> m_mediaTailorPlaybackConfigurations;
139
141 bool m_arnHasBeenSet = false;
142 bool m_nameHasBeenSet = false;
143 bool m_mediaTailorPlaybackConfigurationsHasBeenSet = false;
144 bool m_tagsHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace IVS
149} // namespace Aws
const Aws::String & GetArn() const
AWS_IVS_API AdConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
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)
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