AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
CreateAdConfigurationRequest.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/IVSRequest.h>
11#include <aws/ivs/IVS_EXPORTS.h>
12#include <aws/ivs/model/MediaTailorPlaybackConfiguration.h>
13#include <aws/ivs/model/PostRollConfiguration.h>
14
15#include <utility>
16
17namespace Aws {
18namespace IVS {
19namespace Model {
20
24 public:
25 AWS_IVS_API CreateAdConfigurationRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateAdConfiguration"; }
32
33 AWS_IVS_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
62 return m_mediaTailorPlaybackConfigurations;
63 }
64 inline bool MediaTailorPlaybackConfigurationsHasBeenSet() const { return m_mediaTailorPlaybackConfigurationsHasBeenSet; }
65 template <typename MediaTailorPlaybackConfigurationsT = Aws::Vector<MediaTailorPlaybackConfiguration>>
66 void SetMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT&& value) {
67 m_mediaTailorPlaybackConfigurationsHasBeenSet = true;
68 m_mediaTailorPlaybackConfigurations = std::forward<MediaTailorPlaybackConfigurationsT>(value);
69 }
70 template <typename MediaTailorPlaybackConfigurationsT = Aws::Vector<MediaTailorPlaybackConfiguration>>
71 CreateAdConfigurationRequest& WithMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT&& value) {
72 SetMediaTailorPlaybackConfigurations(std::forward<MediaTailorPlaybackConfigurationsT>(value));
73 return *this;
74 }
75 template <typename MediaTailorPlaybackConfigurationsT = MediaTailorPlaybackConfiguration>
76 CreateAdConfigurationRequest& AddMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT&& value) {
77 m_mediaTailorPlaybackConfigurationsHasBeenSet = true;
78 m_mediaTailorPlaybackConfigurations.emplace_back(std::forward<MediaTailorPlaybackConfigurationsT>(value));
79 return *this;
80 }
82
84
89 inline const PostRollConfiguration& GetPostRollConfiguration() const { return m_postRollConfiguration; }
90 inline bool PostRollConfigurationHasBeenSet() const { return m_postRollConfigurationHasBeenSet; }
91 template <typename PostRollConfigurationT = PostRollConfiguration>
92 void SetPostRollConfiguration(PostRollConfigurationT&& value) {
93 m_postRollConfigurationHasBeenSet = true;
94 m_postRollConfiguration = std::forward<PostRollConfigurationT>(value);
95 }
96 template <typename PostRollConfigurationT = PostRollConfiguration>
98 SetPostRollConfiguration(std::forward<PostRollConfigurationT>(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 CreateAdConfigurationRequest& 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_name;
134
135 Aws::Vector<MediaTailorPlaybackConfiguration> m_mediaTailorPlaybackConfigurations;
136
137 PostRollConfiguration m_postRollConfiguration;
138
140 bool m_nameHasBeenSet = false;
141 bool m_mediaTailorPlaybackConfigurationsHasBeenSet = false;
142 bool m_postRollConfigurationHasBeenSet = false;
143 bool m_tagsHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace IVS
148} // namespace Aws
const PostRollConfiguration & GetPostRollConfiguration() const
void SetPostRollConfiguration(PostRollConfigurationT &&value)
CreateAdConfigurationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT &&value)
AWS_IVS_API Aws::String SerializePayload() const override
const Aws::Vector< MediaTailorPlaybackConfiguration > & GetMediaTailorPlaybackConfigurations() const
AWS_IVS_API CreateAdConfigurationRequest()=default
CreateAdConfigurationRequest & AddMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT &&value)
CreateAdConfigurationRequest & WithName(NameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
virtual const char * GetServiceRequestName() const override
CreateAdConfigurationRequest & WithPostRollConfiguration(PostRollConfigurationT &&value)
CreateAdConfigurationRequest & WithMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT &&value)
CreateAdConfigurationRequest & WithTags(TagsT &&value)
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