@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SessionStickinessConfig extends Object implements Serializable, Cloneable
Session stickiness provides the ability to define multiple requests from a single viewer as a single session. This prevents the potentially inconsistent experience of sending some of a given user's requests to your staging distribution, while others are sent to your primary distribution. Define the session duration using TTL values.
Constructor and Description |
---|
SessionStickinessConfig() |
Modifier and Type | Method and Description |
---|---|
SessionStickinessConfig |
clone() |
boolean |
equals(Object obj) |
Integer |
getIdleTTL()
The amount of time after which you want sessions to cease if no requests are received.
|
Integer |
getMaximumTTL()
The maximum amount of time to consider requests from the viewer as being part of the same session.
|
int |
hashCode() |
void |
setIdleTTL(Integer idleTTL)
The amount of time after which you want sessions to cease if no requests are received.
|
void |
setMaximumTTL(Integer maximumTTL)
The maximum amount of time to consider requests from the viewer as being part of the same session.
|
String |
toString()
Returns a string representation of this object.
|
SessionStickinessConfig |
withIdleTTL(Integer idleTTL)
The amount of time after which you want sessions to cease if no requests are received.
|
SessionStickinessConfig |
withMaximumTTL(Integer maximumTTL)
The maximum amount of time to consider requests from the viewer as being part of the same session.
|
public void setIdleTTL(Integer idleTTL)
The amount of time after which you want sessions to cease if no requests are received. Allowed values are 300–3600 seconds (5–60 minutes).
The value must be less than or equal to MaximumTTL
.
idleTTL
- The amount of time after which you want sessions to cease if no requests are received. Allowed values are
300–3600 seconds (5–60 minutes).
The value must be less than or equal to MaximumTTL
.
public Integer getIdleTTL()
The amount of time after which you want sessions to cease if no requests are received. Allowed values are 300–3600 seconds (5–60 minutes).
The value must be less than or equal to MaximumTTL
.
The value must be less than or equal to MaximumTTL
.
public SessionStickinessConfig withIdleTTL(Integer idleTTL)
The amount of time after which you want sessions to cease if no requests are received. Allowed values are 300–3600 seconds (5–60 minutes).
The value must be less than or equal to MaximumTTL
.
idleTTL
- The amount of time after which you want sessions to cease if no requests are received. Allowed values are
300–3600 seconds (5–60 minutes).
The value must be less than or equal to MaximumTTL
.
public void setMaximumTTL(Integer maximumTTL)
The maximum amount of time to consider requests from the viewer as being part of the same session. Allowed values are 300–3600 seconds (5–60 minutes).
The value must be less than or equal to IdleTTL
.
maximumTTL
- The maximum amount of time to consider requests from the viewer as being part of the same session. Allowed
values are 300–3600 seconds (5–60 minutes).
The value must be less than or equal to IdleTTL
.
public Integer getMaximumTTL()
The maximum amount of time to consider requests from the viewer as being part of the same session. Allowed values are 300–3600 seconds (5–60 minutes).
The value must be less than or equal to IdleTTL
.
The value must be less than or equal to IdleTTL
.
public SessionStickinessConfig withMaximumTTL(Integer maximumTTL)
The maximum amount of time to consider requests from the viewer as being part of the same session. Allowed values are 300–3600 seconds (5–60 minutes).
The value must be less than or equal to IdleTTL
.
maximumTTL
- The maximum amount of time to consider requests from the viewer as being part of the same session. Allowed
values are 300–3600 seconds (5–60 minutes).
The value must be less than or equal to IdleTTL
.
public String toString()
toString
in class Object
Object.toString()
public SessionStickinessConfig clone()