Struct aws_sdk_lightsail::operation::update_load_balancer_attribute::builders::UpdateLoadBalancerAttributeInputBuilder
source · #[non_exhaustive]pub struct UpdateLoadBalancerAttributeInputBuilder { /* private fields */ }
Expand description
A builder for UpdateLoadBalancerAttributeInput
.
Implementations§
source§impl UpdateLoadBalancerAttributeInputBuilder
impl UpdateLoadBalancerAttributeInputBuilder
sourcepub fn load_balancer_name(self, input: impl Into<String>) -> Self
pub fn load_balancer_name(self, input: impl Into<String>) -> Self
The name of the load balancer that you want to modify (my-load-balancer
.
sourcepub fn set_load_balancer_name(self, input: Option<String>) -> Self
pub fn set_load_balancer_name(self, input: Option<String>) -> Self
The name of the load balancer that you want to modify (my-load-balancer
.
sourcepub fn get_load_balancer_name(&self) -> &Option<String>
pub fn get_load_balancer_name(&self) -> &Option<String>
The name of the load balancer that you want to modify (my-load-balancer
.
sourcepub fn attribute_name(self, input: LoadBalancerAttributeName) -> Self
pub fn attribute_name(self, input: LoadBalancerAttributeName) -> Self
The name of the attribute you want to update.
This field is required.sourcepub fn set_attribute_name(
self,
input: Option<LoadBalancerAttributeName>
) -> Self
pub fn set_attribute_name( self, input: Option<LoadBalancerAttributeName> ) -> Self
The name of the attribute you want to update.
sourcepub fn get_attribute_name(&self) -> &Option<LoadBalancerAttributeName>
pub fn get_attribute_name(&self) -> &Option<LoadBalancerAttributeName>
The name of the attribute you want to update.
sourcepub fn attribute_value(self, input: impl Into<String>) -> Self
pub fn attribute_value(self, input: impl Into<String>) -> Self
The value that you want to specify for the attribute name.
The following values are supported depending on what you specify for the attributeName
request parameter:
-
If you specify
HealthCheckPath
for theattributeName
request parameter, then theattributeValue
request parameter must be the path to ping on the target (for example,/weather/us/wa/seattle
). -
If you specify
SessionStickinessEnabled
for theattributeName
request parameter, then theattributeValue
request parameter must betrue
to activate session stickiness orfalse
to deactivate session stickiness. -
If you specify
SessionStickiness_LB_CookieDurationSeconds
for theattributeName
request parameter, then theattributeValue
request parameter must be an interger that represents the cookie duration in seconds. -
If you specify
HttpsRedirectionEnabled
for theattributeName
request parameter, then theattributeValue
request parameter must betrue
to activate HTTP to HTTPS redirection orfalse
to deactivate HTTP to HTTPS redirection. -
If you specify
TlsPolicyName
for theattributeName
request parameter, then theattributeValue
request parameter must be the name of the TLS policy.Use the GetLoadBalancerTlsPolicies action to get a list of TLS policy names that you can specify.
sourcepub fn set_attribute_value(self, input: Option<String>) -> Self
pub fn set_attribute_value(self, input: Option<String>) -> Self
The value that you want to specify for the attribute name.
The following values are supported depending on what you specify for the attributeName
request parameter:
-
If you specify
HealthCheckPath
for theattributeName
request parameter, then theattributeValue
request parameter must be the path to ping on the target (for example,/weather/us/wa/seattle
). -
If you specify
SessionStickinessEnabled
for theattributeName
request parameter, then theattributeValue
request parameter must betrue
to activate session stickiness orfalse
to deactivate session stickiness. -
If you specify
SessionStickiness_LB_CookieDurationSeconds
for theattributeName
request parameter, then theattributeValue
request parameter must be an interger that represents the cookie duration in seconds. -
If you specify
HttpsRedirectionEnabled
for theattributeName
request parameter, then theattributeValue
request parameter must betrue
to activate HTTP to HTTPS redirection orfalse
to deactivate HTTP to HTTPS redirection. -
If you specify
TlsPolicyName
for theattributeName
request parameter, then theattributeValue
request parameter must be the name of the TLS policy.Use the GetLoadBalancerTlsPolicies action to get a list of TLS policy names that you can specify.
sourcepub fn get_attribute_value(&self) -> &Option<String>
pub fn get_attribute_value(&self) -> &Option<String>
The value that you want to specify for the attribute name.
The following values are supported depending on what you specify for the attributeName
request parameter:
-
If you specify
HealthCheckPath
for theattributeName
request parameter, then theattributeValue
request parameter must be the path to ping on the target (for example,/weather/us/wa/seattle
). -
If you specify
SessionStickinessEnabled
for theattributeName
request parameter, then theattributeValue
request parameter must betrue
to activate session stickiness orfalse
to deactivate session stickiness. -
If you specify
SessionStickiness_LB_CookieDurationSeconds
for theattributeName
request parameter, then theattributeValue
request parameter must be an interger that represents the cookie duration in seconds. -
If you specify
HttpsRedirectionEnabled
for theattributeName
request parameter, then theattributeValue
request parameter must betrue
to activate HTTP to HTTPS redirection orfalse
to deactivate HTTP to HTTPS redirection. -
If you specify
TlsPolicyName
for theattributeName
request parameter, then theattributeValue
request parameter must be the name of the TLS policy.Use the GetLoadBalancerTlsPolicies action to get a list of TLS policy names that you can specify.
sourcepub fn build(self) -> Result<UpdateLoadBalancerAttributeInput, BuildError>
pub fn build(self) -> Result<UpdateLoadBalancerAttributeInput, BuildError>
Consumes the builder and constructs a UpdateLoadBalancerAttributeInput
.
source§impl UpdateLoadBalancerAttributeInputBuilder
impl UpdateLoadBalancerAttributeInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdateLoadBalancerAttributeOutput, SdkError<UpdateLoadBalancerAttributeError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdateLoadBalancerAttributeOutput, SdkError<UpdateLoadBalancerAttributeError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateLoadBalancerAttributeInputBuilder
impl Clone for UpdateLoadBalancerAttributeInputBuilder
source§fn clone(&self) -> UpdateLoadBalancerAttributeInputBuilder
fn clone(&self) -> UpdateLoadBalancerAttributeInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for UpdateLoadBalancerAttributeInputBuilder
impl Default for UpdateLoadBalancerAttributeInputBuilder
source§fn default() -> UpdateLoadBalancerAttributeInputBuilder
fn default() -> UpdateLoadBalancerAttributeInputBuilder
source§impl PartialEq for UpdateLoadBalancerAttributeInputBuilder
impl PartialEq for UpdateLoadBalancerAttributeInputBuilder
source§fn eq(&self, other: &UpdateLoadBalancerAttributeInputBuilder) -> bool
fn eq(&self, other: &UpdateLoadBalancerAttributeInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateLoadBalancerAttributeInputBuilder
Auto Trait Implementations§
impl Freeze for UpdateLoadBalancerAttributeInputBuilder
impl RefUnwindSafe for UpdateLoadBalancerAttributeInputBuilder
impl Send for UpdateLoadBalancerAttributeInputBuilder
impl Sync for UpdateLoadBalancerAttributeInputBuilder
impl Unpin for UpdateLoadBalancerAttributeInputBuilder
impl UnwindSafe for UpdateLoadBalancerAttributeInputBuilder
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> 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