/** * 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 { namespace ApplicationDiscoveryService { namespace Model { /** */ class ListServerNeighborsRequest : public ApplicationDiscoveryServiceRequest { public: AWS_APPLICATIONDISCOVERYSERVICE_API ListServerNeighborsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ListServerNeighbors"; } AWS_APPLICATIONDISCOVERYSERVICE_API Aws::String SerializePayload() const override; AWS_APPLICATIONDISCOVERYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Configuration ID of the server for which neighbors are being listed.

*/ inline const Aws::String& GetConfigurationId() const{ return m_configurationId; } /** *

Configuration ID of the server for which neighbors are being listed.

*/ inline bool ConfigurationIdHasBeenSet() const { return m_configurationIdHasBeenSet; } /** *

Configuration ID of the server for which neighbors are being listed.

*/ inline void SetConfigurationId(const Aws::String& value) { m_configurationIdHasBeenSet = true; m_configurationId = value; } /** *

Configuration ID of the server for which neighbors are being listed.

*/ inline void SetConfigurationId(Aws::String&& value) { m_configurationIdHasBeenSet = true; m_configurationId = std::move(value); } /** *

Configuration ID of the server for which neighbors are being listed.

*/ inline void SetConfigurationId(const char* value) { m_configurationIdHasBeenSet = true; m_configurationId.assign(value); } /** *

Configuration ID of the server for which neighbors are being listed.

*/ inline ListServerNeighborsRequest& WithConfigurationId(const Aws::String& value) { SetConfigurationId(value); return *this;} /** *

Configuration ID of the server for which neighbors are being listed.

*/ inline ListServerNeighborsRequest& WithConfigurationId(Aws::String&& value) { SetConfigurationId(std::move(value)); return *this;} /** *

Configuration ID of the server for which neighbors are being listed.

*/ inline ListServerNeighborsRequest& WithConfigurationId(const char* value) { SetConfigurationId(value); return *this;} /** *

Flag to indicate if port and protocol information is needed as part of the * response.

*/ inline bool GetPortInformationNeeded() const{ return m_portInformationNeeded; } /** *

Flag to indicate if port and protocol information is needed as part of the * response.

*/ inline bool PortInformationNeededHasBeenSet() const { return m_portInformationNeededHasBeenSet; } /** *

Flag to indicate if port and protocol information is needed as part of the * response.

*/ inline void SetPortInformationNeeded(bool value) { m_portInformationNeededHasBeenSet = true; m_portInformationNeeded = value; } /** *

Flag to indicate if port and protocol information is needed as part of the * response.

*/ inline ListServerNeighborsRequest& WithPortInformationNeeded(bool value) { SetPortInformationNeeded(value); return *this;} /** *

List of configuration IDs to test for one-hop-away.

*/ inline const Aws::Vector& GetNeighborConfigurationIds() const{ return m_neighborConfigurationIds; } /** *

List of configuration IDs to test for one-hop-away.

*/ inline bool NeighborConfigurationIdsHasBeenSet() const { return m_neighborConfigurationIdsHasBeenSet; } /** *

List of configuration IDs to test for one-hop-away.

*/ inline void SetNeighborConfigurationIds(const Aws::Vector& value) { m_neighborConfigurationIdsHasBeenSet = true; m_neighborConfigurationIds = value; } /** *

List of configuration IDs to test for one-hop-away.

*/ inline void SetNeighborConfigurationIds(Aws::Vector&& value) { m_neighborConfigurationIdsHasBeenSet = true; m_neighborConfigurationIds = std::move(value); } /** *

List of configuration IDs to test for one-hop-away.

*/ inline ListServerNeighborsRequest& WithNeighborConfigurationIds(const Aws::Vector& value) { SetNeighborConfigurationIds(value); return *this;} /** *

List of configuration IDs to test for one-hop-away.

*/ inline ListServerNeighborsRequest& WithNeighborConfigurationIds(Aws::Vector&& value) { SetNeighborConfigurationIds(std::move(value)); return *this;} /** *

List of configuration IDs to test for one-hop-away.

*/ inline ListServerNeighborsRequest& AddNeighborConfigurationIds(const Aws::String& value) { m_neighborConfigurationIdsHasBeenSet = true; m_neighborConfigurationIds.push_back(value); return *this; } /** *

List of configuration IDs to test for one-hop-away.

*/ inline ListServerNeighborsRequest& AddNeighborConfigurationIds(Aws::String&& value) { m_neighborConfigurationIdsHasBeenSet = true; m_neighborConfigurationIds.push_back(std::move(value)); return *this; } /** *

List of configuration IDs to test for one-hop-away.

*/ inline ListServerNeighborsRequest& AddNeighborConfigurationIds(const char* value) { m_neighborConfigurationIdsHasBeenSet = true; m_neighborConfigurationIds.push_back(value); return *this; } /** *

Maximum number of results to return in a single page of output.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

Maximum number of results to return in a single page of output.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

Maximum number of results to return in a single page of output.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

Maximum number of results to return in a single page of output.

*/ inline ListServerNeighborsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

Token to retrieve the next set of results. For example, if you previously * specified 100 IDs for * ListServerNeighborsRequest$neighborConfigurationIds but set * ListServerNeighborsRequest$maxResults to 10, you received a set of * 10 results along with a token. Use that token in this query to get 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 previously * specified 100 IDs for * ListServerNeighborsRequest$neighborConfigurationIds but set * ListServerNeighborsRequest$maxResults to 10, you received a set of * 10 results along with a token. Use that token in this query to get the next set * of 10.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

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

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

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

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

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

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

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

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

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

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

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

*/ inline ListServerNeighborsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_configurationId; bool m_configurationIdHasBeenSet = false; bool m_portInformationNeeded; bool m_portInformationNeededHasBeenSet = false; Aws::Vector m_neighborConfigurationIds; bool m_neighborConfigurationIdsHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace ApplicationDiscoveryService } // namespace Aws