/** * 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 UpdateProgramRequest : public MediaTailorRequest { public: AWS_MEDIATAILOR_API UpdateProgramRequest(); // 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 "UpdateProgram"; } 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 UpdateProgramRequest& WithAdBreaks(const Aws::Vector& value) { SetAdBreaks(value); return *this;} /** *

The ad break configuration settings.

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

The ad break configuration settings.

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

The ad break configuration settings.

*/ inline UpdateProgramRequest& 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 UpdateProgramRequest& WithChannelName(const Aws::String& value) { SetChannelName(value); return *this;} /** *

The name of the channel for this Program.

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

The name of the channel for this Program.

*/ inline UpdateProgramRequest& WithChannelName(const char* value) { SetChannelName(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 UpdateProgramRequest& WithProgramName(const Aws::String& value) { SetProgramName(value); return *this;} /** *

The name of the Program.

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

The name of the Program.

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

The schedule configuration settings.

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

The schedule configuration settings.

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

The schedule configuration settings.

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

The schedule configuration settings.

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

The schedule configuration settings.

*/ inline UpdateProgramRequest& WithScheduleConfiguration(const UpdateProgramScheduleConfiguration& value) { SetScheduleConfiguration(value); return *this;} /** *

The schedule configuration settings.

*/ inline UpdateProgramRequest& WithScheduleConfiguration(UpdateProgramScheduleConfiguration&& value) { SetScheduleConfiguration(std::move(value)); return *this;} private: Aws::Vector m_adBreaks; bool m_adBreaksHasBeenSet = false; Aws::String m_channelName; bool m_channelNameHasBeenSet = false; Aws::String m_programName; bool m_programNameHasBeenSet = false; UpdateProgramScheduleConfiguration m_scheduleConfiguration; bool m_scheduleConfigurationHasBeenSet = false; }; } // namespace Model } // namespace MediaTailor } // namespace Aws