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

A builder for UpdateRouteInput.

Implementations§

The API identifier.

Examples found in repository?
src/client.rs (line 9376)
9375
9376
9377
9378
        pub fn api_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.api_id(input.into());
            self
        }

The API identifier.

Examples found in repository?
src/client.rs (line 9381)
9380
9381
9382
9383
        pub fn set_api_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_api_id(input);
            self
        }

Specifies whether an API key is required for the route. Supported only for WebSocket APIs.

Examples found in repository?
src/client.rs (line 9386)
9385
9386
9387
9388
        pub fn api_key_required(mut self, input: bool) -> Self {
            self.inner = self.inner.api_key_required(input);
            self
        }

Specifies whether an API key is required for the route. Supported only for WebSocket APIs.

Examples found in repository?
src/client.rs (line 9391)
9390
9391
9392
9393
        pub fn set_api_key_required(mut self, input: std::option::Option<bool>) -> Self {
            self.inner = self.inner.set_api_key_required(input);
            self
        }

Appends an item to authorization_scopes.

To override the contents of this collection use set_authorization_scopes.

The authorization scopes supported by this route.

Examples found in repository?
src/client.rs (line 9400)
9399
9400
9401
9402
        pub fn authorization_scopes(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.authorization_scopes(input.into());
            self
        }

The authorization scopes supported by this route.

Examples found in repository?
src/client.rs (line 9408)
9404
9405
9406
9407
9408
9409
9410
        pub fn set_authorization_scopes(
            mut self,
            input: std::option::Option<std::vec::Vec<std::string::String>>,
        ) -> Self {
            self.inner = self.inner.set_authorization_scopes(input);
            self
        }

The authorization type for the route. For WebSocket APIs, valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer For HTTP APIs, valid values are NONE for open access, JWT for using JSON Web Tokens, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer.

Examples found in repository?
src/client.rs (line 9413)
9412
9413
9414
9415
        pub fn authorization_type(mut self, input: crate::model::AuthorizationType) -> Self {
            self.inner = self.inner.authorization_type(input);
            self
        }

The authorization type for the route. For WebSocket APIs, valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer For HTTP APIs, valid values are NONE for open access, JWT for using JSON Web Tokens, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer.

Examples found in repository?
src/client.rs (line 9421)
9417
9418
9419
9420
9421
9422
9423
        pub fn set_authorization_type(
            mut self,
            input: std::option::Option<crate::model::AuthorizationType>,
        ) -> Self {
            self.inner = self.inner.set_authorization_type(input);
            self
        }

The identifier of the Authorizer resource to be associated with this route. The authorizer identifier is generated by API Gateway when you created the authorizer.

Examples found in repository?
src/client.rs (line 9426)
9425
9426
9427
9428
        pub fn authorizer_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.authorizer_id(input.into());
            self
        }

The identifier of the Authorizer resource to be associated with this route. The authorizer identifier is generated by API Gateway when you created the authorizer.

Examples found in repository?
src/client.rs (line 9434)
9430
9431
9432
9433
9434
9435
9436
        pub fn set_authorizer_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_authorizer_id(input);
            self
        }

The model selection expression for the route. Supported only for WebSocket APIs.

Examples found in repository?
src/client.rs (line 9439)
9438
9439
9440
9441
        pub fn model_selection_expression(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.model_selection_expression(input.into());
            self
        }

The model selection expression for the route. Supported only for WebSocket APIs.

Examples found in repository?
src/client.rs (line 9447)
9443
9444
9445
9446
9447
9448
9449
        pub fn set_model_selection_expression(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_model_selection_expression(input);
            self
        }

The operation name for the route.

Examples found in repository?
src/client.rs (line 9452)
9451
9452
9453
9454
        pub fn operation_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.operation_name(input.into());
            self
        }

The operation name for the route.

Examples found in repository?
src/client.rs (line 9460)
9456
9457
9458
9459
9460
9461
9462
        pub fn set_operation_name(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_operation_name(input);
            self
        }

Adds a key-value pair to request_models.

To override the contents of this collection use set_request_models.

The request models for the route. Supported only for WebSocket APIs.

Examples found in repository?
src/client.rs (line 9473)
9468
9469
9470
9471
9472
9473
9474
9475
        pub fn request_models(
            mut self,
            k: impl Into<std::string::String>,
            v: impl Into<std::string::String>,
        ) -> Self {
            self.inner = self.inner.request_models(k.into(), v.into());
            self
        }

The request models for the route. Supported only for WebSocket APIs.

Examples found in repository?
src/client.rs (line 9483)
9477
9478
9479
9480
9481
9482
9483
9484
9485
        pub fn set_request_models(
            mut self,
            input: std::option::Option<
                std::collections::HashMap<std::string::String, std::string::String>,
            >,
        ) -> Self {
            self.inner = self.inner.set_request_models(input);
            self
        }

Adds a key-value pair to request_parameters.

To override the contents of this collection use set_request_parameters.

The request parameters for the route. Supported only for WebSocket APIs.

Examples found in repository?
src/client.rs (line 9496)
9491
9492
9493
9494
9495
9496
9497
9498
        pub fn request_parameters(
            mut self,
            k: impl Into<std::string::String>,
            v: crate::model::ParameterConstraints,
        ) -> Self {
            self.inner = self.inner.request_parameters(k.into(), v);
            self
        }

The request parameters for the route. Supported only for WebSocket APIs.

Examples found in repository?
src/client.rs (line 9506)
9500
9501
9502
9503
9504
9505
9506
9507
9508
        pub fn set_request_parameters(
            mut self,
            input: std::option::Option<
                std::collections::HashMap<std::string::String, crate::model::ParameterConstraints>,
            >,
        ) -> Self {
            self.inner = self.inner.set_request_parameters(input);
            self
        }

The route ID.

Examples found in repository?
src/client.rs (line 9511)
9510
9511
9512
9513
        pub fn route_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.route_id(input.into());
            self
        }

The route ID.

Examples found in repository?
src/client.rs (line 9516)
9515
9516
9517
9518
        pub fn set_route_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_route_id(input);
            self
        }

The route key for the route.

Examples found in repository?
src/client.rs (line 9521)
9520
9521
9522
9523
        pub fn route_key(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.route_key(input.into());
            self
        }

The route key for the route.

Examples found in repository?
src/client.rs (line 9526)
9525
9526
9527
9528
        pub fn set_route_key(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_route_key(input);
            self
        }

The route response selection expression for the route. Supported only for WebSocket APIs.

Examples found in repository?
src/client.rs (line 9534)
9530
9531
9532
9533
9534
9535
9536
        pub fn route_response_selection_expression(
            mut self,
            input: impl Into<std::string::String>,
        ) -> Self {
            self.inner = self.inner.route_response_selection_expression(input.into());
            self
        }

The route response selection expression for the route. Supported only for WebSocket APIs.

Examples found in repository?
src/client.rs (line 9542)
9538
9539
9540
9541
9542
9543
9544
        pub fn set_route_response_selection_expression(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_route_response_selection_expression(input);
            self
        }

The target for the route.

Examples found in repository?
src/client.rs (line 9547)
9546
9547
9548
9549
        pub fn target(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.target(input.into());
            self
        }

The target for the route.

Examples found in repository?
src/client.rs (line 9552)
9551
9552
9553
9554
        pub fn set_target(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_target(input);
            self
        }

Consumes the builder and constructs a UpdateRouteInput.

Examples found in repository?
src/client.rs (line 9343)
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::UpdateRoute,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::UpdateRouteError>,
        > {
            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::UpdateRouteOutput,
            aws_smithy_http::result::SdkError<crate::error::UpdateRouteError>,
        > {
            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