/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace MediaTailor { namespace Model { /** */ class CreateProgramRequest : public MediaTailorRequest { public: AWS_MEDIATAILOR_API CreateProgramRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateProgram"; } AWS_MEDIATAILOR_API Aws::String SerializePayload() const override; /** *

The ad break configuration settings.

*/ inline const Aws::Vector& GetAdBreaks() const{ return m_adBreaks; } /** *

The ad break configuration settings.

*/ inline bool AdBreaksHasBeenSet() const { return m_adBreaksHasBeenSet; } /** *

The ad break configuration settings.

*/ inline void SetAdBreaks(const Aws::Vector& value) { m_adBreaksHasBeenSet = true; m_adBreaks = value; } /** *

The ad break configuration settings.

*/ inline void SetAdBreaks(Aws::Vector&& value) { m_adBreaksHasBeenSet = true; m_adBreaks = std::move(value); } /** *

The ad break configuration settings.

*/ inline CreateProgramRequest& WithAdBreaks(const Aws::Vector& value) { SetAdBreaks(value); return *this;} /** *

The ad break configuration settings.

*/ inline CreateProgramRequest& WithAdBreaks(Aws::Vector&& value) { SetAdBreaks(std::move(value)); return *this;} /** *

The ad break configuration settings.

*/ inline CreateProgramRequest& AddAdBreaks(const AdBreak& value) { m_adBreaksHasBeenSet = true; m_adBreaks.push_back(value); return *this; } /** *

The ad break configuration settings.

*/ inline CreateProgramRequest& AddAdBreaks(AdBreak&& value) { m_adBreaksHasBeenSet = true; m_adBreaks.push_back(std::move(value)); return *this; } /** *

The name of the channel for this Program.

*/ inline const Aws::String& GetChannelName() const{ return m_channelName; } /** *

The name of the channel for this Program.

*/ inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; } /** *

The name of the channel for this Program.

*/ inline void SetChannelName(const Aws::String& value) { m_channelNameHasBeenSet = true; m_channelName = value; } /** *

The name of the channel for this Program.

*/ inline void SetChannelName(Aws::String&& value) { m_channelNameHasBeenSet = true; m_channelName = std::move(value); } /** *

The name of the channel for this Program.

*/ inline void SetChannelName(const char* value) { m_channelNameHasBeenSet = true; m_channelName.assign(value); } /** *

The name of the channel for this Program.

*/ inline CreateProgramRequest& WithChannelName(const Aws::String& value) { SetChannelName(value); return *this;} /** *

The name of the channel for this Program.

*/ inline CreateProgramRequest& WithChannelName(Aws::String&& value) { SetChannelName(std::move(value)); return *this;} /** *

The name of the channel for this Program.

*/ inline CreateProgramRequest& WithChannelName(const char* value) { SetChannelName(value); return *this;} /** *

The name of the LiveSource for this Program.

*/ inline const Aws::String& GetLiveSourceName() const{ return m_liveSourceName; } /** *

The name of the LiveSource for this Program.

*/ inline bool LiveSourceNameHasBeenSet() const { return m_liveSourceNameHasBeenSet; } /** *

The name of the LiveSource for this Program.

*/ inline void SetLiveSourceName(const Aws::String& value) { m_liveSourceNameHasBeenSet = true; m_liveSourceName = value; } /** *

The name of the LiveSource for this Program.

*/ inline void SetLiveSourceName(Aws::String&& value) { m_liveSourceNameHasBeenSet = true; m_liveSourceName = std::move(value); } /** *

The name of the LiveSource for this Program.

*/ inline void SetLiveSourceName(const char* value) { m_liveSourceNameHasBeenSet = true; m_liveSourceName.assign(value); } /** *

The name of the LiveSource for this Program.

*/ inline CreateProgramRequest& WithLiveSourceName(const Aws::String& value) { SetLiveSourceName(value); return *this;} /** *

The name of the LiveSource for this Program.

*/ inline CreateProgramRequest& WithLiveSourceName(Aws::String&& value) { SetLiveSourceName(std::move(value)); return *this;} /** *

The name of the LiveSource for this Program.

*/ inline CreateProgramRequest& WithLiveSourceName(const char* value) { SetLiveSourceName(value); return *this;} /** *

The name of the Program.

*/ inline const Aws::String& GetProgramName() const{ return m_programName; } /** *

The name of the Program.

*/ inline bool ProgramNameHasBeenSet() const { return m_programNameHasBeenSet; } /** *

The name of the Program.

*/ inline void SetProgramName(const Aws::String& value) { m_programNameHasBeenSet = true; m_programName = value; } /** *

The name of the Program.

*/ inline void SetProgramName(Aws::String&& value) { m_programNameHasBeenSet = true; m_programName = std::move(value); } /** *

The name of the Program.

*/ inline void SetProgramName(const char* value) { m_programNameHasBeenSet = true; m_programName.assign(value); } /** *

The name of the Program.

*/ inline CreateProgramRequest& WithProgramName(const Aws::String& value) { SetProgramName(value); return *this;} /** *

The name of the Program.

*/ inline CreateProgramRequest& WithProgramName(Aws::String&& value) { SetProgramName(std::move(value)); return *this;} /** *

The name of the Program.

*/ inline CreateProgramRequest& WithProgramName(const char* value) { SetProgramName(value); return *this;} /** *

The schedule configuration settings.

*/ inline const ScheduleConfiguration& GetScheduleConfiguration() const{ return m_scheduleConfiguration; } /** *

The schedule configuration settings.

*/ inline bool ScheduleConfigurationHasBeenSet() const { return m_scheduleConfigurationHasBeenSet; } /** *

The schedule configuration settings.

*/ inline void SetScheduleConfiguration(const ScheduleConfiguration& value) { m_scheduleConfigurationHasBeenSet = true; m_scheduleConfiguration = value; } /** *

The schedule configuration settings.

*/ inline void SetScheduleConfiguration(ScheduleConfiguration&& value) { m_scheduleConfigurationHasBeenSet = true; m_scheduleConfiguration = std::move(value); } /** *

The schedule configuration settings.

*/ inline CreateProgramRequest& WithScheduleConfiguration(const ScheduleConfiguration& value) { SetScheduleConfiguration(value); return *this;} /** *

The schedule configuration settings.

*/ inline CreateProgramRequest& WithScheduleConfiguration(ScheduleConfiguration&& value) { SetScheduleConfiguration(std::move(value)); return *this;} /** *

The name of the source location.

*/ inline const Aws::String& GetSourceLocationName() const{ return m_sourceLocationName; } /** *

The name of the source location.

*/ inline bool SourceLocationNameHasBeenSet() const { return m_sourceLocationNameHasBeenSet; } /** *

The name of the source location.

*/ inline void SetSourceLocationName(const Aws::String& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = value; } /** *

The name of the source location.

*/ inline void SetSourceLocationName(Aws::String&& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = std::move(value); } /** *

The name of the source location.

*/ inline void SetSourceLocationName(const char* value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName.assign(value); } /** *

The name of the source location.

*/ inline CreateProgramRequest& WithSourceLocationName(const Aws::String& value) { SetSourceLocationName(value); return *this;} /** *

The name of the source location.

*/ inline CreateProgramRequest& WithSourceLocationName(Aws::String&& value) { SetSourceLocationName(std::move(value)); return *this;} /** *

The name of the source location.

*/ inline CreateProgramRequest& WithSourceLocationName(const char* value) { SetSourceLocationName(value); return *this;} /** *

The name that's used to refer to a VOD source.

*/ inline const Aws::String& GetVodSourceName() const{ return m_vodSourceName; } /** *

The name that's used to refer to a VOD source.

*/ inline bool VodSourceNameHasBeenSet() const { return m_vodSourceNameHasBeenSet; } /** *

The name that's used to refer to a VOD source.

*/ inline void SetVodSourceName(const Aws::String& value) { m_vodSourceNameHasBeenSet = true; m_vodSourceName = value; } /** *

The name that's used to refer to a VOD source.

*/ inline void SetVodSourceName(Aws::String&& value) { m_vodSourceNameHasBeenSet = true; m_vodSourceName = std::move(value); } /** *

The name that's used to refer to a VOD source.

*/ inline void SetVodSourceName(const char* value) { m_vodSourceNameHasBeenSet = true; m_vodSourceName.assign(value); } /** *

The name that's used to refer to a VOD source.

*/ inline CreateProgramRequest& WithVodSourceName(const Aws::String& value) { SetVodSourceName(value); return *this;} /** *

The name that's used to refer to a VOD source.

*/ inline CreateProgramRequest& WithVodSourceName(Aws::String&& value) { SetVodSourceName(std::move(value)); return *this;} /** *

The name that's used to refer to a VOD source.

*/ inline CreateProgramRequest& WithVodSourceName(const char* value) { SetVodSourceName(value); return *this;} private: Aws::Vector m_adBreaks; bool m_adBreaksHasBeenSet = false; Aws::String m_channelName; bool m_channelNameHasBeenSet = false; Aws::String m_liveSourceName; bool m_liveSourceNameHasBeenSet = false; Aws::String m_programName; bool m_programNameHasBeenSet = false; ScheduleConfiguration m_scheduleConfiguration; bool m_scheduleConfigurationHasBeenSet = false; Aws::String m_sourceLocationName; bool m_sourceLocationNameHasBeenSet = false; Aws::String m_vodSourceName; bool m_vodSourceNameHasBeenSet = false; }; } // namespace Model } // namespace MediaTailor } // namespace Aws