Struct aws_sdk_elasticloadbalancingv2::types::builders::HttpRequestMethodConditionConfigBuilder
source · #[non_exhaustive]pub struct HttpRequestMethodConditionConfigBuilder { /* private fields */ }
Expand description
A builder for HttpRequestMethodConditionConfig
.
Implementations§
source§impl HttpRequestMethodConditionConfigBuilder
impl HttpRequestMethodConditionConfigBuilder
sourcepub fn values(self, input: impl Into<String>) -> Self
pub fn values(self, input: impl Into<String>) -> Self
Appends an item to values
.
To override the contents of this collection use set_values
.
The name of the request method. The maximum size is 40 characters. The allowed characters are A-Z, hyphen (-), and underscore (_). The comparison is case sensitive. Wildcards are not supported; therefore, the method name must be an exact match.
If you specify multiple strings, the condition is satisfied if one of the strings matches the HTTP request method. We recommend that you route GET and HEAD requests in the same way, because the response to a HEAD request may be cached.
sourcepub fn set_values(self, input: Option<Vec<String>>) -> Self
pub fn set_values(self, input: Option<Vec<String>>) -> Self
The name of the request method. The maximum size is 40 characters. The allowed characters are A-Z, hyphen (-), and underscore (_). The comparison is case sensitive. Wildcards are not supported; therefore, the method name must be an exact match.
If you specify multiple strings, the condition is satisfied if one of the strings matches the HTTP request method. We recommend that you route GET and HEAD requests in the same way, because the response to a HEAD request may be cached.
sourcepub fn get_values(&self) -> &Option<Vec<String>>
pub fn get_values(&self) -> &Option<Vec<String>>
The name of the request method. The maximum size is 40 characters. The allowed characters are A-Z, hyphen (-), and underscore (_). The comparison is case sensitive. Wildcards are not supported; therefore, the method name must be an exact match.
If you specify multiple strings, the condition is satisfied if one of the strings matches the HTTP request method. We recommend that you route GET and HEAD requests in the same way, because the response to a HEAD request may be cached.
sourcepub fn build(self) -> HttpRequestMethodConditionConfig
pub fn build(self) -> HttpRequestMethodConditionConfig
Consumes the builder and constructs a HttpRequestMethodConditionConfig
.
Trait Implementations§
source§impl Clone for HttpRequestMethodConditionConfigBuilder
impl Clone for HttpRequestMethodConditionConfigBuilder
source§fn clone(&self) -> HttpRequestMethodConditionConfigBuilder
fn clone(&self) -> HttpRequestMethodConditionConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for HttpRequestMethodConditionConfigBuilder
impl Default for HttpRequestMethodConditionConfigBuilder
source§fn default() -> HttpRequestMethodConditionConfigBuilder
fn default() -> HttpRequestMethodConditionConfigBuilder
source§impl PartialEq for HttpRequestMethodConditionConfigBuilder
impl PartialEq for HttpRequestMethodConditionConfigBuilder
source§fn eq(&self, other: &HttpRequestMethodConditionConfigBuilder) -> bool
fn eq(&self, other: &HttpRequestMethodConditionConfigBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for HttpRequestMethodConditionConfigBuilder
Auto Trait Implementations§
impl Freeze for HttpRequestMethodConditionConfigBuilder
impl RefUnwindSafe for HttpRequestMethodConditionConfigBuilder
impl Send for HttpRequestMethodConditionConfigBuilder
impl Sync for HttpRequestMethodConditionConfigBuilder
impl Unpin for HttpRequestMethodConditionConfigBuilder
impl UnwindSafe for HttpRequestMethodConditionConfigBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more