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/AWSVector.h> 9 #include <aws/medialive/model/BatchFailedResultModel.h> 10 #include <aws/medialive/model/BatchSuccessfulResultModel.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 BatchStopResponse<p><h3>See Also:</h3> <a 31 * href="http://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/BatchStopResponse">AWS 32 * API Reference</a></p> 33 */ 34 class AWS_MEDIALIVE_API BatchStopResult 35 { 36 public: 37 BatchStopResult(); 38 BatchStopResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 39 BatchStopResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 40 41 42 /** 43 * List of failed operations 44 */ GetFailed()45 inline const Aws::Vector<BatchFailedResultModel>& GetFailed() const{ return m_failed; } 46 47 /** 48 * List of failed operations 49 */ SetFailed(const Aws::Vector<BatchFailedResultModel> & value)50 inline void SetFailed(const Aws::Vector<BatchFailedResultModel>& value) { m_failed = value; } 51 52 /** 53 * List of failed operations 54 */ SetFailed(Aws::Vector<BatchFailedResultModel> && value)55 inline void SetFailed(Aws::Vector<BatchFailedResultModel>&& value) { m_failed = std::move(value); } 56 57 /** 58 * List of failed operations 59 */ WithFailed(const Aws::Vector<BatchFailedResultModel> & value)60 inline BatchStopResult& WithFailed(const Aws::Vector<BatchFailedResultModel>& value) { SetFailed(value); return *this;} 61 62 /** 63 * List of failed operations 64 */ WithFailed(Aws::Vector<BatchFailedResultModel> && value)65 inline BatchStopResult& WithFailed(Aws::Vector<BatchFailedResultModel>&& value) { SetFailed(std::move(value)); return *this;} 66 67 /** 68 * List of failed operations 69 */ AddFailed(const BatchFailedResultModel & value)70 inline BatchStopResult& AddFailed(const BatchFailedResultModel& value) { m_failed.push_back(value); return *this; } 71 72 /** 73 * List of failed operations 74 */ AddFailed(BatchFailedResultModel && value)75 inline BatchStopResult& AddFailed(BatchFailedResultModel&& value) { m_failed.push_back(std::move(value)); return *this; } 76 77 78 /** 79 * List of successful operations 80 */ GetSuccessful()81 inline const Aws::Vector<BatchSuccessfulResultModel>& GetSuccessful() const{ return m_successful; } 82 83 /** 84 * List of successful operations 85 */ SetSuccessful(const Aws::Vector<BatchSuccessfulResultModel> & value)86 inline void SetSuccessful(const Aws::Vector<BatchSuccessfulResultModel>& value) { m_successful = value; } 87 88 /** 89 * List of successful operations 90 */ SetSuccessful(Aws::Vector<BatchSuccessfulResultModel> && value)91 inline void SetSuccessful(Aws::Vector<BatchSuccessfulResultModel>&& value) { m_successful = std::move(value); } 92 93 /** 94 * List of successful operations 95 */ WithSuccessful(const Aws::Vector<BatchSuccessfulResultModel> & value)96 inline BatchStopResult& WithSuccessful(const Aws::Vector<BatchSuccessfulResultModel>& value) { SetSuccessful(value); return *this;} 97 98 /** 99 * List of successful operations 100 */ WithSuccessful(Aws::Vector<BatchSuccessfulResultModel> && value)101 inline BatchStopResult& WithSuccessful(Aws::Vector<BatchSuccessfulResultModel>&& value) { SetSuccessful(std::move(value)); return *this;} 102 103 /** 104 * List of successful operations 105 */ AddSuccessful(const BatchSuccessfulResultModel & value)106 inline BatchStopResult& AddSuccessful(const BatchSuccessfulResultModel& value) { m_successful.push_back(value); return *this; } 107 108 /** 109 * List of successful operations 110 */ AddSuccessful(BatchSuccessfulResultModel && value)111 inline BatchStopResult& AddSuccessful(BatchSuccessfulResultModel&& value) { m_successful.push_back(std::move(value)); return *this; } 112 113 private: 114 115 Aws::Vector<BatchFailedResultModel> m_failed; 116 117 Aws::Vector<BatchSuccessfulResultModel> m_successful; 118 }; 119 120 } // namespace Model 121 } // namespace MediaLive 122 } // namespace Aws 123