/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace ApplicationDiscoveryService { namespace Model { class ListServerNeighborsResult { public: AWS_APPLICATIONDISCOVERYSERVICE_API ListServerNeighborsResult(); AWS_APPLICATIONDISCOVERYSERVICE_API ListServerNeighborsResult(const Aws::AmazonWebServiceResult& result); AWS_APPLICATIONDISCOVERYSERVICE_API ListServerNeighborsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

List of distinct servers that are one hop away from the given server.

*/ inline const Aws::Vector& GetNeighbors() const{ return m_neighbors; } /** *

List of distinct servers that are one hop away from the given server.

*/ inline void SetNeighbors(const Aws::Vector& value) { m_neighbors = value; } /** *

List of distinct servers that are one hop away from the given server.

*/ inline void SetNeighbors(Aws::Vector&& value) { m_neighbors = std::move(value); } /** *

List of distinct servers that are one hop away from the given server.

*/ inline ListServerNeighborsResult& WithNeighbors(const Aws::Vector& value) { SetNeighbors(value); return *this;} /** *

List of distinct servers that are one hop away from the given server.

*/ inline ListServerNeighborsResult& WithNeighbors(Aws::Vector&& value) { SetNeighbors(std::move(value)); return *this;} /** *

List of distinct servers that are one hop away from the given server.

*/ inline ListServerNeighborsResult& AddNeighbors(const NeighborConnectionDetail& value) { m_neighbors.push_back(value); return *this; } /** *

List of distinct servers that are one hop away from the given server.

*/ inline ListServerNeighborsResult& AddNeighbors(NeighborConnectionDetail&& value) { m_neighbors.push_back(std::move(value)); return *this; } /** *

Token to retrieve the next set of results. For example, if you specified 100 * IDs for ListServerNeighborsRequest$neighborConfigurationIds but set * ListServerNeighborsRequest$maxResults to 10, you received a set of * 10 results along with this token. Use this token in the next query to retrieve * the next set of 10.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

Token to retrieve the next set of results. For example, if you specified 100 * IDs for ListServerNeighborsRequest$neighborConfigurationIds but set * ListServerNeighborsRequest$maxResults to 10, you received a set of * 10 results along with this token. Use this token in the next query to retrieve * the next set of 10.

*/ inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } /** *

Token to retrieve the next set of results. For example, if you specified 100 * IDs for ListServerNeighborsRequest$neighborConfigurationIds but set * ListServerNeighborsRequest$maxResults to 10, you received a set of * 10 results along with this token. Use this token in the next query to retrieve * the next set of 10.

*/ inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } /** *

Token to retrieve the next set of results. For example, if you specified 100 * IDs for ListServerNeighborsRequest$neighborConfigurationIds but set * ListServerNeighborsRequest$maxResults to 10, you received a set of * 10 results along with this token. Use this token in the next query to retrieve * the next set of 10.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

Token to retrieve the next set of results. For example, if you specified 100 * IDs for ListServerNeighborsRequest$neighborConfigurationIds but set * ListServerNeighborsRequest$maxResults to 10, you received a set of * 10 results along with this token. Use this token in the next query to retrieve * the next set of 10.

*/ inline ListServerNeighborsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

Token to retrieve the next set of results. For example, if you specified 100 * IDs for ListServerNeighborsRequest$neighborConfigurationIds but set * ListServerNeighborsRequest$maxResults to 10, you received a set of * 10 results along with this token. Use this token in the next query to retrieve * the next set of 10.

*/ inline ListServerNeighborsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

Token to retrieve the next set of results. For example, if you specified 100 * IDs for ListServerNeighborsRequest$neighborConfigurationIds but set * ListServerNeighborsRequest$maxResults to 10, you received a set of * 10 results along with this token. Use this token in the next query to retrieve * the next set of 10.

*/ inline ListServerNeighborsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

Count of distinct servers that are one hop away from the given server.

*/ inline long long GetKnownDependencyCount() const{ return m_knownDependencyCount; } /** *

Count of distinct servers that are one hop away from the given server.

*/ inline void SetKnownDependencyCount(long long value) { m_knownDependencyCount = value; } /** *

Count of distinct servers that are one hop away from the given server.

*/ inline ListServerNeighborsResult& WithKnownDependencyCount(long long value) { SetKnownDependencyCount(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline ListServerNeighborsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListServerNeighborsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListServerNeighborsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_neighbors; Aws::String m_nextToken; long long m_knownDependencyCount; Aws::String m_requestId; }; } // namespace Model } // namespace ApplicationDiscoveryService } // namespace Aws