AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateChannelRequest.h
1
6#pragma once
7#include <aws/mediatailor/MediaTailor_EXPORTS.h>
8#include <aws/mediatailor/MediaTailorRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/mediatailor/model/SlateSource.h>
12#include <aws/mediatailor/model/TimeShiftConfiguration.h>
13#include <aws/mediatailor/model/RequestOutputItem.h>
14#include <utility>
15
16namespace Aws
17{
18namespace MediaTailor
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_MEDIATAILOR_API UpdateChannelRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateChannel"; }
35
36 AWS_MEDIATAILOR_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::Vector<Aws::String>& GetAudiences() const{ return m_audiences; }
44 inline bool AudiencesHasBeenSet() const { return m_audiencesHasBeenSet; }
45 inline void SetAudiences(const Aws::Vector<Aws::String>& value) { m_audiencesHasBeenSet = true; m_audiences = value; }
46 inline void SetAudiences(Aws::Vector<Aws::String>&& value) { m_audiencesHasBeenSet = true; m_audiences = std::move(value); }
47 inline UpdateChannelRequest& WithAudiences(const Aws::Vector<Aws::String>& value) { SetAudiences(value); return *this;}
48 inline UpdateChannelRequest& WithAudiences(Aws::Vector<Aws::String>&& value) { SetAudiences(std::move(value)); return *this;}
49 inline UpdateChannelRequest& AddAudiences(const Aws::String& value) { m_audiencesHasBeenSet = true; m_audiences.push_back(value); return *this; }
50 inline UpdateChannelRequest& AddAudiences(Aws::String&& value) { m_audiencesHasBeenSet = true; m_audiences.push_back(std::move(value)); return *this; }
51 inline UpdateChannelRequest& AddAudiences(const char* value) { m_audiencesHasBeenSet = true; m_audiences.push_back(value); return *this; }
53
55
58 inline const Aws::String& GetChannelName() const{ return m_channelName; }
59 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
60 inline void SetChannelName(const Aws::String& value) { m_channelNameHasBeenSet = true; m_channelName = value; }
61 inline void SetChannelName(Aws::String&& value) { m_channelNameHasBeenSet = true; m_channelName = std::move(value); }
62 inline void SetChannelName(const char* value) { m_channelNameHasBeenSet = true; m_channelName.assign(value); }
63 inline UpdateChannelRequest& WithChannelName(const Aws::String& value) { SetChannelName(value); return *this;}
64 inline UpdateChannelRequest& WithChannelName(Aws::String&& value) { SetChannelName(std::move(value)); return *this;}
65 inline UpdateChannelRequest& WithChannelName(const char* value) { SetChannelName(value); return *this;}
67
69
75 inline const SlateSource& GetFillerSlate() const{ return m_fillerSlate; }
76 inline bool FillerSlateHasBeenSet() const { return m_fillerSlateHasBeenSet; }
77 inline void SetFillerSlate(const SlateSource& value) { m_fillerSlateHasBeenSet = true; m_fillerSlate = value; }
78 inline void SetFillerSlate(SlateSource&& value) { m_fillerSlateHasBeenSet = true; m_fillerSlate = std::move(value); }
79 inline UpdateChannelRequest& WithFillerSlate(const SlateSource& value) { SetFillerSlate(value); return *this;}
80 inline UpdateChannelRequest& WithFillerSlate(SlateSource&& value) { SetFillerSlate(std::move(value)); return *this;}
82
84
87 inline const Aws::Vector<RequestOutputItem>& GetOutputs() const{ return m_outputs; }
88 inline bool OutputsHasBeenSet() const { return m_outputsHasBeenSet; }
89 inline void SetOutputs(const Aws::Vector<RequestOutputItem>& value) { m_outputsHasBeenSet = true; m_outputs = value; }
90 inline void SetOutputs(Aws::Vector<RequestOutputItem>&& value) { m_outputsHasBeenSet = true; m_outputs = std::move(value); }
91 inline UpdateChannelRequest& WithOutputs(const Aws::Vector<RequestOutputItem>& value) { SetOutputs(value); return *this;}
92 inline UpdateChannelRequest& WithOutputs(Aws::Vector<RequestOutputItem>&& value) { SetOutputs(std::move(value)); return *this;}
93 inline UpdateChannelRequest& AddOutputs(const RequestOutputItem& value) { m_outputsHasBeenSet = true; m_outputs.push_back(value); return *this; }
94 inline UpdateChannelRequest& AddOutputs(RequestOutputItem&& value) { m_outputsHasBeenSet = true; m_outputs.push_back(std::move(value)); return *this; }
96
98
102 inline const TimeShiftConfiguration& GetTimeShiftConfiguration() const{ return m_timeShiftConfiguration; }
103 inline bool TimeShiftConfigurationHasBeenSet() const { return m_timeShiftConfigurationHasBeenSet; }
104 inline void SetTimeShiftConfiguration(const TimeShiftConfiguration& value) { m_timeShiftConfigurationHasBeenSet = true; m_timeShiftConfiguration = value; }
105 inline void SetTimeShiftConfiguration(TimeShiftConfiguration&& value) { m_timeShiftConfigurationHasBeenSet = true; m_timeShiftConfiguration = std::move(value); }
109 private:
110
111 Aws::Vector<Aws::String> m_audiences;
112 bool m_audiencesHasBeenSet = false;
113
114 Aws::String m_channelName;
115 bool m_channelNameHasBeenSet = false;
116
117 SlateSource m_fillerSlate;
118 bool m_fillerSlateHasBeenSet = false;
119
121 bool m_outputsHasBeenSet = false;
122
123 TimeShiftConfiguration m_timeShiftConfiguration;
124 bool m_timeShiftConfigurationHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace MediaTailor
129} // namespace Aws
UpdateChannelRequest & WithFillerSlate(SlateSource &&value)
virtual const char * GetServiceRequestName() const override
UpdateChannelRequest & AddAudiences(const Aws::String &value)
const Aws::Vector< Aws::String > & GetAudiences() const
UpdateChannelRequest & WithChannelName(const char *value)
UpdateChannelRequest & WithChannelName(const Aws::String &value)
const Aws::Vector< RequestOutputItem > & GetOutputs() const
void SetAudiences(Aws::Vector< Aws::String > &&value)
UpdateChannelRequest & WithTimeShiftConfiguration(const TimeShiftConfiguration &value)
UpdateChannelRequest & WithOutputs(Aws::Vector< RequestOutputItem > &&value)
void SetAudiences(const Aws::Vector< Aws::String > &value)
UpdateChannelRequest & AddAudiences(Aws::String &&value)
UpdateChannelRequest & AddAudiences(const char *value)
AWS_MEDIATAILOR_API Aws::String SerializePayload() const override
void SetTimeShiftConfiguration(const TimeShiftConfiguration &value)
void SetOutputs(const Aws::Vector< RequestOutputItem > &value)
UpdateChannelRequest & WithOutputs(const Aws::Vector< RequestOutputItem > &value)
UpdateChannelRequest & WithTimeShiftConfiguration(TimeShiftConfiguration &&value)
UpdateChannelRequest & WithAudiences(const Aws::Vector< Aws::String > &value)
UpdateChannelRequest & WithFillerSlate(const SlateSource &value)
void SetOutputs(Aws::Vector< RequestOutputItem > &&value)
UpdateChannelRequest & AddOutputs(RequestOutputItem &&value)
void SetTimeShiftConfiguration(TimeShiftConfiguration &&value)
UpdateChannelRequest & WithChannelName(Aws::String &&value)
UpdateChannelRequest & AddOutputs(const RequestOutputItem &value)
const TimeShiftConfiguration & GetTimeShiftConfiguration() const
UpdateChannelRequest & WithAudiences(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector