#[non_exhaustive]
pub struct CreateRouteInputBuilder { /* private fields */ }
Expand description

A builder for CreateRouteInput.

Implementations§

source§

impl CreateRouteInputBuilder

source

pub fn environment_identifier(self, input: impl Into<String>) -> Self

The ID of the environment in which the route is created.

This field is required.
source

pub fn set_environment_identifier(self, input: Option<String>) -> Self

The ID of the environment in which the route is created.

source

pub fn get_environment_identifier(&self) -> &Option<String>

The ID of the environment in which the route is created.

source

pub fn application_identifier(self, input: impl Into<String>) -> Self

The ID of the application within which the route is being created.

This field is required.
source

pub fn set_application_identifier(self, input: Option<String>) -> Self

The ID of the application within which the route is being created.

source

pub fn get_application_identifier(&self) -> &Option<String>

The ID of the application within which the route is being created.

source

pub fn service_identifier(self, input: impl Into<String>) -> Self

The ID of the service in which the route is created. Traffic that matches this route is forwarded to this service.

This field is required.
source

pub fn set_service_identifier(self, input: Option<String>) -> Self

The ID of the service in which the route is created. Traffic that matches this route is forwarded to this service.

source

pub fn get_service_identifier(&self) -> &Option<String>

The ID of the service in which the route is created. Traffic that matches this route is forwarded to this service.

source

pub fn route_type(self, input: RouteType) -> Self

The route type of the route. DEFAULT indicates that all traffic that does not match another route is forwarded to the default route. Applications must have a default route before any other routes can be created. URI_PATH indicates a route that is based on a URI path.

This field is required.
source

pub fn set_route_type(self, input: Option<RouteType>) -> Self

The route type of the route. DEFAULT indicates that all traffic that does not match another route is forwarded to the default route. Applications must have a default route before any other routes can be created. URI_PATH indicates a route that is based on a URI path.

source

pub fn get_route_type(&self) -> &Option<RouteType>

The route type of the route. DEFAULT indicates that all traffic that does not match another route is forwarded to the default route. Applications must have a default route before any other routes can be created. URI_PATH indicates a route that is based on a URI path.

source

pub fn default_route(self, input: DefaultRouteInput) -> Self

Configuration for the default route type.

source

pub fn set_default_route(self, input: Option<DefaultRouteInput>) -> Self

Configuration for the default route type.

source

pub fn get_default_route(&self) -> &Option<DefaultRouteInput>

Configuration for the default route type.

source

pub fn uri_path_route(self, input: UriPathRouteInput) -> Self

The configuration for the URI path route type.

source

pub fn set_uri_path_route(self, input: Option<UriPathRouteInput>) -> Self

The configuration for the URI path route type.

source

pub fn get_uri_path_route(&self) -> &Option<UriPathRouteInput>

The configuration for the URI path route type.

source

pub fn tags(self, k: impl Into<String>, v: impl Into<String>) -> Self

Adds a key-value pair to tags.

To override the contents of this collection use set_tags.

The tags to assign to the route. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair..

source

pub fn set_tags(self, input: Option<HashMap<String, String>>) -> Self

The tags to assign to the route. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair..

source

pub fn get_tags(&self) -> &Option<HashMap<String, String>>

The tags to assign to the route. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair..

source

pub fn client_token(self, input: impl Into<String>) -> Self

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

source

pub fn set_client_token(self, input: Option<String>) -> Self

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

source

pub fn get_client_token(&self) -> &Option<String>

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

source

pub fn build(self) -> Result<CreateRouteInput, BuildError>

Consumes the builder and constructs a CreateRouteInput.

source§

impl CreateRouteInputBuilder

source

pub async fn send_with( self, client: &Client ) -> Result<CreateRouteOutput, SdkError<CreateRouteError, HttpResponse>>

Sends a request with this input using the given client.

Trait Implementations§

source§

impl Clone for CreateRouteInputBuilder

source§

fn clone(&self) -> CreateRouteInputBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CreateRouteInputBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for CreateRouteInputBuilder

source§

fn default() -> CreateRouteInputBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq for CreateRouteInputBuilder

source§

fn eq(&self, other: &CreateRouteInputBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for CreateRouteInputBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<Unshared, Shared> IntoShared<Shared> for Unsharedwhere Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more