@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TargetGroupStickinessConfig extends Object implements Serializable, Cloneable
Information about the target group stickiness for a rule.
Constructor and Description |
---|
TargetGroupStickinessConfig() |
Modifier and Type | Method and Description |
---|---|
TargetGroupStickinessConfig |
clone() |
boolean |
equals(Object obj) |
Integer |
getDurationSeconds()
The time period, in seconds, during which requests from a client should be routed to the same target group.
|
Boolean |
getEnabled()
Indicates whether target group stickiness is enabled.
|
int |
hashCode() |
Boolean |
isEnabled()
Indicates whether target group stickiness is enabled.
|
void |
setDurationSeconds(Integer durationSeconds)
The time period, in seconds, during which requests from a client should be routed to the same target group.
|
void |
setEnabled(Boolean enabled)
Indicates whether target group stickiness is enabled.
|
String |
toString()
Returns a string representation of this object.
|
TargetGroupStickinessConfig |
withDurationSeconds(Integer durationSeconds)
The time period, in seconds, during which requests from a client should be routed to the same target group.
|
TargetGroupStickinessConfig |
withEnabled(Boolean enabled)
Indicates whether target group stickiness is enabled.
|
public void setEnabled(Boolean enabled)
Indicates whether target group stickiness is enabled.
enabled
- Indicates whether target group stickiness is enabled.public Boolean getEnabled()
Indicates whether target group stickiness is enabled.
public TargetGroupStickinessConfig withEnabled(Boolean enabled)
Indicates whether target group stickiness is enabled.
enabled
- Indicates whether target group stickiness is enabled.public Boolean isEnabled()
Indicates whether target group stickiness is enabled.
public void setDurationSeconds(Integer durationSeconds)
The time period, in seconds, during which requests from a client should be routed to the same target group. The range is 1-604800 seconds (7 days).
durationSeconds
- The time period, in seconds, during which requests from a client should be routed to the same target
group. The range is 1-604800 seconds (7 days).public Integer getDurationSeconds()
The time period, in seconds, during which requests from a client should be routed to the same target group. The range is 1-604800 seconds (7 days).
public TargetGroupStickinessConfig withDurationSeconds(Integer durationSeconds)
The time period, in seconds, during which requests from a client should be routed to the same target group. The range is 1-604800 seconds (7 days).
durationSeconds
- The time period, in seconds, during which requests from a client should be routed to the same target
group. The range is 1-604800 seconds (7 days).public String toString()
toString
in class Object
Object.toString()
public TargetGroupStickinessConfig clone()