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/servicediscovery/ServiceDiscovery_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSVector.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <aws/servicediscovery/model/OperationSummary.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 ServiceDiscovery 26 { 27 namespace Model 28 { 29 class AWS_SERVICEDISCOVERY_API ListOperationsResult 30 { 31 public: 32 ListOperationsResult(); 33 ListOperationsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 34 ListOperationsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 35 36 37 /** 38 * <p>Summary information about the operations that match the specified 39 * criteria.</p> 40 */ GetOperations()41 inline const Aws::Vector<OperationSummary>& GetOperations() const{ return m_operations; } 42 43 /** 44 * <p>Summary information about the operations that match the specified 45 * criteria.</p> 46 */ SetOperations(const Aws::Vector<OperationSummary> & value)47 inline void SetOperations(const Aws::Vector<OperationSummary>& value) { m_operations = value; } 48 49 /** 50 * <p>Summary information about the operations that match the specified 51 * criteria.</p> 52 */ SetOperations(Aws::Vector<OperationSummary> && value)53 inline void SetOperations(Aws::Vector<OperationSummary>&& value) { m_operations = std::move(value); } 54 55 /** 56 * <p>Summary information about the operations that match the specified 57 * criteria.</p> 58 */ WithOperations(const Aws::Vector<OperationSummary> & value)59 inline ListOperationsResult& WithOperations(const Aws::Vector<OperationSummary>& value) { SetOperations(value); return *this;} 60 61 /** 62 * <p>Summary information about the operations that match the specified 63 * criteria.</p> 64 */ WithOperations(Aws::Vector<OperationSummary> && value)65 inline ListOperationsResult& WithOperations(Aws::Vector<OperationSummary>&& value) { SetOperations(std::move(value)); return *this;} 66 67 /** 68 * <p>Summary information about the operations that match the specified 69 * criteria.</p> 70 */ AddOperations(const OperationSummary & value)71 inline ListOperationsResult& AddOperations(const OperationSummary& value) { m_operations.push_back(value); return *this; } 72 73 /** 74 * <p>Summary information about the operations that match the specified 75 * criteria.</p> 76 */ AddOperations(OperationSummary && value)77 inline ListOperationsResult& AddOperations(OperationSummary&& value) { m_operations.push_back(std::move(value)); return *this; } 78 79 80 /** 81 * <p>If the response contains <code>NextToken</code>, submit another 82 * <code>ListOperations</code> request to get the next group of results. Specify 83 * the value of <code>NextToken</code> from the previous response in the next 84 * request.</p> <p>Cloud Map gets <code>MaxResults</code> operations and 85 * then filters them based on the specified criteria. It's possible that no 86 * operations in the first <code>MaxResults</code> operations matched the specified 87 * criteria but that subsequent groups of <code>MaxResults</code> operations do 88 * contain operations that match the criteria.</p> 89 */ GetNextToken()90 inline const Aws::String& GetNextToken() const{ return m_nextToken; } 91 92 /** 93 * <p>If the response contains <code>NextToken</code>, submit another 94 * <code>ListOperations</code> request to get the next group of results. Specify 95 * the value of <code>NextToken</code> from the previous response in the next 96 * request.</p> <p>Cloud Map gets <code>MaxResults</code> operations and 97 * then filters them based on the specified criteria. It's possible that no 98 * operations in the first <code>MaxResults</code> operations matched the specified 99 * criteria but that subsequent groups of <code>MaxResults</code> operations do 100 * contain operations that match the criteria.</p> 101 */ SetNextToken(const Aws::String & value)102 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } 103 104 /** 105 * <p>If the response contains <code>NextToken</code>, submit another 106 * <code>ListOperations</code> request to get the next group of results. Specify 107 * the value of <code>NextToken</code> from the previous response in the next 108 * request.</p> <p>Cloud Map gets <code>MaxResults</code> operations and 109 * then filters them based on the specified criteria. It's possible that no 110 * operations in the first <code>MaxResults</code> operations matched the specified 111 * criteria but that subsequent groups of <code>MaxResults</code> operations do 112 * contain operations that match the criteria.</p> 113 */ SetNextToken(Aws::String && value)114 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } 115 116 /** 117 * <p>If the response contains <code>NextToken</code>, submit another 118 * <code>ListOperations</code> request to get the next group of results. Specify 119 * the value of <code>NextToken</code> from the previous response in the next 120 * request.</p> <p>Cloud Map gets <code>MaxResults</code> operations and 121 * then filters them based on the specified criteria. It's possible that no 122 * operations in the first <code>MaxResults</code> operations matched the specified 123 * criteria but that subsequent groups of <code>MaxResults</code> operations do 124 * contain operations that match the criteria.</p> 125 */ SetNextToken(const char * value)126 inline void SetNextToken(const char* value) { m_nextToken.assign(value); } 127 128 /** 129 * <p>If the response contains <code>NextToken</code>, submit another 130 * <code>ListOperations</code> request to get the next group of results. Specify 131 * the value of <code>NextToken</code> from the previous response in the next 132 * request.</p> <p>Cloud Map gets <code>MaxResults</code> operations and 133 * then filters them based on the specified criteria. It's possible that no 134 * operations in the first <code>MaxResults</code> operations matched the specified 135 * criteria but that subsequent groups of <code>MaxResults</code> operations do 136 * contain operations that match the criteria.</p> 137 */ WithNextToken(const Aws::String & value)138 inline ListOperationsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} 139 140 /** 141 * <p>If the response contains <code>NextToken</code>, submit another 142 * <code>ListOperations</code> request to get the next group of results. Specify 143 * the value of <code>NextToken</code> from the previous response in the next 144 * request.</p> <p>Cloud Map gets <code>MaxResults</code> operations and 145 * then filters them based on the specified criteria. It's possible that no 146 * operations in the first <code>MaxResults</code> operations matched the specified 147 * criteria but that subsequent groups of <code>MaxResults</code> operations do 148 * contain operations that match the criteria.</p> 149 */ WithNextToken(Aws::String && value)150 inline ListOperationsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} 151 152 /** 153 * <p>If the response contains <code>NextToken</code>, submit another 154 * <code>ListOperations</code> request to get the next group of results. Specify 155 * the value of <code>NextToken</code> from the previous response in the next 156 * request.</p> <p>Cloud Map gets <code>MaxResults</code> operations and 157 * then filters them based on the specified criteria. It's possible that no 158 * operations in the first <code>MaxResults</code> operations matched the specified 159 * criteria but that subsequent groups of <code>MaxResults</code> operations do 160 * contain operations that match the criteria.</p> 161 */ WithNextToken(const char * value)162 inline ListOperationsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} 163 164 private: 165 166 Aws::Vector<OperationSummary> m_operations; 167 168 Aws::String m_nextToken; 169 }; 170 171 } // namespace Model 172 } // namespace ServiceDiscovery 173 } // namespace Aws 174