pub struct Builder { /* private fields */ }
Expand description

A builder for StartConnectionInput.

Implementations§

The serial number of the dongle.

Examples found in repository?
src/client.rs (line 2509)
2508
2509
2510
2511
        pub fn device_serial_number(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.device_serial_number(input.into());
            self
        }

The serial number of the dongle.

Examples found in repository?
src/client.rs (line 2517)
2513
2514
2515
2516
2517
2518
2519
        pub fn set_device_serial_number(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_device_serial_number(input);
            self
        }

The ID of the Outpost server.

Examples found in repository?
src/client.rs (line 2522)
2521
2522
2523
2524
        pub fn asset_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.asset_id(input.into());
            self
        }

The ID of the Outpost server.

Examples found in repository?
src/client.rs (line 2527)
2526
2527
2528
2529
        pub fn set_asset_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_asset_id(input);
            self
        }

The public key of the client.

Examples found in repository?
src/client.rs (line 2532)
2531
2532
2533
2534
        pub fn client_public_key(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.client_public_key(input.into());
            self
        }

The public key of the client.

Examples found in repository?
src/client.rs (line 2540)
2536
2537
2538
2539
2540
2541
2542
        pub fn set_client_public_key(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_client_public_key(input);
            self
        }

The device index of the network interface on the Outpost server.

Examples found in repository?
src/client.rs (line 2545)
2544
2545
2546
2547
        pub fn network_interface_device_index(mut self, input: i32) -> Self {
            self.inner = self.inner.network_interface_device_index(input);
            self
        }

The device index of the network interface on the Outpost server.

Examples found in repository?
src/client.rs (line 2553)
2549
2550
2551
2552
2553
2554
2555
        pub fn set_network_interface_device_index(
            mut self,
            input: std::option::Option<i32>,
        ) -> Self {
            self.inner = self.inner.set_network_interface_device_index(input);
            self
        }

Consumes the builder and constructs a StartConnectionInput.

Examples found in repository?
src/client.rs (line 2476)
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::StartConnection,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::StartConnectionError>,
        > {
            let handle = self.handle.clone();
            let operation = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            Ok(crate::operation::customize::CustomizableOperation { handle, operation })
        }

        /// Sends the request and returns the response.
        ///
        /// If an error occurs, an `SdkError` will be returned with additional details that
        /// can be matched against.
        ///
        /// By default, any retryable failures will be retried twice. Retry behavior
        /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
        /// set when configuring the client.
        pub async fn send(
            self,
        ) -> std::result::Result<
            crate::output::StartConnectionOutput,
            aws_smithy_http::result::SdkError<crate::error::StartConnectionError>,
        > {
            let op = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&self.handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            self.handle.client.call(op).await
        }

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more