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/dms/DatabaseMigrationService_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <aws/core/utils/memory/stl/AWSVector.h> 10 #include <aws/dms/model/Event.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 DatabaseMigrationService 26 { 27 namespace Model 28 { 29 /** 30 * <p/><p><h3>See Also:</h3> <a 31 * href="http://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeEventsResponse">AWS 32 * API Reference</a></p> 33 */ 34 class AWS_DATABASEMIGRATIONSERVICE_API DescribeEventsResult 35 { 36 public: 37 DescribeEventsResult(); 38 DescribeEventsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 39 DescribeEventsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 40 41 42 /** 43 * <p> An optional pagination token provided by a previous request. If this 44 * parameter is specified, the response includes only records beyond the marker, up 45 * to the value specified by <code>MaxRecords</code>. </p> 46 */ GetMarker()47 inline const Aws::String& GetMarker() const{ return m_marker; } 48 49 /** 50 * <p> An optional pagination token provided by a previous request. If this 51 * parameter is specified, the response includes only records beyond the marker, up 52 * to the value specified by <code>MaxRecords</code>. </p> 53 */ SetMarker(const Aws::String & value)54 inline void SetMarker(const Aws::String& value) { m_marker = value; } 55 56 /** 57 * <p> An optional pagination token provided by a previous request. If this 58 * parameter is specified, the response includes only records beyond the marker, up 59 * to the value specified by <code>MaxRecords</code>. </p> 60 */ SetMarker(Aws::String && value)61 inline void SetMarker(Aws::String&& value) { m_marker = std::move(value); } 62 63 /** 64 * <p> An optional pagination token provided by a previous request. If this 65 * parameter is specified, the response includes only records beyond the marker, up 66 * to the value specified by <code>MaxRecords</code>. </p> 67 */ SetMarker(const char * value)68 inline void SetMarker(const char* value) { m_marker.assign(value); } 69 70 /** 71 * <p> An optional pagination token provided by a previous request. If this 72 * parameter is specified, the response includes only records beyond the marker, up 73 * to the value specified by <code>MaxRecords</code>. </p> 74 */ WithMarker(const Aws::String & value)75 inline DescribeEventsResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;} 76 77 /** 78 * <p> An optional pagination token provided by a previous request. If this 79 * parameter is specified, the response includes only records beyond the marker, up 80 * to the value specified by <code>MaxRecords</code>. </p> 81 */ WithMarker(Aws::String && value)82 inline DescribeEventsResult& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;} 83 84 /** 85 * <p> An optional pagination token provided by a previous request. If this 86 * parameter is specified, the response includes only records beyond the marker, up 87 * to the value specified by <code>MaxRecords</code>. </p> 88 */ WithMarker(const char * value)89 inline DescribeEventsResult& WithMarker(const char* value) { SetMarker(value); return *this;} 90 91 92 /** 93 * <p>The events described.</p> 94 */ GetEvents()95 inline const Aws::Vector<Event>& GetEvents() const{ return m_events; } 96 97 /** 98 * <p>The events described.</p> 99 */ SetEvents(const Aws::Vector<Event> & value)100 inline void SetEvents(const Aws::Vector<Event>& value) { m_events = value; } 101 102 /** 103 * <p>The events described.</p> 104 */ SetEvents(Aws::Vector<Event> && value)105 inline void SetEvents(Aws::Vector<Event>&& value) { m_events = std::move(value); } 106 107 /** 108 * <p>The events described.</p> 109 */ WithEvents(const Aws::Vector<Event> & value)110 inline DescribeEventsResult& WithEvents(const Aws::Vector<Event>& value) { SetEvents(value); return *this;} 111 112 /** 113 * <p>The events described.</p> 114 */ WithEvents(Aws::Vector<Event> && value)115 inline DescribeEventsResult& WithEvents(Aws::Vector<Event>&& value) { SetEvents(std::move(value)); return *this;} 116 117 /** 118 * <p>The events described.</p> 119 */ AddEvents(const Event & value)120 inline DescribeEventsResult& AddEvents(const Event& value) { m_events.push_back(value); return *this; } 121 122 /** 123 * <p>The events described.</p> 124 */ AddEvents(Event && value)125 inline DescribeEventsResult& AddEvents(Event&& value) { m_events.push_back(std::move(value)); return *this; } 126 127 private: 128 129 Aws::String m_marker; 130 131 Aws::Vector<Event> m_events; 132 }; 133 134 } // namespace Model 135 } // namespace DatabaseMigrationService 136 } // namespace Aws 137