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/medialive/MediaLive_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <aws/core/utils/memory/stl/AWSVector.h> 10 #include <aws/medialive/model/ScheduleAction.h> 11 #include <utility> 12 13 namespace Aws 14 { 15 template<typename RESULT_TYPE> 16 class AmazonWebServiceResult; 17 18 namespace Utils 19 { 20 namespace Json 21 { 22 class JsonValue; 23 } // namespace Json 24 } // namespace Utils 25 namespace MediaLive 26 { 27 namespace Model 28 { 29 /** 30 * Placeholder documentation for DescribeScheduleResponse<p><h3>See Also:</h3> <a 31 * href="http://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/DescribeScheduleResponse">AWS 32 * API Reference</a></p> 33 */ 34 class AWS_MEDIALIVE_API DescribeScheduleResult 35 { 36 public: 37 DescribeScheduleResult(); 38 DescribeScheduleResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 39 DescribeScheduleResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 40 41 42 /** 43 * The next token; for use in pagination. 44 */ GetNextToken()45 inline const Aws::String& GetNextToken() const{ return m_nextToken; } 46 47 /** 48 * The next token; for use in pagination. 49 */ SetNextToken(const Aws::String & value)50 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } 51 52 /** 53 * The next token; for use in pagination. 54 */ SetNextToken(Aws::String && value)55 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } 56 57 /** 58 * The next token; for use in pagination. 59 */ SetNextToken(const char * value)60 inline void SetNextToken(const char* value) { m_nextToken.assign(value); } 61 62 /** 63 * The next token; for use in pagination. 64 */ WithNextToken(const Aws::String & value)65 inline DescribeScheduleResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} 66 67 /** 68 * The next token; for use in pagination. 69 */ WithNextToken(Aws::String && value)70 inline DescribeScheduleResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} 71 72 /** 73 * The next token; for use in pagination. 74 */ WithNextToken(const char * value)75 inline DescribeScheduleResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} 76 77 78 /** 79 * The list of actions in the schedule. 80 */ GetScheduleActions()81 inline const Aws::Vector<ScheduleAction>& GetScheduleActions() const{ return m_scheduleActions; } 82 83 /** 84 * The list of actions in the schedule. 85 */ SetScheduleActions(const Aws::Vector<ScheduleAction> & value)86 inline void SetScheduleActions(const Aws::Vector<ScheduleAction>& value) { m_scheduleActions = value; } 87 88 /** 89 * The list of actions in the schedule. 90 */ SetScheduleActions(Aws::Vector<ScheduleAction> && value)91 inline void SetScheduleActions(Aws::Vector<ScheduleAction>&& value) { m_scheduleActions = std::move(value); } 92 93 /** 94 * The list of actions in the schedule. 95 */ WithScheduleActions(const Aws::Vector<ScheduleAction> & value)96 inline DescribeScheduleResult& WithScheduleActions(const Aws::Vector<ScheduleAction>& value) { SetScheduleActions(value); return *this;} 97 98 /** 99 * The list of actions in the schedule. 100 */ WithScheduleActions(Aws::Vector<ScheduleAction> && value)101 inline DescribeScheduleResult& WithScheduleActions(Aws::Vector<ScheduleAction>&& value) { SetScheduleActions(std::move(value)); return *this;} 102 103 /** 104 * The list of actions in the schedule. 105 */ AddScheduleActions(const ScheduleAction & value)106 inline DescribeScheduleResult& AddScheduleActions(const ScheduleAction& value) { m_scheduleActions.push_back(value); return *this; } 107 108 /** 109 * The list of actions in the schedule. 110 */ AddScheduleActions(ScheduleAction && value)111 inline DescribeScheduleResult& AddScheduleActions(ScheduleAction&& value) { m_scheduleActions.push_back(std::move(value)); return *this; } 112 113 private: 114 115 Aws::String m_nextToken; 116 117 Aws::Vector<ScheduleAction> m_scheduleActions; 118 }; 119 120 } // namespace Model 121 } // namespace MediaLive 122 } // namespace Aws 123