@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TrafficSourceState extends Object implements Serializable, Cloneable
Describes the state of a traffic source.
Constructor and Description |
---|
TrafficSourceState() |
Modifier and Type | Method and Description |
---|---|
TrafficSourceState |
clone() |
boolean |
equals(Object obj) |
String |
getIdentifier()
The unique identifier of the traffic source.
|
String |
getState()
Describes the current state of a traffic source.
|
String |
getTrafficSource()
Deprecated.
|
String |
getType()
Provides additional context for the value of
Identifier . |
int |
hashCode() |
void |
setIdentifier(String identifier)
The unique identifier of the traffic source.
|
void |
setState(String state)
Describes the current state of a traffic source.
|
void |
setTrafficSource(String trafficSource)
Deprecated.
|
void |
setType(String type)
Provides additional context for the value of
Identifier . |
String |
toString()
Returns a string representation of this object.
|
TrafficSourceState |
withIdentifier(String identifier)
The unique identifier of the traffic source.
|
TrafficSourceState |
withState(String state)
Describes the current state of a traffic source.
|
TrafficSourceState |
withTrafficSource(String trafficSource)
Deprecated.
|
TrafficSourceState |
withType(String type)
Provides additional context for the value of
Identifier . |
@Deprecated public void setTrafficSource(String trafficSource)
This is replaced by Identifier
.
trafficSource
- This is replaced by Identifier
.@Deprecated public String getTrafficSource()
This is replaced by Identifier
.
Identifier
.@Deprecated public TrafficSourceState withTrafficSource(String trafficSource)
This is replaced by Identifier
.
trafficSource
- This is replaced by Identifier
.public void setState(String state)
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 an ELB
health check. For VPC Lattice, at least one Auto Scaling instance passed an
VPC_LATTICE
health 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.
state
- 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 an ELB
health check. For VPC Lattice, at least one Auto Scaling
instance passed an VPC_LATTICE
health 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.
public String getState()
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 an ELB
health check. For VPC Lattice, at least one Auto Scaling instance passed an
VPC_LATTICE
health 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.
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 an ELB
health check. For VPC Lattice, at least one Auto Scaling
instance passed an VPC_LATTICE
health 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.
public TrafficSourceState withState(String state)
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 an ELB
health check. For VPC Lattice, at least one Auto Scaling instance passed an
VPC_LATTICE
health 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.
state
- 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 an ELB
health check. For VPC Lattice, at least one Auto Scaling
instance passed an VPC_LATTICE
health 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.
public void setIdentifier(String identifier)
The unique identifier of the traffic source.
identifier
- The unique identifier of the traffic source.public String getIdentifier()
The unique identifier of the traffic source.
public TrafficSourceState withIdentifier(String identifier)
The unique identifier of the traffic source.
identifier
- The unique identifier of the traffic source.public void setType(String type)
Provides additional context for the value of Identifier
.
The following lists the valid values:
elb
if Identifier
is the name of a Classic Load Balancer.
elbv2
if Identifier
is the ARN of an Application Load Balancer, Gateway Load Balancer,
or Network Load Balancer target group.
vpc-lattice
if Identifier
is the ARN of a VPC Lattice target group.
Required if the identifier is the name of a Classic Load Balancer.
type
- Provides additional context for the value of Identifier
.
The following lists the valid values:
elb
if Identifier
is the name of a Classic Load Balancer.
elbv2
if Identifier
is the ARN of an Application Load Balancer, Gateway Load
Balancer, or Network Load Balancer target group.
vpc-lattice
if Identifier
is the ARN of a VPC Lattice target group.
Required if the identifier is the name of a Classic Load Balancer.
public String getType()
Provides additional context for the value of Identifier
.
The following lists the valid values:
elb
if Identifier
is the name of a Classic Load Balancer.
elbv2
if Identifier
is the ARN of an Application Load Balancer, Gateway Load Balancer,
or Network Load Balancer target group.
vpc-lattice
if Identifier
is the ARN of a VPC Lattice target group.
Required if the identifier is the name of a Classic Load Balancer.
Identifier
.
The following lists the valid values:
elb
if Identifier
is the name of a Classic Load Balancer.
elbv2
if Identifier
is the ARN of an Application Load Balancer, Gateway Load
Balancer, or Network Load Balancer target group.
vpc-lattice
if Identifier
is the ARN of a VPC Lattice target group.
Required if the identifier is the name of a Classic Load Balancer.
public TrafficSourceState withType(String type)
Provides additional context for the value of Identifier
.
The following lists the valid values:
elb
if Identifier
is the name of a Classic Load Balancer.
elbv2
if Identifier
is the ARN of an Application Load Balancer, Gateway Load Balancer,
or Network Load Balancer target group.
vpc-lattice
if Identifier
is the ARN of a VPC Lattice target group.
Required if the identifier is the name of a Classic Load Balancer.
type
- Provides additional context for the value of Identifier
.
The following lists the valid values:
elb
if Identifier
is the name of a Classic Load Balancer.
elbv2
if Identifier
is the ARN of an Application Load Balancer, Gateway Load
Balancer, or Network Load Balancer target group.
vpc-lattice
if Identifier
is the ARN of a VPC Lattice target group.
Required if the identifier is the name of a Classic Load Balancer.
public String toString()
toString
in class Object
Object.toString()
public TrafficSourceState clone()