Google Cloud Migration Center V1 Client - Class PreferenceSet (1.0.2)

Reference documentation and code samples for the Google Cloud Migration Center V1 Client class PreferenceSet.

The preferences that apply to all assets in a given context.

Generated from protobuf message google.cloud.migrationcenter.v1.PreferenceSet

Namespace

Google \ Cloud \ MigrationCenter \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Output only. Name of the preference set.

↳ create_time Google\Protobuf\Timestamp

Output only. The timestamp when the preference set was created.

↳ update_time Google\Protobuf\Timestamp

Output only. The timestamp when the preference set was last updated.

↳ display_name string

User-friendly display name. Maximum length is 63 characters.

↳ description string

A description of the preference set.

↳ virtual_machine_preferences VirtualMachinePreferences

A set of preferences that applies to all virtual machines in the context.

getName

Output only. Name of the preference set.

Returns
Type Description
string

setName

Output only. Name of the preference set.

Parameter
Name Description
var string
Returns
Type Description
$this

getCreateTime

Output only. The timestamp when the preference set was created.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The timestamp when the preference set was created.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getUpdateTime

Output only. The timestamp when the preference set was last updated.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The timestamp when the preference set was last updated.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getDisplayName

User-friendly display name. Maximum length is 63 characters.

Returns
Type Description
string

setDisplayName

User-friendly display name. Maximum length is 63 characters.

Parameter
Name Description
var string
Returns
Type Description
$this

getDescription

A description of the preference set.

Returns
Type Description
string

setDescription

A description of the preference set.

Parameter
Name Description
var string
Returns
Type Description
$this

getVirtualMachinePreferences

A set of preferences that applies to all virtual machines in the context.

Returns
Type Description
VirtualMachinePreferences|null

hasVirtualMachinePreferences

clearVirtualMachinePreferences

setVirtualMachinePreferences

A set of preferences that applies to all virtual machines in the context.

Parameter
Name Description
var VirtualMachinePreferences
Returns
Type Description
$this