aws_sdk_xray/client/
get_trace_segment_destination.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`GetTraceSegmentDestination`](crate::operation::get_trace_segment_destination::builders::GetTraceSegmentDestinationFluentBuilder) operation.
4    ///
5    /// - The fluent builder takes no input, just [`send`](crate::operation::get_trace_segment_destination::builders::GetTraceSegmentDestinationFluentBuilder::send) it.
6    /// - On success, responds with [`GetTraceSegmentDestinationOutput`](crate::operation::get_trace_segment_destination::GetTraceSegmentDestinationOutput) with field(s):
7    ///   - [`destination(Option<TraceSegmentDestination>)`](crate::operation::get_trace_segment_destination::GetTraceSegmentDestinationOutput::destination): <p>Retrieves the current destination.</p>
8    ///   - [`status(Option<TraceSegmentDestinationStatus>)`](crate::operation::get_trace_segment_destination::GetTraceSegmentDestinationOutput::status): <p>Status of the retrieval.</p>
9    /// - On failure, responds with [`SdkError<GetTraceSegmentDestinationError>`](crate::operation::get_trace_segment_destination::GetTraceSegmentDestinationError)
10    pub fn get_trace_segment_destination(
11        &self,
12    ) -> crate::operation::get_trace_segment_destination::builders::GetTraceSegmentDestinationFluentBuilder {
13        crate::operation::get_trace_segment_destination::builders::GetTraceSegmentDestinationFluentBuilder::new(self.handle.clone())
14    }
15}