Class SessionStickinessConfig
- java.lang.Object
-
- software.amazon.awssdk.services.cloudfront.model.SessionStickinessConfig
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<SessionStickinessConfig.Builder,SessionStickinessConfig>
@Generated("software.amazon.awssdk:codegen") public final class SessionStickinessConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SessionStickinessConfig.Builder,SessionStickinessConfig>
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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SessionStickinessConfig.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SessionStickinessConfig.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Integer
idleTTL()
The amount of time after which you want sessions to cease if no requests are received.Integer
maximumTTL()
The maximum amount of time to consider requests from the viewer as being part of the same session.List<SdkField<?>>
sdkFields()
static Class<? extends SessionStickinessConfig.Builder>
serializableBuilderClass()
SessionStickinessConfig.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
idleTTL
public final 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
.- Returns:
- 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
.
-
maximumTTL
public final 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 greater than or equal to
IdleTTL
.- Returns:
- 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 greater than or equal to
IdleTTL
.
-
toBuilder
public SessionStickinessConfig.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<SessionStickinessConfig.Builder,SessionStickinessConfig>
-
builder
public static SessionStickinessConfig.Builder builder()
-
serializableBuilderClass
public static Class<? extends SessionStickinessConfig.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-