1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/mediatailor/MediaTailor_EXPORTS.h> 8 #include <aws/mediatailor/model/Transition.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 namespace Utils 14 { 15 namespace Json 16 { 17 class JsonValue; 18 class JsonView; 19 } // namespace Json 20 } // namespace Utils 21 namespace MediaTailor 22 { 23 namespace Model 24 { 25 26 /** 27 * <p>Schedule configuration parameters. A channel must be stopped before changes 28 * can be made to the schedule.</p><p><h3>See Also:</h3> <a 29 * href="http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/ScheduleConfiguration">AWS 30 * API Reference</a></p> 31 */ 32 class AWS_MEDIATAILOR_API ScheduleConfiguration 33 { 34 public: 35 ScheduleConfiguration(); 36 ScheduleConfiguration(Aws::Utils::Json::JsonView jsonValue); 37 ScheduleConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); 38 Aws::Utils::Json::JsonValue Jsonize() const; 39 40 41 /** 42 * <p>Program transition configurations.</p> 43 */ GetTransition()44 inline const Transition& GetTransition() const{ return m_transition; } 45 46 /** 47 * <p>Program transition configurations.</p> 48 */ TransitionHasBeenSet()49 inline bool TransitionHasBeenSet() const { return m_transitionHasBeenSet; } 50 51 /** 52 * <p>Program transition configurations.</p> 53 */ SetTransition(const Transition & value)54 inline void SetTransition(const Transition& value) { m_transitionHasBeenSet = true; m_transition = value; } 55 56 /** 57 * <p>Program transition configurations.</p> 58 */ SetTransition(Transition && value)59 inline void SetTransition(Transition&& value) { m_transitionHasBeenSet = true; m_transition = std::move(value); } 60 61 /** 62 * <p>Program transition configurations.</p> 63 */ WithTransition(const Transition & value)64 inline ScheduleConfiguration& WithTransition(const Transition& value) { SetTransition(value); return *this;} 65 66 /** 67 * <p>Program transition configurations.</p> 68 */ WithTransition(Transition && value)69 inline ScheduleConfiguration& WithTransition(Transition&& value) { SetTransition(std::move(value)); return *this;} 70 71 private: 72 73 Transition m_transition; 74 bool m_transitionHasBeenSet; 75 }; 76 77 } // namespace Model 78 } // namespace MediaTailor 79 } // namespace Aws 80