AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/AWSString.h>
10#include <aws/mediatailor/model/SlateSource.h>
11#include <aws/core/utils/memory/stl/AWSVector.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() = default;
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::String& GetChannelName() const { return m_channelName; }
44 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
45 template<typename ChannelNameT = Aws::String>
46 void SetChannelName(ChannelNameT&& value) { m_channelNameHasBeenSet = true; m_channelName = std::forward<ChannelNameT>(value); }
47 template<typename ChannelNameT = Aws::String>
48 UpdateChannelRequest& WithChannelName(ChannelNameT&& value) { SetChannelName(std::forward<ChannelNameT>(value)); return *this;}
50
52
58 inline const SlateSource& GetFillerSlate() const { return m_fillerSlate; }
59 inline bool FillerSlateHasBeenSet() const { return m_fillerSlateHasBeenSet; }
60 template<typename FillerSlateT = SlateSource>
61 void SetFillerSlate(FillerSlateT&& value) { m_fillerSlateHasBeenSet = true; m_fillerSlate = std::forward<FillerSlateT>(value); }
62 template<typename FillerSlateT = SlateSource>
63 UpdateChannelRequest& WithFillerSlate(FillerSlateT&& value) { SetFillerSlate(std::forward<FillerSlateT>(value)); return *this;}
65
67
70 inline const Aws::Vector<RequestOutputItem>& GetOutputs() const { return m_outputs; }
71 inline bool OutputsHasBeenSet() const { return m_outputsHasBeenSet; }
72 template<typename OutputsT = Aws::Vector<RequestOutputItem>>
73 void SetOutputs(OutputsT&& value) { m_outputsHasBeenSet = true; m_outputs = std::forward<OutputsT>(value); }
74 template<typename OutputsT = Aws::Vector<RequestOutputItem>>
75 UpdateChannelRequest& WithOutputs(OutputsT&& value) { SetOutputs(std::forward<OutputsT>(value)); return *this;}
76 template<typename OutputsT = RequestOutputItem>
77 UpdateChannelRequest& AddOutputs(OutputsT&& value) { m_outputsHasBeenSet = true; m_outputs.emplace_back(std::forward<OutputsT>(value)); return *this; }
79
81
85 inline const TimeShiftConfiguration& GetTimeShiftConfiguration() const { return m_timeShiftConfiguration; }
86 inline bool TimeShiftConfigurationHasBeenSet() const { return m_timeShiftConfigurationHasBeenSet; }
87 template<typename TimeShiftConfigurationT = TimeShiftConfiguration>
88 void SetTimeShiftConfiguration(TimeShiftConfigurationT&& value) { m_timeShiftConfigurationHasBeenSet = true; m_timeShiftConfiguration = std::forward<TimeShiftConfigurationT>(value); }
89 template<typename TimeShiftConfigurationT = TimeShiftConfiguration>
90 UpdateChannelRequest& WithTimeShiftConfiguration(TimeShiftConfigurationT&& value) { SetTimeShiftConfiguration(std::forward<TimeShiftConfigurationT>(value)); return *this;}
92
94
97 inline const Aws::Vector<Aws::String>& GetAudiences() const { return m_audiences; }
98 inline bool AudiencesHasBeenSet() const { return m_audiencesHasBeenSet; }
99 template<typename AudiencesT = Aws::Vector<Aws::String>>
100 void SetAudiences(AudiencesT&& value) { m_audiencesHasBeenSet = true; m_audiences = std::forward<AudiencesT>(value); }
101 template<typename AudiencesT = Aws::Vector<Aws::String>>
102 UpdateChannelRequest& WithAudiences(AudiencesT&& value) { SetAudiences(std::forward<AudiencesT>(value)); return *this;}
103 template<typename AudiencesT = Aws::String>
104 UpdateChannelRequest& AddAudiences(AudiencesT&& value) { m_audiencesHasBeenSet = true; m_audiences.emplace_back(std::forward<AudiencesT>(value)); return *this; }
106 private:
107
108 Aws::String m_channelName;
109 bool m_channelNameHasBeenSet = false;
110
111 SlateSource m_fillerSlate;
112 bool m_fillerSlateHasBeenSet = false;
113
115 bool m_outputsHasBeenSet = false;
116
117 TimeShiftConfiguration m_timeShiftConfiguration;
118 bool m_timeShiftConfigurationHasBeenSet = false;
119
120 Aws::Vector<Aws::String> m_audiences;
121 bool m_audiencesHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace MediaTailor
126} // namespace Aws
UpdateChannelRequest & AddAudiences(AudiencesT &&value)
UpdateChannelRequest & WithChannelName(ChannelNameT &&value)
virtual const char * GetServiceRequestName() const override
UpdateChannelRequest & WithOutputs(OutputsT &&value)
void SetTimeShiftConfiguration(TimeShiftConfigurationT &&value)
UpdateChannelRequest & WithAudiences(AudiencesT &&value)
const Aws::Vector< Aws::String > & GetAudiences() const
const Aws::Vector< RequestOutputItem > & GetOutputs() const
UpdateChannelRequest & WithFillerSlate(FillerSlateT &&value)
AWS_MEDIATAILOR_API Aws::String SerializePayload() const override
UpdateChannelRequest & WithTimeShiftConfiguration(TimeShiftConfigurationT &&value)
AWS_MEDIATAILOR_API UpdateChannelRequest()=default
const TimeShiftConfiguration & GetTimeShiftConfiguration() const
UpdateChannelRequest & AddOutputs(OutputsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector