public static class InstanceGroup.Builder extends Object
Modifier and Type | Method and Description |
---|---|
InstanceGroup.Builder |
addAllNamedPorts(List<NamedPort> namedPorts)
Assigns a name to a port number.
|
InstanceGroup.Builder |
addNamedPorts(NamedPort namedPorts)
Assigns a name to a port number.
|
InstanceGroup |
build() |
InstanceGroup.Builder |
clone() |
String |
getCreationTimestamp()
[Output Only] The creation timestamp for this instance group in RFC3339 text format.
|
String |
getDescription()
An optional description of this resource.
|
String |
getFingerprint()
[Output Only] The fingerprint of the named ports.
|
String |
getId()
[Output Only] A unique identifier for this instance group, generated by the server.
|
String |
getKind()
[Output Only] The resource type, which is always compute#instanceGroup for instance groups.
|
String |
getName()
The name of the instance group.
|
List<NamedPort> |
getNamedPortsList()
Assigns a name to a port number.
|
String |
getNetwork()
The URL of the network to which all instances in the instance group belong.
|
String |
getRegion()
[Output Only] The URL of the region where the instance group is located (for regional
resources).
|
String |
getSelfLink()
[Output Only] The URL for this instance group.
|
Integer |
getSize()
[Output Only] The total number of instances in the instance group.
|
String |
getSubnetwork()
[Output Only] The URL of the subnetwork to which all instances in the instance group belong.
|
String |
getZone()
[Output Only] The URL of the zone where the instance group is located (for zonal resources).
|
InstanceGroup.Builder |
mergeFrom(InstanceGroup other) |
InstanceGroup.Builder |
setCreationTimestamp(String creationTimestamp)
[Output Only] The creation timestamp for this instance group in RFC3339 text format.
|
InstanceGroup.Builder |
setDescription(String description)
An optional description of this resource.
|
InstanceGroup.Builder |
setFingerprint(String fingerprint)
[Output Only] The fingerprint of the named ports.
|
InstanceGroup.Builder |
setId(String id)
[Output Only] A unique identifier for this instance group, generated by the server.
|
InstanceGroup.Builder |
setKind(String kind)
[Output Only] The resource type, which is always compute#instanceGroup for instance groups.
|
InstanceGroup.Builder |
setName(String name)
The name of the instance group.
|
InstanceGroup.Builder |
setNetwork(String network)
The URL of the network to which all instances in the instance group belong.
|
InstanceGroup.Builder |
setRegion(String region)
[Output Only] The URL of the region where the instance group is located (for regional
resources).
|
InstanceGroup.Builder |
setSelfLink(String selfLink)
[Output Only] The URL for this instance group.
|
InstanceGroup.Builder |
setSize(Integer size)
[Output Only] The total number of instances in the instance group.
|
InstanceGroup.Builder |
setSubnetwork(String subnetwork)
[Output Only] The URL of the subnetwork to which all instances in the instance group belong.
|
InstanceGroup.Builder |
setZone(String zone)
[Output Only] The URL of the zone where the instance group is located (for zonal resources).
|
public InstanceGroup.Builder mergeFrom(InstanceGroup other)
public String getCreationTimestamp()
public InstanceGroup.Builder setCreationTimestamp(String creationTimestamp)
public String getDescription()
public InstanceGroup.Builder setDescription(String description)
public String getFingerprint()
public InstanceGroup.Builder setFingerprint(String fingerprint)
public String getId()
public InstanceGroup.Builder setId(String id)
public String getKind()
public InstanceGroup.Builder setKind(String kind)
public String getName()
public InstanceGroup.Builder setName(String name)
public List<NamedPort> getNamedPortsList()
This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "http", port: 80},{name: "http", port: 8080}]
Named ports apply to all instances in this instance group.
public InstanceGroup.Builder addAllNamedPorts(List<NamedPort> namedPorts)
This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "http", port: 80},{name: "http", port: 8080}]
Named ports apply to all instances in this instance group.
public InstanceGroup.Builder addNamedPorts(NamedPort namedPorts)
This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "http", port: 80},{name: "http", port: 8080}]
Named ports apply to all instances in this instance group.
public String getNetwork()
public InstanceGroup.Builder setNetwork(String network)
public String getRegion()
public InstanceGroup.Builder setRegion(String region)
public String getSelfLink()
public InstanceGroup.Builder setSelfLink(String selfLink)
public Integer getSize()
public InstanceGroup.Builder setSize(Integer size)
public String getSubnetwork()
public InstanceGroup.Builder setSubnetwork(String subnetwork)
public String getZone()
public InstanceGroup.Builder setZone(String zone)
public InstanceGroup build()
public InstanceGroup.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.