Class InstanceGroupManagerInstanceLifecyclePolicyOnRepair.Builder (1.105.0)

public static final class InstanceGroupManagerInstanceLifecyclePolicyOnRepair.Builder extends GeneratedMessage.Builder<InstanceGroupManagerInstanceLifecyclePolicyOnRepair.Builder> implements InstanceGroupManagerInstanceLifecyclePolicyOnRepairOrBuilder

Configuration for VM repairs in the MIG.

Protobuf type google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicyOnRepair

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public InstanceGroupManagerInstanceLifecyclePolicyOnRepair build()
Returns
Type Description
InstanceGroupManagerInstanceLifecyclePolicyOnRepair

buildPartial()

public InstanceGroupManagerInstanceLifecyclePolicyOnRepair buildPartial()
Returns
Type Description
InstanceGroupManagerInstanceLifecyclePolicyOnRepair

clear()

public InstanceGroupManagerInstanceLifecyclePolicyOnRepair.Builder clear()
Returns
Type Description
InstanceGroupManagerInstanceLifecyclePolicyOnRepair.Builder
Overrides

clearAllowChangingZone()

public InstanceGroupManagerInstanceLifecyclePolicyOnRepair.Builder clearAllowChangingZone()

Specifies whether the MIG can change a VM's zone during a repair. Valid values are:

  • NO (default): MIG cannot change a VM's zone during a repair.
  • YES: MIG can select a different zone for the VM during a repair. Check the AllowChangingZone enum for the list of possible values.

optional string allow_changing_zone = 426055112;

Returns
Type Description
InstanceGroupManagerInstanceLifecyclePolicyOnRepair.Builder

This builder for chaining.

getAllowChangingZone()

public String getAllowChangingZone()

Specifies whether the MIG can change a VM's zone during a repair. Valid values are:

  • NO (default): MIG cannot change a VM's zone during a repair.
  • YES: MIG can select a different zone for the VM during a repair. Check the AllowChangingZone enum for the list of possible values.

optional string allow_changing_zone = 426055112;

Returns
Type Description
String

The allowChangingZone.

getAllowChangingZoneBytes()

public ByteString getAllowChangingZoneBytes()

Specifies whether the MIG can change a VM's zone during a repair. Valid values are:

  • NO (default): MIG cannot change a VM's zone during a repair.
  • YES: MIG can select a different zone for the VM during a repair. Check the AllowChangingZone enum for the list of possible values.

optional string allow_changing_zone = 426055112;

Returns
Type Description
ByteString

The bytes for allowChangingZone.

getDefaultInstanceForType()

public InstanceGroupManagerInstanceLifecyclePolicyOnRepair getDefaultInstanceForType()
Returns
Type Description
InstanceGroupManagerInstanceLifecyclePolicyOnRepair

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

hasAllowChangingZone()

public boolean hasAllowChangingZone()

Specifies whether the MIG can change a VM's zone during a repair. Valid values are:

  • NO (default): MIG cannot change a VM's zone during a repair.
  • YES: MIG can select a different zone for the VM during a repair. Check the AllowChangingZone enum for the list of possible values.

optional string allow_changing_zone = 426055112;

Returns
Type Description
boolean

Whether the allowChangingZone field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InstanceGroupManagerInstanceLifecyclePolicyOnRepair other)

public InstanceGroupManagerInstanceLifecyclePolicyOnRepair.Builder mergeFrom(InstanceGroupManagerInstanceLifecyclePolicyOnRepair other)
Parameter
Name Description
other InstanceGroupManagerInstanceLifecyclePolicyOnRepair
Returns
Type Description
InstanceGroupManagerInstanceLifecyclePolicyOnRepair.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InstanceGroupManagerInstanceLifecyclePolicyOnRepair.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstanceGroupManagerInstanceLifecyclePolicyOnRepair.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public InstanceGroupManagerInstanceLifecyclePolicyOnRepair.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
InstanceGroupManagerInstanceLifecyclePolicyOnRepair.Builder
Overrides

setAllowChangingZone(String value)

public InstanceGroupManagerInstanceLifecyclePolicyOnRepair.Builder setAllowChangingZone(String value)

Specifies whether the MIG can change a VM's zone during a repair. Valid values are:

  • NO (default): MIG cannot change a VM's zone during a repair.
  • YES: MIG can select a different zone for the VM during a repair. Check the AllowChangingZone enum for the list of possible values.

optional string allow_changing_zone = 426055112;

Parameter
Name Description
value String

The allowChangingZone to set.

Returns
Type Description
InstanceGroupManagerInstanceLifecyclePolicyOnRepair.Builder

This builder for chaining.

setAllowChangingZoneBytes(ByteString value)

public InstanceGroupManagerInstanceLifecyclePolicyOnRepair.Builder setAllowChangingZoneBytes(ByteString value)

Specifies whether the MIG can change a VM's zone during a repair. Valid values are:

  • NO (default): MIG cannot change a VM's zone during a repair.
  • YES: MIG can select a different zone for the VM during a repair. Check the AllowChangingZone enum for the list of possible values.

optional string allow_changing_zone = 426055112;

Parameter
Name Description
value ByteString

The bytes for allowChangingZone to set.

Returns
Type Description
InstanceGroupManagerInstanceLifecyclePolicyOnRepair.Builder

This builder for chaining.