AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
UpdateAdConfigurationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ivs/IVSRequest.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 IVS {
18namespace Model {
19
23 public:
24 AWS_IVS_API UpdateAdConfigurationRequest() = 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 "UpdateAdConfiguration"; }
31
32 AWS_IVS_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetArn() const { return m_arn; }
39 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
40 template <typename ArnT = Aws::String>
41 void SetArn(ArnT&& value) {
42 m_arnHasBeenSet = true;
43 m_arn = std::forward<ArnT>(value);
44 }
45 template <typename ArnT = Aws::String>
47 SetArn(std::forward<ArnT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template <typename NameT = Aws::String>
59 void SetName(NameT&& value) {
60 m_nameHasBeenSet = true;
61 m_name = std::forward<NameT>(value);
62 }
63 template <typename NameT = Aws::String>
65 SetName(std::forward<NameT>(value));
66 return *this;
67 }
69
71
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 UpdateAdConfigurationRequest& WithMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT&& value) {
89 SetMediaTailorPlaybackConfigurations(std::forward<MediaTailorPlaybackConfigurationsT>(value));
90 return *this;
91 }
92 template <typename MediaTailorPlaybackConfigurationsT = MediaTailorPlaybackConfiguration>
93 UpdateAdConfigurationRequest& AddMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT&& value) {
94 m_mediaTailorPlaybackConfigurationsHasBeenSet = true;
95 m_mediaTailorPlaybackConfigurations.emplace_back(std::forward<MediaTailorPlaybackConfigurationsT>(value));
96 return *this;
97 }
99
101
105 inline const PostRollConfiguration& GetPostRollConfiguration() const { return m_postRollConfiguration; }
106 inline bool PostRollConfigurationHasBeenSet() const { return m_postRollConfigurationHasBeenSet; }
107 template <typename PostRollConfigurationT = PostRollConfiguration>
108 void SetPostRollConfiguration(PostRollConfigurationT&& value) {
109 m_postRollConfigurationHasBeenSet = true;
110 m_postRollConfiguration = std::forward<PostRollConfigurationT>(value);
111 }
112 template <typename PostRollConfigurationT = PostRollConfiguration>
114 SetPostRollConfiguration(std::forward<PostRollConfigurationT>(value));
115 return *this;
116 }
118 private:
119 Aws::String m_arn;
120
121 Aws::String m_name;
122
123 Aws::Vector<MediaTailorPlaybackConfiguration> m_mediaTailorPlaybackConfigurations;
124
125 PostRollConfiguration m_postRollConfiguration;
126 bool m_arnHasBeenSet = false;
127 bool m_nameHasBeenSet = false;
128 bool m_mediaTailorPlaybackConfigurationsHasBeenSet = false;
129 bool m_postRollConfigurationHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace IVS
134} // namespace Aws
UpdateAdConfigurationRequest & AddMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT &&value)
const PostRollConfiguration & GetPostRollConfiguration() const
void SetMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT &&value)
AWS_IVS_API UpdateAdConfigurationRequest()=default
void SetPostRollConfiguration(PostRollConfigurationT &&value)
UpdateAdConfigurationRequest & WithArn(ArnT &&value)
UpdateAdConfigurationRequest & WithPostRollConfiguration(PostRollConfigurationT &&value)
AWS_IVS_API Aws::String SerializePayload() const override
const Aws::Vector< MediaTailorPlaybackConfiguration > & GetMediaTailorPlaybackConfigurations() const
virtual const char * GetServiceRequestName() const override
UpdateAdConfigurationRequest & WithMediaTailorPlaybackConfigurations(MediaTailorPlaybackConfigurationsT &&value)
UpdateAdConfigurationRequest & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector