AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateProgramRequest.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/UpdateProgramScheduleConfiguration.h>
12#include <aws/mediatailor/model/AdBreak.h>
13#include <aws/mediatailor/model/AudienceMedia.h>
14#include <utility>
15
16namespace Aws
17{
18namespace MediaTailor
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_MEDIATAILOR_API UpdateProgramRequest();
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 "UpdateProgram"; }
35
36 AWS_MEDIATAILOR_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::Vector<AdBreak>& GetAdBreaks() const{ return m_adBreaks; }
44 inline bool AdBreaksHasBeenSet() const { return m_adBreaksHasBeenSet; }
45 inline void SetAdBreaks(const Aws::Vector<AdBreak>& value) { m_adBreaksHasBeenSet = true; m_adBreaks = value; }
46 inline void SetAdBreaks(Aws::Vector<AdBreak>&& value) { m_adBreaksHasBeenSet = true; m_adBreaks = std::move(value); }
47 inline UpdateProgramRequest& WithAdBreaks(const Aws::Vector<AdBreak>& value) { SetAdBreaks(value); return *this;}
48 inline UpdateProgramRequest& WithAdBreaks(Aws::Vector<AdBreak>&& value) { SetAdBreaks(std::move(value)); return *this;}
49 inline UpdateProgramRequest& AddAdBreaks(const AdBreak& value) { m_adBreaksHasBeenSet = true; m_adBreaks.push_back(value); return *this; }
50 inline UpdateProgramRequest& AddAdBreaks(AdBreak&& value) { m_adBreaksHasBeenSet = true; m_adBreaks.push_back(std::move(value)); return *this; }
52
54
57 inline const Aws::Vector<AudienceMedia>& GetAudienceMedia() const{ return m_audienceMedia; }
58 inline bool AudienceMediaHasBeenSet() const { return m_audienceMediaHasBeenSet; }
59 inline void SetAudienceMedia(const Aws::Vector<AudienceMedia>& value) { m_audienceMediaHasBeenSet = true; m_audienceMedia = value; }
60 inline void SetAudienceMedia(Aws::Vector<AudienceMedia>&& value) { m_audienceMediaHasBeenSet = true; m_audienceMedia = std::move(value); }
62 inline UpdateProgramRequest& WithAudienceMedia(Aws::Vector<AudienceMedia>&& value) { SetAudienceMedia(std::move(value)); return *this;}
63 inline UpdateProgramRequest& AddAudienceMedia(const AudienceMedia& value) { m_audienceMediaHasBeenSet = true; m_audienceMedia.push_back(value); return *this; }
64 inline UpdateProgramRequest& AddAudienceMedia(AudienceMedia&& value) { m_audienceMediaHasBeenSet = true; m_audienceMedia.push_back(std::move(value)); return *this; }
66
68
71 inline const Aws::String& GetChannelName() const{ return m_channelName; }
72 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
73 inline void SetChannelName(const Aws::String& value) { m_channelNameHasBeenSet = true; m_channelName = value; }
74 inline void SetChannelName(Aws::String&& value) { m_channelNameHasBeenSet = true; m_channelName = std::move(value); }
75 inline void SetChannelName(const char* value) { m_channelNameHasBeenSet = true; m_channelName.assign(value); }
76 inline UpdateProgramRequest& WithChannelName(const Aws::String& value) { SetChannelName(value); return *this;}
77 inline UpdateProgramRequest& WithChannelName(Aws::String&& value) { SetChannelName(std::move(value)); return *this;}
78 inline UpdateProgramRequest& WithChannelName(const char* value) { SetChannelName(value); return *this;}
80
82
85 inline const Aws::String& GetProgramName() const{ return m_programName; }
86 inline bool ProgramNameHasBeenSet() const { return m_programNameHasBeenSet; }
87 inline void SetProgramName(const Aws::String& value) { m_programNameHasBeenSet = true; m_programName = value; }
88 inline void SetProgramName(Aws::String&& value) { m_programNameHasBeenSet = true; m_programName = std::move(value); }
89 inline void SetProgramName(const char* value) { m_programNameHasBeenSet = true; m_programName.assign(value); }
90 inline UpdateProgramRequest& WithProgramName(const Aws::String& value) { SetProgramName(value); return *this;}
91 inline UpdateProgramRequest& WithProgramName(Aws::String&& value) { SetProgramName(std::move(value)); return *this;}
92 inline UpdateProgramRequest& WithProgramName(const char* value) { SetProgramName(value); return *this;}
94
96
99 inline const UpdateProgramScheduleConfiguration& GetScheduleConfiguration() const{ return m_scheduleConfiguration; }
100 inline bool ScheduleConfigurationHasBeenSet() const { return m_scheduleConfigurationHasBeenSet; }
101 inline void SetScheduleConfiguration(const UpdateProgramScheduleConfiguration& value) { m_scheduleConfigurationHasBeenSet = true; m_scheduleConfiguration = value; }
102 inline void SetScheduleConfiguration(UpdateProgramScheduleConfiguration&& value) { m_scheduleConfigurationHasBeenSet = true; m_scheduleConfiguration = std::move(value); }
106 private:
107
108 Aws::Vector<AdBreak> m_adBreaks;
109 bool m_adBreaksHasBeenSet = false;
110
111 Aws::Vector<AudienceMedia> m_audienceMedia;
112 bool m_audienceMediaHasBeenSet = false;
113
114 Aws::String m_channelName;
115 bool m_channelNameHasBeenSet = false;
116
117 Aws::String m_programName;
118 bool m_programNameHasBeenSet = false;
119
120 UpdateProgramScheduleConfiguration m_scheduleConfiguration;
121 bool m_scheduleConfigurationHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace MediaTailor
126} // namespace Aws
void SetScheduleConfiguration(UpdateProgramScheduleConfiguration &&value)
UpdateProgramRequest & WithProgramName(const char *value)
UpdateProgramRequest & WithAudienceMedia(const Aws::Vector< AudienceMedia > &value)
UpdateProgramRequest & WithChannelName(const char *value)
void SetScheduleConfiguration(const UpdateProgramScheduleConfiguration &value)
const Aws::Vector< AdBreak > & GetAdBreaks() const
UpdateProgramRequest & AddAudienceMedia(AudienceMedia &&value)
UpdateProgramRequest & WithProgramName(const Aws::String &value)
UpdateProgramRequest & WithProgramName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
UpdateProgramRequest & AddAdBreaks(const AdBreak &value)
UpdateProgramRequest & WithScheduleConfiguration(UpdateProgramScheduleConfiguration &&value)
UpdateProgramRequest & WithAdBreaks(const Aws::Vector< AdBreak > &value)
UpdateProgramRequest & AddAudienceMedia(const AudienceMedia &value)
UpdateProgramRequest & AddAdBreaks(AdBreak &&value)
void SetAdBreaks(Aws::Vector< AdBreak > &&value)
void SetAudienceMedia(Aws::Vector< AudienceMedia > &&value)
UpdateProgramRequest & WithAudienceMedia(Aws::Vector< AudienceMedia > &&value)
AWS_MEDIATAILOR_API Aws::String SerializePayload() const override
void SetAudienceMedia(const Aws::Vector< AudienceMedia > &value)
UpdateProgramRequest & WithChannelName(const Aws::String &value)
UpdateProgramRequest & WithScheduleConfiguration(const UpdateProgramScheduleConfiguration &value)
UpdateProgramRequest & WithChannelName(Aws::String &&value)
void SetAdBreaks(const Aws::Vector< AdBreak > &value)
const Aws::Vector< AudienceMedia > & GetAudienceMedia() const
const UpdateProgramScheduleConfiguration & GetScheduleConfiguration() const
UpdateProgramRequest & WithAdBreaks(Aws::Vector< AdBreak > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector