AWS SDK for C++

AWS SDK for C++ Version 1.11.796

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
79 return m_mediaTailorPlaybackConfigurations;
80 }
81 inline bool MediaTailorPlaybackConfigurationsHasBeenSet() const { return m_mediaTailorPlaybackConfigurationsHasBeenSet; }
82 template <typename MediaTailorPlaybackConfigurationsT = Aws::Vector<MediaTailorPlaybackConfiguration>>
83 void SetMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT&& value) {
84 m_mediaTailorPlaybackConfigurationsHasBeenSet = true;
85 m_mediaTailorPlaybackConfigurations = std::forward<MediaTailorPlaybackConfigurationsT>(value);
86 }
87 template <typename MediaTailorPlaybackConfigurationsT = Aws::Vector<MediaTailorPlaybackConfiguration>>
88 AdConfiguration& WithMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT&& value) {
89 SetMediaTailorPlaybackConfigurations(std::forward<MediaTailorPlaybackConfigurationsT>(value));
90 return *this;
91 }
92 template <typename MediaTailorPlaybackConfigurationsT = MediaTailorPlaybackConfiguration>
93 AdConfiguration& AddMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT&& value) {
94 m_mediaTailorPlaybackConfigurationsHasBeenSet = true;
95 m_mediaTailorPlaybackConfigurations.emplace_back(std::forward<MediaTailorPlaybackConfigurationsT>(value));
96 return *this;
97 }
99
101
110 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
111 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
112 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
113 void SetTags(TagsT&& value) {
114 m_tagsHasBeenSet = true;
115 m_tags = std::forward<TagsT>(value);
116 }
117 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
118 AdConfiguration& WithTags(TagsT&& value) {
119 SetTags(std::forward<TagsT>(value));
120 return *this;
121 }
122 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
123 AdConfiguration& AddTags(TagsKeyT&& key, TagsValueT&& value) {
124 m_tagsHasBeenSet = true;
125 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
126 return *this;
127 }
129 private:
130 Aws::String m_arn;
131
132 Aws::String m_name;
133
134 Aws::Vector<MediaTailorPlaybackConfiguration> m_mediaTailorPlaybackConfigurations;
135
137 bool m_arnHasBeenSet = false;
138 bool m_nameHasBeenSet = false;
139 bool m_mediaTailorPlaybackConfigurationsHasBeenSet = false;
140 bool m_tagsHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace IVS
145} // 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