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

Implementations§

A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Examples found in repository?
src/client.rs (line 66203)
66202
66203
66204
66205
        pub fn dry_run(mut self, input: bool) -> Self {
            self.inner = self.inner.dry_run(input);
            self
        }

A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Examples found in repository?
src/client.rs (line 66208)
66207
66208
66209
66210
        pub fn set_dry_run(mut self, input: std::option::Option<bool>) -> Self {
            self.inner = self.inner.set_dry_run(input);
            self
        }

The ID of the resource you want to modify.

Examples found in repository?
src/client.rs (line 66213)
66212
66213
66214
66215
        pub fn resource_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.resource_id(input.into());
            self
        }

The ID of the resource you want to modify.

Examples found in repository?
src/client.rs (line 66218)
66217
66218
66219
66220
        pub fn set_resource_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_resource_id(input);
            self
        }

The CIDR of the resource you want to modify.

Examples found in repository?
src/client.rs (line 66223)
66222
66223
66224
66225
        pub fn resource_cidr(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.resource_cidr(input.into());
            self
        }

The CIDR of the resource you want to modify.

Examples found in repository?
src/client.rs (line 66231)
66227
66228
66229
66230
66231
66232
66233
        pub fn set_resource_cidr(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_resource_cidr(input);
            self
        }

The Amazon Web Services Region of the resource you want to modify.

Examples found in repository?
src/client.rs (line 66236)
66235
66236
66237
66238
        pub fn resource_region(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.resource_region(input.into());
            self
        }

The Amazon Web Services Region of the resource you want to modify.

Examples found in repository?
src/client.rs (line 66244)
66240
66241
66242
66243
66244
66245
66246
        pub fn set_resource_region(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_resource_region(input);
            self
        }

The ID of the current scope that the resource CIDR is in.

Examples found in repository?
src/client.rs (line 66249)
66248
66249
66250
66251
        pub fn current_ipam_scope_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.current_ipam_scope_id(input.into());
            self
        }

The ID of the current scope that the resource CIDR is in.

Examples found in repository?
src/client.rs (line 66257)
66253
66254
66255
66256
66257
66258
66259
        pub fn set_current_ipam_scope_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_current_ipam_scope_id(input);
            self
        }

The ID of the scope you want to transfer the resource CIDR to.

Examples found in repository?
src/client.rs (line 66262)
66261
66262
66263
66264
        pub fn destination_ipam_scope_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.destination_ipam_scope_id(input.into());
            self
        }

The ID of the scope you want to transfer the resource CIDR to.

Examples found in repository?
src/client.rs (line 66270)
66266
66267
66268
66269
66270
66271
66272
        pub fn set_destination_ipam_scope_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_destination_ipam_scope_id(input);
            self
        }

Determines if the resource is monitored by IPAM. If a resource is monitored, the resource is discovered by IPAM and you can view details about the resource’s CIDR.

Examples found in repository?
src/client.rs (line 66275)
66274
66275
66276
66277
        pub fn monitored(mut self, input: bool) -> Self {
            self.inner = self.inner.monitored(input);
            self
        }

Determines if the resource is monitored by IPAM. If a resource is monitored, the resource is discovered by IPAM and you can view details about the resource’s CIDR.

Examples found in repository?
src/client.rs (line 66280)
66279
66280
66281
66282
        pub fn set_monitored(mut self, input: std::option::Option<bool>) -> Self {
            self.inner = self.inner.set_monitored(input);
            self
        }

Consumes the builder and constructs a ModifyIpamResourceCidrInput.

Examples found in repository?
src/client.rs (line 66170)
66158
66159
66160
66161
66162
66163
66164
66165
66166
66167
66168
66169
66170
66171
66172
66173
66174
66175
66176
66177
66178
66179
66180
66181
66182
66183
66184
66185
66186
66187
66188
66189
66190
66191
66192
66193
66194
66195
66196
66197
66198
66199
66200
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::ModifyIpamResourceCidr,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::ModifyIpamResourceCidrError>,
        > {
            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::ModifyIpamResourceCidrOutput,
            aws_smithy_http::result::SdkError<crate::error::ModifyIpamResourceCidrError>,
        > {
            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