Interface HttpRoute.StatefulSessionAffinityPolicyOrBuilder (0.23.0)

public static interface HttpRoute.StatefulSessionAffinityPolicyOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCookieTtl()

public abstract Duration getCookieTtl()

Required. The cookie TTL value for the Set-Cookie header generated by the data plane. The lifetime of the cookie may be set to a value from 0 to 86400 seconds (24 hours) inclusive.

Set this to 0s to use a session cookie and disable cookie expiration.

.google.protobuf.Duration cookie_ttl = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Duration

The cookieTtl.

getCookieTtlOrBuilder()

public abstract DurationOrBuilder getCookieTtlOrBuilder()

Required. The cookie TTL value for the Set-Cookie header generated by the data plane. The lifetime of the cookie may be set to a value from 0 to 86400 seconds (24 hours) inclusive.

Set this to 0s to use a session cookie and disable cookie expiration.

.google.protobuf.Duration cookie_ttl = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DurationOrBuilder

hasCookieTtl()

public abstract boolean hasCookieTtl()

Required. The cookie TTL value for the Set-Cookie header generated by the data plane. The lifetime of the cookie may be set to a value from 0 to 86400 seconds (24 hours) inclusive.

Set this to 0s to use a session cookie and disable cookie expiration.

.google.protobuf.Duration cookie_ttl = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the cookieTtl field is set.