#[non_exhaustive]pub struct TrafficSourceStateBuilder { /* private fields */ }Expand description
A builder for TrafficSourceState.
Implementations§
source§impl TrafficSourceStateBuilder
impl TrafficSourceStateBuilder
sourcepub fn traffic_source(self, input: impl Into<String>) -> Self
👎Deprecated: TrafficSource has been replaced by Identifier
pub fn traffic_source(self, input: impl Into<String>) -> Self
This is replaced by Identifier.
sourcepub fn set_traffic_source(self, input: Option<String>) -> Self
👎Deprecated: TrafficSource has been replaced by Identifier
pub fn set_traffic_source(self, input: Option<String>) -> Self
This is replaced by Identifier.
sourcepub fn get_traffic_source(&self) -> &Option<String>
👎Deprecated: TrafficSource has been replaced by Identifier
pub fn get_traffic_source(&self) -> &Option<String>
This is replaced by Identifier.
sourcepub fn state(self, input: impl Into<String>) -> Self
pub fn state(self, input: impl Into<String>) -> Self
Describes the current state of a traffic source.
The state values are as follows:
-
Adding- The Auto Scaling instances are being registered with the load balancer or target group. -
Added- All Auto Scaling instances are registered with the load balancer or target group. -
InService- For an Elastic Load Balancing load balancer or target group, at least one Auto Scaling instance passed anELBhealth check. For VPC Lattice, at least one Auto Scaling instance passed anVPC_LATTICEhealth check. -
Removing- The Auto Scaling instances are being deregistered from the load balancer or target group. If connection draining (deregistration delay) is enabled, Elastic Load Balancing or VPC Lattice waits for in-flight requests to complete before deregistering the instances. -
Removed- All Auto Scaling instances are deregistered from the load balancer or target group.
sourcepub fn set_state(self, input: Option<String>) -> Self
pub fn set_state(self, input: Option<String>) -> Self
Describes the current state of a traffic source.
The state values are as follows:
-
Adding- The Auto Scaling instances are being registered with the load balancer or target group. -
Added- All Auto Scaling instances are registered with the load balancer or target group. -
InService- For an Elastic Load Balancing load balancer or target group, at least one Auto Scaling instance passed anELBhealth check. For VPC Lattice, at least one Auto Scaling instance passed anVPC_LATTICEhealth check. -
Removing- The Auto Scaling instances are being deregistered from the load balancer or target group. If connection draining (deregistration delay) is enabled, Elastic Load Balancing or VPC Lattice waits for in-flight requests to complete before deregistering the instances. -
Removed- All Auto Scaling instances are deregistered from the load balancer or target group.
sourcepub fn get_state(&self) -> &Option<String>
pub fn get_state(&self) -> &Option<String>
Describes the current state of a traffic source.
The state values are as follows:
-
Adding- The Auto Scaling instances are being registered with the load balancer or target group. -
Added- All Auto Scaling instances are registered with the load balancer or target group. -
InService- For an Elastic Load Balancing load balancer or target group, at least one Auto Scaling instance passed anELBhealth check. For VPC Lattice, at least one Auto Scaling instance passed anVPC_LATTICEhealth check. -
Removing- The Auto Scaling instances are being deregistered from the load balancer or target group. If connection draining (deregistration delay) is enabled, Elastic Load Balancing or VPC Lattice waits for in-flight requests to complete before deregistering the instances. -
Removed- All Auto Scaling instances are deregistered from the load balancer or target group.
sourcepub fn identifier(self, input: impl Into<String>) -> Self
pub fn identifier(self, input: impl Into<String>) -> Self
The unique identifier of the traffic source.
sourcepub fn set_identifier(self, input: Option<String>) -> Self
pub fn set_identifier(self, input: Option<String>) -> Self
The unique identifier of the traffic source.
sourcepub fn get_identifier(&self) -> &Option<String>
pub fn get_identifier(&self) -> &Option<String>
The unique identifier of the traffic source.
sourcepub fn type(self, input: impl Into<String>) -> Self
pub fn type(self, input: impl Into<String>) -> Self
Provides additional context for the value of Identifier.
The following lists the valid values:
-
elbifIdentifieris the name of a Classic Load Balancer. -
elbv2ifIdentifieris the ARN of an Application Load Balancer, Gateway Load Balancer, or Network Load Balancer target group. -
vpc-latticeifIdentifieris the ARN of a VPC Lattice target group.
Required if the identifier is the name of a Classic Load Balancer.
sourcepub fn set_type(self, input: Option<String>) -> Self
pub fn set_type(self, input: Option<String>) -> Self
Provides additional context for the value of Identifier.
The following lists the valid values:
-
elbifIdentifieris the name of a Classic Load Balancer. -
elbv2ifIdentifieris the ARN of an Application Load Balancer, Gateway Load Balancer, or Network Load Balancer target group. -
vpc-latticeifIdentifieris the ARN of a VPC Lattice target group.
Required if the identifier is the name of a Classic Load Balancer.
sourcepub fn get_type(&self) -> &Option<String>
pub fn get_type(&self) -> &Option<String>
Provides additional context for the value of Identifier.
The following lists the valid values:
-
elbifIdentifieris the name of a Classic Load Balancer. -
elbv2ifIdentifieris the ARN of an Application Load Balancer, Gateway Load Balancer, or Network Load Balancer target group. -
vpc-latticeifIdentifieris the ARN of a VPC Lattice target group.
Required if the identifier is the name of a Classic Load Balancer.
sourcepub fn build(self) -> TrafficSourceState
pub fn build(self) -> TrafficSourceState
Consumes the builder and constructs a TrafficSourceState.
Trait Implementations§
source§impl Clone for TrafficSourceStateBuilder
impl Clone for TrafficSourceStateBuilder
source§fn clone(&self) -> TrafficSourceStateBuilder
fn clone(&self) -> TrafficSourceStateBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for TrafficSourceStateBuilder
impl Debug for TrafficSourceStateBuilder
source§impl Default for TrafficSourceStateBuilder
impl Default for TrafficSourceStateBuilder
source§fn default() -> TrafficSourceStateBuilder
fn default() -> TrafficSourceStateBuilder
source§impl PartialEq for TrafficSourceStateBuilder
impl PartialEq for TrafficSourceStateBuilder
source§fn eq(&self, other: &TrafficSourceStateBuilder) -> bool
fn eq(&self, other: &TrafficSourceStateBuilder) -> bool
self and other values to be equal, and is used
by ==.