Reference documentation and code samples for the Google Cloud Capacity Planner V1beta Client class DemandPreference.
Preference associated with a request, such as flexibility with alternate resource type.
Generated from protobuf message google.cloud.capacityplanner.v1beta.DemandPreference
Namespace
Google \ Cloud \ CapacityPlanner \ V1betaMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ preference_id |
string
Output only. The preference id. |
↳ value |
Value
Required. The value of demand preference. |
getPreferenceId
Output only. The preference id.
| Returns | |
|---|---|
| Type | Description |
string |
|
setPreferenceId
Output only. The preference id.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getValue
Required. The value of demand preference.
| Returns | |
|---|---|
| Type | Description |
Value|null |
|
hasValue
clearValue
setValue
Required. The value of demand preference.
| Parameter | |
|---|---|
| Name | Description |
var |
Value
|
| Returns | |
|---|---|
| Type | Description |
$this |
|