Compute V1 Client - Class ConsistentHashLoadBalancerSettingsHttpCookie (1.5.0)

Reference documentation and code samples for the Compute V1 Client class ConsistentHashLoadBalancerSettingsHttpCookie.

The information about the HTTP Cookie on which the hash function is based for load balancing policies that use a consistent hash.

Generated from protobuf message google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Name of the cookie.

↳ path string

Path to set for the cookie.

↳ ttl Google\Cloud\Compute\V1\Duration

Lifetime of the cookie.

getName

Name of the cookie.

Generated from protobuf field optional string name = 3373707;

Returns
TypeDescription
string

hasName

clearName

setName

Name of the cookie.

Generated from protobuf field optional string name = 3373707;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPath

Path to set for the cookie.

Generated from protobuf field optional string path = 3433509;

Returns
TypeDescription
string

hasPath

clearPath

setPath

Path to set for the cookie.

Generated from protobuf field optional string path = 3433509;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTtl

Lifetime of the cookie.

Generated from protobuf field optional .google.cloud.compute.v1.Duration ttl = 115180;

Returns
TypeDescription
Google\Cloud\Compute\V1\Duration|null

hasTtl

clearTtl

setTtl

Lifetime of the cookie.

Generated from protobuf field optional .google.cloud.compute.v1.Duration ttl = 115180;

Parameter
NameDescription
var Google\Cloud\Compute\V1\Duration
Returns
TypeDescription
$this