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/discovery/ApplicationDiscoveryService_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSVector.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <aws/core/utils/memory/stl/AWSMap.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 ApplicationDiscoveryService 26 { 27 namespace Model 28 { 29 class AWS_APPLICATIONDISCOVERYSERVICE_API ListConfigurationsResult 30 { 31 public: 32 ListConfigurationsResult(); 33 ListConfigurationsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 34 ListConfigurationsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 35 36 37 /** 38 * <p>Returns configuration details, including the configuration ID, attribute 39 * names, and attribute values.</p> 40 */ GetConfigurations()41 inline const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& GetConfigurations() const{ return m_configurations; } 42 43 /** 44 * <p>Returns configuration details, including the configuration ID, attribute 45 * names, and attribute values.</p> 46 */ SetConfigurations(const Aws::Vector<Aws::Map<Aws::String,Aws::String>> & value)47 inline void SetConfigurations(const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& value) { m_configurations = value; } 48 49 /** 50 * <p>Returns configuration details, including the configuration ID, attribute 51 * names, and attribute values.</p> 52 */ SetConfigurations(Aws::Vector<Aws::Map<Aws::String,Aws::String>> && value)53 inline void SetConfigurations(Aws::Vector<Aws::Map<Aws::String, Aws::String>>&& value) { m_configurations = std::move(value); } 54 55 /** 56 * <p>Returns configuration details, including the configuration ID, attribute 57 * names, and attribute values.</p> 58 */ WithConfigurations(const Aws::Vector<Aws::Map<Aws::String,Aws::String>> & value)59 inline ListConfigurationsResult& WithConfigurations(const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& value) { SetConfigurations(value); return *this;} 60 61 /** 62 * <p>Returns configuration details, including the configuration ID, attribute 63 * names, and attribute values.</p> 64 */ WithConfigurations(Aws::Vector<Aws::Map<Aws::String,Aws::String>> && value)65 inline ListConfigurationsResult& WithConfigurations(Aws::Vector<Aws::Map<Aws::String, Aws::String>>&& value) { SetConfigurations(std::move(value)); return *this;} 66 67 /** 68 * <p>Returns configuration details, including the configuration ID, attribute 69 * names, and attribute values.</p> 70 */ AddConfigurations(const Aws::Map<Aws::String,Aws::String> & value)71 inline ListConfigurationsResult& AddConfigurations(const Aws::Map<Aws::String, Aws::String>& value) { m_configurations.push_back(value); return *this; } 72 73 /** 74 * <p>Returns configuration details, including the configuration ID, attribute 75 * names, and attribute values.</p> 76 */ AddConfigurations(Aws::Map<Aws::String,Aws::String> && value)77 inline ListConfigurationsResult& AddConfigurations(Aws::Map<Aws::String, Aws::String>&& value) { m_configurations.push_back(std::move(value)); return *this; } 78 79 80 /** 81 * <p>Token to retrieve the next set of results. For example, if your call to 82 * ListConfigurations returned 100 items, but you set 83 * <code>ListConfigurationsRequest$maxResults</code> to 10, you received a set of 84 * 10 results along with this token. Use this token in the next query to retrieve 85 * the next set of 10.</p> 86 */ GetNextToken()87 inline const Aws::String& GetNextToken() const{ return m_nextToken; } 88 89 /** 90 * <p>Token to retrieve the next set of results. For example, if your call to 91 * ListConfigurations returned 100 items, but you set 92 * <code>ListConfigurationsRequest$maxResults</code> to 10, you received a set of 93 * 10 results along with this token. Use this token in the next query to retrieve 94 * the next set of 10.</p> 95 */ SetNextToken(const Aws::String & value)96 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } 97 98 /** 99 * <p>Token to retrieve the next set of results. For example, if your call to 100 * ListConfigurations returned 100 items, but you set 101 * <code>ListConfigurationsRequest$maxResults</code> to 10, you received a set of 102 * 10 results along with this token. Use this token in the next query to retrieve 103 * the next set of 10.</p> 104 */ SetNextToken(Aws::String && value)105 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } 106 107 /** 108 * <p>Token to retrieve the next set of results. For example, if your call to 109 * ListConfigurations returned 100 items, but you set 110 * <code>ListConfigurationsRequest$maxResults</code> to 10, you received a set of 111 * 10 results along with this token. Use this token in the next query to retrieve 112 * the next set of 10.</p> 113 */ SetNextToken(const char * value)114 inline void SetNextToken(const char* value) { m_nextToken.assign(value); } 115 116 /** 117 * <p>Token to retrieve the next set of results. For example, if your call to 118 * ListConfigurations returned 100 items, but you set 119 * <code>ListConfigurationsRequest$maxResults</code> to 10, you received a set of 120 * 10 results along with this token. Use this token in the next query to retrieve 121 * the next set of 10.</p> 122 */ WithNextToken(const Aws::String & value)123 inline ListConfigurationsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} 124 125 /** 126 * <p>Token to retrieve the next set of results. For example, if your call to 127 * ListConfigurations returned 100 items, but you set 128 * <code>ListConfigurationsRequest$maxResults</code> to 10, you received a set of 129 * 10 results along with this token. Use this token in the next query to retrieve 130 * the next set of 10.</p> 131 */ WithNextToken(Aws::String && value)132 inline ListConfigurationsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} 133 134 /** 135 * <p>Token to retrieve the next set of results. For example, if your call to 136 * ListConfigurations returned 100 items, but you set 137 * <code>ListConfigurationsRequest$maxResults</code> to 10, you received a set of 138 * 10 results along with this token. Use this token in the next query to retrieve 139 * the next set of 10.</p> 140 */ WithNextToken(const char * value)141 inline ListConfigurationsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} 142 143 private: 144 145 Aws::Vector<Aws::Map<Aws::String, Aws::String>> m_configurations; 146 147 Aws::String m_nextToken; 148 }; 149 150 } // namespace Model 151 } // namespace ApplicationDiscoveryService 152 } // namespace Aws 153