public static final class InstanceGroupManagerInstanceLifecyclePolicy.Builder extends GeneratedMessage.Builder<InstanceGroupManagerInstanceLifecyclePolicy.Builder> implements InstanceGroupManagerInstanceLifecyclePolicyOrBuilder Protobuf type google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > InstanceGroupManagerInstanceLifecyclePolicy.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public InstanceGroupManagerInstanceLifecyclePolicy build()| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceLifecyclePolicy |
|
buildPartial()
public InstanceGroupManagerInstanceLifecyclePolicy buildPartial()| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceLifecyclePolicy |
|
clear()
public InstanceGroupManagerInstanceLifecyclePolicy.Builder clear()| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceLifecyclePolicy.Builder |
|
clearDefaultActionOnFailure()
public InstanceGroupManagerInstanceLifecyclePolicy.Builder clearDefaultActionOnFailure()The action that a MIG performs on a failed or an unhealthy VM. A VM is marked as unhealthy when the application running on that VM fails a health check. Valid values are
- REPAIR (default): MIG automatically repairs a failed or an unhealthy VM by recreating it. For more information, see About repairing VMs in a MIG.
- DO_NOTHING: MIG does not repair a failed or an unhealthy VM. Check the DefaultActionOnFailure enum for the list of possible values.
optional string default_action_on_failure = 61383253;
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceLifecyclePolicy.Builder |
This builder for chaining. |
clearForceUpdateOnRepair()
public InstanceGroupManagerInstanceLifecyclePolicy.Builder clearForceUpdateOnRepair()A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM. Valid options are:
NO (default): If configuration updates are available, they are not forcefully applied during repair. Instead, configuration updates are applied according to the group's update policy.
YES: If configuration updates are available, they are applied during repair. Check the ForceUpdateOnRepair enum for the list of possible values.
optional string force_update_on_repair = 356302027;
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceLifecyclePolicy.Builder |
This builder for chaining. |
getDefaultActionOnFailure()
public String getDefaultActionOnFailure()The action that a MIG performs on a failed or an unhealthy VM. A VM is marked as unhealthy when the application running on that VM fails a health check. Valid values are
- REPAIR (default): MIG automatically repairs a failed or an unhealthy VM by recreating it. For more information, see About repairing VMs in a MIG.
- DO_NOTHING: MIG does not repair a failed or an unhealthy VM. Check the DefaultActionOnFailure enum for the list of possible values.
optional string default_action_on_failure = 61383253;
| Returns | |
|---|---|
| Type | Description |
String |
The defaultActionOnFailure. |
getDefaultActionOnFailureBytes()
public ByteString getDefaultActionOnFailureBytes()The action that a MIG performs on a failed or an unhealthy VM. A VM is marked as unhealthy when the application running on that VM fails a health check. Valid values are
- REPAIR (default): MIG automatically repairs a failed or an unhealthy VM by recreating it. For more information, see About repairing VMs in a MIG.
- DO_NOTHING: MIG does not repair a failed or an unhealthy VM. Check the DefaultActionOnFailure enum for the list of possible values.
optional string default_action_on_failure = 61383253;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for defaultActionOnFailure. |
getDefaultInstanceForType()
public InstanceGroupManagerInstanceLifecyclePolicy getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceLifecyclePolicy |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getForceUpdateOnRepair()
public String getForceUpdateOnRepair()A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM. Valid options are:
NO (default): If configuration updates are available, they are not forcefully applied during repair. Instead, configuration updates are applied according to the group's update policy.
YES: If configuration updates are available, they are applied during repair. Check the ForceUpdateOnRepair enum for the list of possible values.
optional string force_update_on_repair = 356302027;
| Returns | |
|---|---|
| Type | Description |
String |
The forceUpdateOnRepair. |
getForceUpdateOnRepairBytes()
public ByteString getForceUpdateOnRepairBytes()A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM. Valid options are:
NO (default): If configuration updates are available, they are not forcefully applied during repair. Instead, configuration updates are applied according to the group's update policy.
YES: If configuration updates are available, they are applied during repair. Check the ForceUpdateOnRepair enum for the list of possible values.
optional string force_update_on_repair = 356302027;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for forceUpdateOnRepair. |
hasDefaultActionOnFailure()
public boolean hasDefaultActionOnFailure()The action that a MIG performs on a failed or an unhealthy VM. A VM is marked as unhealthy when the application running on that VM fails a health check. Valid values are
- REPAIR (default): MIG automatically repairs a failed or an unhealthy VM by recreating it. For more information, see About repairing VMs in a MIG.
- DO_NOTHING: MIG does not repair a failed or an unhealthy VM. Check the DefaultActionOnFailure enum for the list of possible values.
optional string default_action_on_failure = 61383253;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the defaultActionOnFailure field is set. |
hasForceUpdateOnRepair()
public boolean hasForceUpdateOnRepair()A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM. Valid options are:
NO (default): If configuration updates are available, they are not forcefully applied during repair. Instead, configuration updates are applied according to the group's update policy.
YES: If configuration updates are available, they are applied during repair. Check the ForceUpdateOnRepair enum for the list of possible values.
optional string force_update_on_repair = 356302027;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the forceUpdateOnRepair field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(InstanceGroupManagerInstanceLifecyclePolicy other)
public InstanceGroupManagerInstanceLifecyclePolicy.Builder mergeFrom(InstanceGroupManagerInstanceLifecyclePolicy other)| Parameter | |
|---|---|
| Name | Description |
other |
InstanceGroupManagerInstanceLifecyclePolicy |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceLifecyclePolicy.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public InstanceGroupManagerInstanceLifecyclePolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceLifecyclePolicy.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public InstanceGroupManagerInstanceLifecyclePolicy.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceLifecyclePolicy.Builder |
|
setDefaultActionOnFailure(String value)
public InstanceGroupManagerInstanceLifecyclePolicy.Builder setDefaultActionOnFailure(String value)The action that a MIG performs on a failed or an unhealthy VM. A VM is marked as unhealthy when the application running on that VM fails a health check. Valid values are
- REPAIR (default): MIG automatically repairs a failed or an unhealthy VM by recreating it. For more information, see About repairing VMs in a MIG.
- DO_NOTHING: MIG does not repair a failed or an unhealthy VM. Check the DefaultActionOnFailure enum for the list of possible values.
optional string default_action_on_failure = 61383253;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe defaultActionOnFailure to set. |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceLifecyclePolicy.Builder |
This builder for chaining. |
setDefaultActionOnFailureBytes(ByteString value)
public InstanceGroupManagerInstanceLifecyclePolicy.Builder setDefaultActionOnFailureBytes(ByteString value)The action that a MIG performs on a failed or an unhealthy VM. A VM is marked as unhealthy when the application running on that VM fails a health check. Valid values are
- REPAIR (default): MIG automatically repairs a failed or an unhealthy VM by recreating it. For more information, see About repairing VMs in a MIG.
- DO_NOTHING: MIG does not repair a failed or an unhealthy VM. Check the DefaultActionOnFailure enum for the list of possible values.
optional string default_action_on_failure = 61383253;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for defaultActionOnFailure to set. |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceLifecyclePolicy.Builder |
This builder for chaining. |
setForceUpdateOnRepair(String value)
public InstanceGroupManagerInstanceLifecyclePolicy.Builder setForceUpdateOnRepair(String value)A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM. Valid options are:
NO (default): If configuration updates are available, they are not forcefully applied during repair. Instead, configuration updates are applied according to the group's update policy.
YES: If configuration updates are available, they are applied during repair. Check the ForceUpdateOnRepair enum for the list of possible values.
optional string force_update_on_repair = 356302027;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe forceUpdateOnRepair to set. |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceLifecyclePolicy.Builder |
This builder for chaining. |
setForceUpdateOnRepairBytes(ByteString value)
public InstanceGroupManagerInstanceLifecyclePolicy.Builder setForceUpdateOnRepairBytes(ByteString value)A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM. Valid options are:
NO (default): If configuration updates are available, they are not forcefully applied during repair. Instead, configuration updates are applied according to the group's update policy.
YES: If configuration updates are available, they are applied during repair. Check the ForceUpdateOnRepair enum for the list of possible values.
optional string force_update_on_repair = 356302027;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for forceUpdateOnRepair to set. |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceLifecyclePolicy.Builder |
This builder for chaining. |