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/Connection.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/DescribeConnectionsResponse">AWS 32 * API Reference</a></p> 33 */ 34 class AWS_DATABASEMIGRATIONSERVICE_API DescribeConnectionsResult 35 { 36 public: 37 DescribeConnectionsResult(); 38 DescribeConnectionsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 39 DescribeConnectionsResult& 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 DescribeConnectionsResult& 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 DescribeConnectionsResult& 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 DescribeConnectionsResult& WithMarker(const char* value) { SetMarker(value); return *this;} 90 91 92 /** 93 * <p>A description of the connections.</p> 94 */ GetConnections()95 inline const Aws::Vector<Connection>& GetConnections() const{ return m_connections; } 96 97 /** 98 * <p>A description of the connections.</p> 99 */ SetConnections(const Aws::Vector<Connection> & value)100 inline void SetConnections(const Aws::Vector<Connection>& value) { m_connections = value; } 101 102 /** 103 * <p>A description of the connections.</p> 104 */ SetConnections(Aws::Vector<Connection> && value)105 inline void SetConnections(Aws::Vector<Connection>&& value) { m_connections = std::move(value); } 106 107 /** 108 * <p>A description of the connections.</p> 109 */ WithConnections(const Aws::Vector<Connection> & value)110 inline DescribeConnectionsResult& WithConnections(const Aws::Vector<Connection>& value) { SetConnections(value); return *this;} 111 112 /** 113 * <p>A description of the connections.</p> 114 */ WithConnections(Aws::Vector<Connection> && value)115 inline DescribeConnectionsResult& WithConnections(Aws::Vector<Connection>&& value) { SetConnections(std::move(value)); return *this;} 116 117 /** 118 * <p>A description of the connections.</p> 119 */ AddConnections(const Connection & value)120 inline DescribeConnectionsResult& AddConnections(const Connection& value) { m_connections.push_back(value); return *this; } 121 122 /** 123 * <p>A description of the connections.</p> 124 */ AddConnections(Connection && value)125 inline DescribeConnectionsResult& AddConnections(Connection&& value) { m_connections.push_back(std::move(value)); return *this; } 126 127 private: 128 129 Aws::String m_marker; 130 131 Aws::Vector<Connection> m_connections; 132 }; 133 134 } // namespace Model 135 } // namespace DatabaseMigrationService 136 } // namespace Aws 137