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

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
NameDescription
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 Google\Cloud\MigrationCenter\V1\VirtualMachinePreferences

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

getName

Output only. Name of the preference set.

Returns
TypeDescription
string

setName

Output only. Name of the preference set.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

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

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

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

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

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

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

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

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getDisplayName

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

Returns
TypeDescription
string

setDisplayName

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDescription

A description of the preference set.

Returns
TypeDescription
string

setDescription

A description of the preference set.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getVirtualMachinePreferences

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

Returns
TypeDescription
Google\Cloud\MigrationCenter\V1\VirtualMachinePreferences|null

hasVirtualMachinePreferences

clearVirtualMachinePreferences

setVirtualMachinePreferences

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

Parameter
NameDescription
var Google\Cloud\MigrationCenter\V1\VirtualMachinePreferences
Returns
TypeDescription
$this