public static class InstanceGroupManager.Builder extends Object
Modifier and Type | Method and Description |
---|---|
InstanceGroupManager.Builder |
addAllAutoHealingPolicies(List<InstanceGroupManagerAutoHealingPolicy> autoHealingPolicies)
The autohealing policy for this managed instance group.
|
InstanceGroupManager.Builder |
addAllNamedPorts(List<NamedPort> namedPorts)
Named ports configured for the Instance Groups complementary to this Instance Group Manager.
|
InstanceGroupManager.Builder |
addAllTargetPools(List<String> targetPools)
The URLs for all TargetPool resources to which instances in the instanceGroup field are
added.
|
InstanceGroupManager.Builder |
addAllVersions(List<InstanceGroupManagerVersion> versions)
Specifies the instance templates used by this managed instance group to create instances.
|
InstanceGroupManager.Builder |
addAutoHealingPolicies(InstanceGroupManagerAutoHealingPolicy autoHealingPolicies)
The autohealing policy for this managed instance group.
|
InstanceGroupManager.Builder |
addNamedPorts(NamedPort namedPorts)
Named ports configured for the Instance Groups complementary to this Instance Group Manager.
|
InstanceGroupManager.Builder |
addTargetPools(String targetPools)
The URLs for all TargetPool resources to which instances in the instanceGroup field are
added.
|
InstanceGroupManager.Builder |
addVersions(InstanceGroupManagerVersion versions)
Specifies the instance templates used by this managed instance group to create instances.
|
InstanceGroupManager |
build() |
InstanceGroupManager.Builder |
clone() |
List<InstanceGroupManagerAutoHealingPolicy> |
getAutoHealingPoliciesList()
The autohealing policy for this managed instance group.
|
String |
getBaseInstanceName()
The base instance name to use for instances in this group.
|
String |
getCreationTimestamp()
[Output Only] The creation timestamp for this managed instance group in RFC3339 text format.
|
InstanceGroupManagerActionsSummary |
getCurrentActions()
[Output Only] The list of instance actions and the number of instances in this managed
instance group that are scheduled for each of those actions.
|
String |
getDescription()
An optional description of this resource.
|
DistributionPolicy |
getDistributionPolicy()
Policy specifying intended distribution of instances in regional managed instance group.
|
String |
getFingerprint()
Fingerprint of this resource.
|
String |
getId()
[Output Only] A unique identifier for this resource type.
|
String |
getInstanceGroup()
[Output Only] The URL of the Instance Group resource.
|
String |
getInstanceTemplate()
The URL of the instance template that is specified for this managed instance group.
|
String |
getKind()
[Output Only] The resource type, which is always compute#instanceGroupManager for managed
instance groups.
|
String |
getName()
The name of the managed instance group.
|
List<NamedPort> |
getNamedPortsList()
Named ports configured for the Instance Groups complementary to this Instance Group Manager.
|
String |
getRegion()
[Output Only] The URL of the region where the managed instance group resides (for regional
resources).
|
String |
getSelfLink()
[Output Only] The URL for this managed instance group.
|
InstanceGroupManagerStatus |
getStatus()
[Output Only] The status of this managed instance group.
|
List<String> |
getTargetPoolsList()
The URLs for all TargetPool resources to which instances in the instanceGroup field are
added.
|
Integer |
getTargetSize()
The target number of running instances for this managed instance group.
|
InstanceGroupManagerUpdatePolicy |
getUpdatePolicy()
The update policy for this managed instance group.
|
List<InstanceGroupManagerVersion> |
getVersionsList()
Specifies the instance templates used by this managed instance group to create instances.
|
String |
getZone()
[Output Only] The URL of the zone where the managed instance group is located (for zonal
resources).
|
InstanceGroupManager.Builder |
mergeFrom(InstanceGroupManager other) |
InstanceGroupManager.Builder |
setBaseInstanceName(String baseInstanceName)
The base instance name to use for instances in this group.
|
InstanceGroupManager.Builder |
setCreationTimestamp(String creationTimestamp)
[Output Only] The creation timestamp for this managed instance group in RFC3339 text format.
|
InstanceGroupManager.Builder |
setCurrentActions(InstanceGroupManagerActionsSummary currentActions)
[Output Only] The list of instance actions and the number of instances in this managed
instance group that are scheduled for each of those actions.
|
InstanceGroupManager.Builder |
setDescription(String description)
An optional description of this resource.
|
InstanceGroupManager.Builder |
setDistributionPolicy(DistributionPolicy distributionPolicy)
Policy specifying intended distribution of instances in regional managed instance group.
|
InstanceGroupManager.Builder |
setFingerprint(String fingerprint)
Fingerprint of this resource.
|
InstanceGroupManager.Builder |
setId(String id)
[Output Only] A unique identifier for this resource type.
|
InstanceGroupManager.Builder |
setInstanceGroup(String instanceGroup)
[Output Only] The URL of the Instance Group resource.
|
InstanceGroupManager.Builder |
setInstanceTemplate(String instanceTemplate)
The URL of the instance template that is specified for this managed instance group.
|
InstanceGroupManager.Builder |
setKind(String kind)
[Output Only] The resource type, which is always compute#instanceGroupManager for managed
instance groups.
|
InstanceGroupManager.Builder |
setName(String name)
The name of the managed instance group.
|
InstanceGroupManager.Builder |
setRegion(String region)
[Output Only] The URL of the region where the managed instance group resides (for regional
resources).
|
InstanceGroupManager.Builder |
setSelfLink(String selfLink)
[Output Only] The URL for this managed instance group.
|
InstanceGroupManager.Builder |
setStatus(InstanceGroupManagerStatus status)
[Output Only] The status of this managed instance group.
|
InstanceGroupManager.Builder |
setTargetSize(Integer targetSize)
The target number of running instances for this managed instance group.
|
InstanceGroupManager.Builder |
setUpdatePolicy(InstanceGroupManagerUpdatePolicy updatePolicy)
The update policy for this managed instance group.
|
InstanceGroupManager.Builder |
setZone(String zone)
[Output Only] The URL of the zone where the managed instance group is located (for zonal
resources).
|
public InstanceGroupManager.Builder mergeFrom(InstanceGroupManager other)
public List<InstanceGroupManagerAutoHealingPolicy> getAutoHealingPoliciesList()
public InstanceGroupManager.Builder addAllAutoHealingPolicies(List<InstanceGroupManagerAutoHealingPolicy> autoHealingPolicies)
public InstanceGroupManager.Builder addAutoHealingPolicies(InstanceGroupManagerAutoHealingPolicy autoHealingPolicies)
public String getBaseInstanceName()
public InstanceGroupManager.Builder setBaseInstanceName(String baseInstanceName)
public String getCreationTimestamp()
public InstanceGroupManager.Builder setCreationTimestamp(String creationTimestamp)
public InstanceGroupManagerActionsSummary getCurrentActions()
public InstanceGroupManager.Builder setCurrentActions(InstanceGroupManagerActionsSummary currentActions)
public String getDescription()
public InstanceGroupManager.Builder setDescription(String description)
public DistributionPolicy getDistributionPolicy()
public InstanceGroupManager.Builder setDistributionPolicy(DistributionPolicy distributionPolicy)
public String getFingerprint()
To see the latest fingerprint, make a get() request to retrieve an InstanceGroupManager.
public InstanceGroupManager.Builder setFingerprint(String fingerprint)
To see the latest fingerprint, make a get() request to retrieve an InstanceGroupManager.
public String getId()
public InstanceGroupManager.Builder setId(String id)
public String getInstanceGroup()
public InstanceGroupManager.Builder setInstanceGroup(String instanceGroup)
public String getInstanceTemplate()
public InstanceGroupManager.Builder setInstanceTemplate(String instanceTemplate)
public String getKind()
public InstanceGroupManager.Builder setKind(String kind)
public String getName()
public InstanceGroupManager.Builder setName(String name)
public List<NamedPort> getNamedPortsList()
public InstanceGroupManager.Builder addAllNamedPorts(List<NamedPort> namedPorts)
public InstanceGroupManager.Builder addNamedPorts(NamedPort namedPorts)
public String getRegion()
public InstanceGroupManager.Builder setRegion(String region)
public String getSelfLink()
public InstanceGroupManager.Builder setSelfLink(String selfLink)
public InstanceGroupManagerStatus getStatus()
public InstanceGroupManager.Builder setStatus(InstanceGroupManagerStatus status)
public List<String> getTargetPoolsList()
public InstanceGroupManager.Builder addAllTargetPools(List<String> targetPools)
public InstanceGroupManager.Builder addTargetPools(String targetPools)
public Integer getTargetSize()
public InstanceGroupManager.Builder setTargetSize(Integer targetSize)
public InstanceGroupManagerUpdatePolicy getUpdatePolicy()
public InstanceGroupManager.Builder setUpdatePolicy(InstanceGroupManagerUpdatePolicy updatePolicy)
public List<InstanceGroupManagerVersion> getVersionsList()
Each version is defined by an instanceTemplate and a name. Every version can appear at most once per instance group. This field overrides the top-level instanceTemplate field. Read more about the relationships between these fields. Exactly one version must leave the targetSize field unset. That version will be applied to all remaining instances. For more information, read about canary updates.
public InstanceGroupManager.Builder addAllVersions(List<InstanceGroupManagerVersion> versions)
Each version is defined by an instanceTemplate and a name. Every version can appear at most once per instance group. This field overrides the top-level instanceTemplate field. Read more about the relationships between these fields. Exactly one version must leave the targetSize field unset. That version will be applied to all remaining instances. For more information, read about canary updates.
public InstanceGroupManager.Builder addVersions(InstanceGroupManagerVersion versions)
Each version is defined by an instanceTemplate and a name. Every version can appear at most once per instance group. This field overrides the top-level instanceTemplate field. Read more about the relationships between these fields. Exactly one version must leave the targetSize field unset. That version will be applied to all remaining instances. For more information, read about canary updates.
public String getZone()
public InstanceGroupManager.Builder setZone(String zone)
public InstanceGroupManager build()
public InstanceGroupManager.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.