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/Reservation.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 ListReservationsResponse<p><h3>See Also:</h3> <a 31 * href="http://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/ListReservationsResponse">AWS 32 * API Reference</a></p> 33 */ 34 class AWS_MEDIALIVE_API ListReservationsResult 35 { 36 public: 37 ListReservationsResult(); 38 ListReservationsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 39 ListReservationsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 40 41 42 /** 43 * Token to retrieve the next page of results 44 */ GetNextToken()45 inline const Aws::String& GetNextToken() const{ return m_nextToken; } 46 47 /** 48 * Token to retrieve the next page of results 49 */ SetNextToken(const Aws::String & value)50 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } 51 52 /** 53 * Token to retrieve the next page of results 54 */ SetNextToken(Aws::String && value)55 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } 56 57 /** 58 * Token to retrieve the next page of results 59 */ SetNextToken(const char * value)60 inline void SetNextToken(const char* value) { m_nextToken.assign(value); } 61 62 /** 63 * Token to retrieve the next page of results 64 */ WithNextToken(const Aws::String & value)65 inline ListReservationsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} 66 67 /** 68 * Token to retrieve the next page of results 69 */ WithNextToken(Aws::String && value)70 inline ListReservationsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} 71 72 /** 73 * Token to retrieve the next page of results 74 */ WithNextToken(const char * value)75 inline ListReservationsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} 76 77 78 /** 79 * List of reservations 80 */ GetReservations()81 inline const Aws::Vector<Reservation>& GetReservations() const{ return m_reservations; } 82 83 /** 84 * List of reservations 85 */ SetReservations(const Aws::Vector<Reservation> & value)86 inline void SetReservations(const Aws::Vector<Reservation>& value) { m_reservations = value; } 87 88 /** 89 * List of reservations 90 */ SetReservations(Aws::Vector<Reservation> && value)91 inline void SetReservations(Aws::Vector<Reservation>&& value) { m_reservations = std::move(value); } 92 93 /** 94 * List of reservations 95 */ WithReservations(const Aws::Vector<Reservation> & value)96 inline ListReservationsResult& WithReservations(const Aws::Vector<Reservation>& value) { SetReservations(value); return *this;} 97 98 /** 99 * List of reservations 100 */ WithReservations(Aws::Vector<Reservation> && value)101 inline ListReservationsResult& WithReservations(Aws::Vector<Reservation>&& value) { SetReservations(std::move(value)); return *this;} 102 103 /** 104 * List of reservations 105 */ AddReservations(const Reservation & value)106 inline ListReservationsResult& AddReservations(const Reservation& value) { m_reservations.push_back(value); return *this; } 107 108 /** 109 * List of reservations 110 */ AddReservations(Reservation && value)111 inline ListReservationsResult& AddReservations(Reservation&& value) { m_reservations.push_back(std::move(value)); return *this; } 112 113 private: 114 115 Aws::String m_nextToken; 116 117 Aws::Vector<Reservation> m_reservations; 118 }; 119 120 } // namespace Model 121 } // namespace MediaLive 122 } // namespace Aws 123