Reference documentation and code samples for the Compute V1 Client class BackendServiceHttpCookie.
The HTTP cookie used for stateful session affinity.
Generated from protobuf message google.cloud.compute.v1.BackendServiceHttpCookie
Namespace
Google \ Cloud \ Compute \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Name of the cookie. |
↳ path |
string
Path to set for the cookie. |
↳ ttl |
Duration
Lifetime of the cookie. |
getName
Name of the cookie.
Returns | |
---|---|
Type | Description |
string |
hasName
clearName
setName
Name of the cookie.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getPath
Path to set for the cookie.
Returns | |
---|---|
Type | Description |
string |
hasPath
clearPath
setPath
Path to set for the cookie.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getTtl
Lifetime of the cookie.
Returns | |
---|---|
Type | Description |
Duration|null |
hasTtl
clearTtl
setTtl
Lifetime of the cookie.
Parameter | |
---|---|
Name | Description |
var |
Duration
|
Returns | |
---|---|
Type | Description |
$this |