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

A builder for CreateConnectionInput.

Implementations§

The location of the connection.

Examples found in repository?
src/client.rs (line 2996)
2995
2996
2997
2998
        pub fn location(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.location(input.into());
            self
        }

The location of the connection.

Examples found in repository?
src/client.rs (line 3001)
3000
3001
3002
3003
        pub fn set_location(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_location(input);
            self
        }

The bandwidth of the connection.

Examples found in repository?
src/client.rs (line 3006)
3005
3006
3007
3008
        pub fn bandwidth(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.bandwidth(input.into());
            self
        }

The bandwidth of the connection.

Examples found in repository?
src/client.rs (line 3011)
3010
3011
3012
3013
        pub fn set_bandwidth(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_bandwidth(input);
            self
        }

The name of the connection.

Examples found in repository?
src/client.rs (line 3016)
3015
3016
3017
3018
        pub fn connection_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.connection_name(input.into());
            self
        }

The name of the connection.

Examples found in repository?
src/client.rs (line 3024)
3020
3021
3022
3023
3024
3025
3026
        pub fn set_connection_name(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_connection_name(input);
            self
        }

The ID of the LAG.

Examples found in repository?
src/client.rs (line 3029)
3028
3029
3030
3031
        pub fn lag_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.lag_id(input.into());
            self
        }

The ID of the LAG.

Examples found in repository?
src/client.rs (line 3034)
3033
3034
3035
3036
        pub fn set_lag_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_lag_id(input);
            self
        }

Appends an item to tags.

To override the contents of this collection use set_tags.

The tags to associate with the lag.

Examples found in repository?
src/client.rs (line 3043)
3042
3043
3044
3045
        pub fn tags(mut self, input: crate::model::Tag) -> Self {
            self.inner = self.inner.tags(input);
            self
        }

The tags to associate with the lag.

Examples found in repository?
src/client.rs (line 3051)
3047
3048
3049
3050
3051
3052
3053
        pub fn set_tags(
            mut self,
            input: std::option::Option<std::vec::Vec<crate::model::Tag>>,
        ) -> Self {
            self.inner = self.inner.set_tags(input);
            self
        }

The name of the service provider associated with the requested connection.

Examples found in repository?
src/client.rs (line 3056)
3055
3056
3057
3058
        pub fn provider_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.provider_name(input.into());
            self
        }

The name of the service provider associated with the requested connection.

Examples found in repository?
src/client.rs (line 3064)
3060
3061
3062
3063
3064
3065
3066
        pub fn set_provider_name(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_provider_name(input);
            self
        }

Indicates whether you want the connection to support MAC Security (MACsec).

MAC Security (MACsec) is only available on dedicated connections. For information about MAC Security (MACsec) prerequisties, see MACsec prerequisties in the Direct Connect User Guide.

Examples found in repository?
src/client.rs (line 3070)
3069
3070
3071
3072
        pub fn request_mac_sec(mut self, input: bool) -> Self {
            self.inner = self.inner.request_mac_sec(input);
            self
        }

Indicates whether you want the connection to support MAC Security (MACsec).

MAC Security (MACsec) is only available on dedicated connections. For information about MAC Security (MACsec) prerequisties, see MACsec prerequisties in the Direct Connect User Guide.

Examples found in repository?
src/client.rs (line 3076)
3075
3076
3077
3078
        pub fn set_request_mac_sec(mut self, input: std::option::Option<bool>) -> Self {
            self.inner = self.inner.set_request_mac_sec(input);
            self
        }

Consumes the builder and constructs a CreateConnectionInput.

Examples found in repository?
src/client.rs (line 2963)
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::CreateConnection,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::CreateConnectionError>,
        > {
            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::CreateConnectionOutput,
            aws_smithy_http::result::SdkError<crate::error::CreateConnectionError>,
        > {
            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