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

A builder for UpdateDeviceInput.

Implementations§

The ID of the global network.

Examples found in repository?
src/client.rs (line 9966)
9965
9966
9967
9968
        pub fn global_network_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.global_network_id(input.into());
            self
        }

The ID of the global network.

Examples found in repository?
src/client.rs (line 9974)
9970
9971
9972
9973
9974
9975
9976
        pub fn set_global_network_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_global_network_id(input);
            self
        }

The ID of the device.

Examples found in repository?
src/client.rs (line 9979)
9978
9979
9980
9981
        pub fn device_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.device_id(input.into());
            self
        }

The ID of the device.

Examples found in repository?
src/client.rs (line 9984)
9983
9984
9985
9986
        pub fn set_device_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_device_id(input);
            self
        }

The Amazon Web Services location of the device, if applicable. For an on-premises device, you can omit this parameter.

Examples found in repository?
src/client.rs (line 9989)
9988
9989
9990
9991
        pub fn aws_location(mut self, input: crate::model::AwsLocation) -> Self {
            self.inner = self.inner.aws_location(input);
            self
        }

The Amazon Web Services location of the device, if applicable. For an on-premises device, you can omit this parameter.

Examples found in repository?
src/client.rs (line 9997)
9993
9994
9995
9996
9997
9998
9999
        pub fn set_aws_location(
            mut self,
            input: std::option::Option<crate::model::AwsLocation>,
        ) -> Self {
            self.inner = self.inner.set_aws_location(input);
            self
        }

A description of the device.

Constraints: Maximum length of 256 characters.

Examples found in repository?
src/client.rs (line 10003)
10002
10003
10004
10005
        pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.description(input.into());
            self
        }

A description of the device.

Constraints: Maximum length of 256 characters.

Examples found in repository?
src/client.rs (line 10009)
10008
10009
10010
10011
        pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_description(input);
            self
        }

The type of the device.

Examples found in repository?
src/client.rs (line 10014)
10013
10014
10015
10016
        pub fn r#type(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.r#type(input.into());
            self
        }

The type of the device.

Examples found in repository?
src/client.rs (line 10019)
10018
10019
10020
10021
        pub fn set_type(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_type(input);
            self
        }

The vendor of the device.

Constraints: Maximum length of 128 characters.

Examples found in repository?
src/client.rs (line 10025)
10024
10025
10026
10027
        pub fn vendor(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.vendor(input.into());
            self
        }

The vendor of the device.

Constraints: Maximum length of 128 characters.

Examples found in repository?
src/client.rs (line 10031)
10030
10031
10032
10033
        pub fn set_vendor(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_vendor(input);
            self
        }

The model of the device.

Constraints: Maximum length of 128 characters.

Examples found in repository?
src/client.rs (line 10037)
10036
10037
10038
10039
        pub fn model(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.model(input.into());
            self
        }

The model of the device.

Constraints: Maximum length of 128 characters.

Examples found in repository?
src/client.rs (line 10043)
10042
10043
10044
10045
        pub fn set_model(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_model(input);
            self
        }

The serial number of the device.

Constraints: Maximum length of 128 characters.

Examples found in repository?
src/client.rs (line 10049)
10048
10049
10050
10051
        pub fn serial_number(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.serial_number(input.into());
            self
        }

The serial number of the device.

Constraints: Maximum length of 128 characters.

Examples found in repository?
src/client.rs (line 10058)
10054
10055
10056
10057
10058
10059
10060
        pub fn set_serial_number(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_serial_number(input);
            self
        }

Describes a location.

Examples found in repository?
src/client.rs (line 10063)
10062
10063
10064
10065
        pub fn location(mut self, input: crate::model::Location) -> Self {
            self.inner = self.inner.location(input);
            self
        }

Describes a location.

Examples found in repository?
src/client.rs (line 10068)
10067
10068
10069
10070
        pub fn set_location(mut self, input: std::option::Option<crate::model::Location>) -> Self {
            self.inner = self.inner.set_location(input);
            self
        }

The ID of the site.

Examples found in repository?
src/client.rs (line 10073)
10072
10073
10074
10075
        pub fn site_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.site_id(input.into());
            self
        }

The ID of the site.

Examples found in repository?
src/client.rs (line 10078)
10077
10078
10079
10080
        pub fn set_site_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_site_id(input);
            self
        }

Consumes the builder and constructs a UpdateDeviceInput.

Examples found in repository?
src/client.rs (line 9933)
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::UpdateDevice,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::UpdateDeviceError>,
        > {
            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::UpdateDeviceOutput,
            aws_smithy_http::result::SdkError<crate::error::UpdateDeviceError>,
        > {
            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