AWS SDK for C++

AWS SDK for C++ Version 1.11.812

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
14#include <utility>
15
16namespace Aws {
17namespace IVS {
18namespace Model {
19
23 public:
24 AWS_IVS_API CreateAdConfigurationRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateAdConfiguration"; }
31
32 AWS_IVS_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
57 return m_mediaTailorPlaybackConfigurations;
58 }
59 inline bool MediaTailorPlaybackConfigurationsHasBeenSet() const { return m_mediaTailorPlaybackConfigurationsHasBeenSet; }
60 template <typename MediaTailorPlaybackConfigurationsT = Aws::Vector<MediaTailorPlaybackConfiguration>>
61 void SetMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT&& value) {
62 m_mediaTailorPlaybackConfigurationsHasBeenSet = true;
63 m_mediaTailorPlaybackConfigurations = std::forward<MediaTailorPlaybackConfigurationsT>(value);
64 }
65 template <typename MediaTailorPlaybackConfigurationsT = Aws::Vector<MediaTailorPlaybackConfiguration>>
66 CreateAdConfigurationRequest& WithMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT&& value) {
67 SetMediaTailorPlaybackConfigurations(std::forward<MediaTailorPlaybackConfigurationsT>(value));
68 return *this;
69 }
70 template <typename MediaTailorPlaybackConfigurationsT = MediaTailorPlaybackConfiguration>
71 CreateAdConfigurationRequest& AddMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT&& value) {
72 m_mediaTailorPlaybackConfigurationsHasBeenSet = true;
73 m_mediaTailorPlaybackConfigurations.emplace_back(std::forward<MediaTailorPlaybackConfigurationsT>(value));
74 return *this;
75 }
77
79
88 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
89 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
90 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
91 void SetTags(TagsT&& value) {
92 m_tagsHasBeenSet = true;
93 m_tags = std::forward<TagsT>(value);
94 }
95 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
97 SetTags(std::forward<TagsT>(value));
98 return *this;
99 }
100 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
101 CreateAdConfigurationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
102 m_tagsHasBeenSet = true;
103 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_name;
109
110 Aws::Vector<MediaTailorPlaybackConfiguration> m_mediaTailorPlaybackConfigurations;
111
113 bool m_nameHasBeenSet = false;
114 bool m_mediaTailorPlaybackConfigurationsHasBeenSet = false;
115 bool m_tagsHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace IVS
120} // namespace Aws
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 & 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