1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListServerNeighbors`](crate::operation::list_server_neighbors::builders::ListServerNeighborsFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`configuration_id(impl Into<String>)`](crate::operation::list_server_neighbors::builders::ListServerNeighborsFluentBuilder::configuration_id) / [`set_configuration_id(Option<String>)`](crate::operation::list_server_neighbors::builders::ListServerNeighborsFluentBuilder::set_configuration_id):<br>required: **true**<br><p>Configuration ID of the server for which neighbors are being listed.</p><br>
    ///   - [`port_information_needed(bool)`](crate::operation::list_server_neighbors::builders::ListServerNeighborsFluentBuilder::port_information_needed) / [`set_port_information_needed(Option<bool>)`](crate::operation::list_server_neighbors::builders::ListServerNeighborsFluentBuilder::set_port_information_needed):<br>required: **false**<br><p>Flag to indicate if port and protocol information is needed as part of the response.</p><br>
    ///   - [`neighbor_configuration_ids(impl Into<String>)`](crate::operation::list_server_neighbors::builders::ListServerNeighborsFluentBuilder::neighbor_configuration_ids) / [`set_neighbor_configuration_ids(Option<Vec::<String>>)`](crate::operation::list_server_neighbors::builders::ListServerNeighborsFluentBuilder::set_neighbor_configuration_ids):<br>required: **false**<br><p>List of configuration IDs to test for one-hop-away.</p><br>
    ///   - [`max_results(i32)`](crate::operation::list_server_neighbors::builders::ListServerNeighborsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_server_neighbors::builders::ListServerNeighborsFluentBuilder::set_max_results):<br>required: **false**<br><p>Maximum number of results to return in a single page of output.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_server_neighbors::builders::ListServerNeighborsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_server_neighbors::builders::ListServerNeighborsFluentBuilder::set_next_token):<br>required: **false**<br><p>Token to retrieve the next set of results. For example, if you previously specified 100 IDs for <code>ListServerNeighborsRequest$neighborConfigurationIds</code> but set <code>ListServerNeighborsRequest$maxResults</code> 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.</p><br>
    /// - On success, responds with [`ListServerNeighborsOutput`](crate::operation::list_server_neighbors::ListServerNeighborsOutput) with field(s):
    ///   - [`neighbors(Vec::<NeighborConnectionDetail>)`](crate::operation::list_server_neighbors::ListServerNeighborsOutput::neighbors): <p>List of distinct servers that are one hop away from the given server.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_server_neighbors::ListServerNeighborsOutput::next_token): <p>Token to retrieve the next set of results. For example, if you specified 100 IDs for <code>ListServerNeighborsRequest$neighborConfigurationIds</code> but set <code>ListServerNeighborsRequest$maxResults</code> 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.</p>
    ///   - [`known_dependency_count(i64)`](crate::operation::list_server_neighbors::ListServerNeighborsOutput::known_dependency_count): <p>Count of distinct servers that are one hop away from the given server.</p>
    /// - On failure, responds with [`SdkError<ListServerNeighborsError>`](crate::operation::list_server_neighbors::ListServerNeighborsError)
    pub fn list_server_neighbors(&self) -> crate::operation::list_server_neighbors::builders::ListServerNeighborsFluentBuilder {
        crate::operation::list_server_neighbors::builders::ListServerNeighborsFluentBuilder::new(self.handle.clone())
    }
}