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/managedblockchain/ManagedBlockchain_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSVector.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <aws/managedblockchain/model/NetworkSummary.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 ManagedBlockchain 26 { 27 namespace Model 28 { 29 class AWS_MANAGEDBLOCKCHAIN_API ListNetworksResult 30 { 31 public: 32 ListNetworksResult(); 33 ListNetworksResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 34 ListNetworksResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 35 36 37 /** 38 * <p>An array of <code>NetworkSummary</code> objects that contain configuration 39 * properties for each network.</p> 40 */ GetNetworks()41 inline const Aws::Vector<NetworkSummary>& GetNetworks() const{ return m_networks; } 42 43 /** 44 * <p>An array of <code>NetworkSummary</code> objects that contain configuration 45 * properties for each network.</p> 46 */ SetNetworks(const Aws::Vector<NetworkSummary> & value)47 inline void SetNetworks(const Aws::Vector<NetworkSummary>& value) { m_networks = value; } 48 49 /** 50 * <p>An array of <code>NetworkSummary</code> objects that contain configuration 51 * properties for each network.</p> 52 */ SetNetworks(Aws::Vector<NetworkSummary> && value)53 inline void SetNetworks(Aws::Vector<NetworkSummary>&& value) { m_networks = std::move(value); } 54 55 /** 56 * <p>An array of <code>NetworkSummary</code> objects that contain configuration 57 * properties for each network.</p> 58 */ WithNetworks(const Aws::Vector<NetworkSummary> & value)59 inline ListNetworksResult& WithNetworks(const Aws::Vector<NetworkSummary>& value) { SetNetworks(value); return *this;} 60 61 /** 62 * <p>An array of <code>NetworkSummary</code> objects that contain configuration 63 * properties for each network.</p> 64 */ WithNetworks(Aws::Vector<NetworkSummary> && value)65 inline ListNetworksResult& WithNetworks(Aws::Vector<NetworkSummary>&& value) { SetNetworks(std::move(value)); return *this;} 66 67 /** 68 * <p>An array of <code>NetworkSummary</code> objects that contain configuration 69 * properties for each network.</p> 70 */ AddNetworks(const NetworkSummary & value)71 inline ListNetworksResult& AddNetworks(const NetworkSummary& value) { m_networks.push_back(value); return *this; } 72 73 /** 74 * <p>An array of <code>NetworkSummary</code> objects that contain configuration 75 * properties for each network.</p> 76 */ AddNetworks(NetworkSummary && value)77 inline ListNetworksResult& AddNetworks(NetworkSummary&& value) { m_networks.push_back(std::move(value)); return *this; } 78 79 80 /** 81 * <p>The pagination token that indicates the next set of results to retrieve.</p> 82 */ GetNextToken()83 inline const Aws::String& GetNextToken() const{ return m_nextToken; } 84 85 /** 86 * <p>The pagination token that indicates the next set of results to retrieve.</p> 87 */ SetNextToken(const Aws::String & value)88 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } 89 90 /** 91 * <p>The pagination token that indicates the next set of results to retrieve.</p> 92 */ SetNextToken(Aws::String && value)93 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } 94 95 /** 96 * <p>The pagination token that indicates the next set of results to retrieve.</p> 97 */ SetNextToken(const char * value)98 inline void SetNextToken(const char* value) { m_nextToken.assign(value); } 99 100 /** 101 * <p>The pagination token that indicates the next set of results to retrieve.</p> 102 */ WithNextToken(const Aws::String & value)103 inline ListNetworksResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} 104 105 /** 106 * <p>The pagination token that indicates the next set of results to retrieve.</p> 107 */ WithNextToken(Aws::String && value)108 inline ListNetworksResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} 109 110 /** 111 * <p>The pagination token that indicates the next set of results to retrieve.</p> 112 */ WithNextToken(const char * value)113 inline ListNetworksResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} 114 115 private: 116 117 Aws::Vector<NetworkSummary> m_networks; 118 119 Aws::String m_nextToken; 120 }; 121 122 } // namespace Model 123 } // namespace ManagedBlockchain 124 } // namespace Aws 125