public static class NodeTemplate.Builder extends Object
Modifier and Type | Method and Description |
---|---|
NodeTemplate |
build() |
NodeTemplate.Builder |
clone() |
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
String |
getDescription()
An optional description of this resource.
|
String |
getId()
[Output Only] The unique identifier for the resource.
|
String |
getKind()
[Output Only] The type of the resource.
|
String |
getName()
The name of the resource, provided by the client when initially creating the resource.
|
Map<String,String> |
getNodeAffinityLabelsMap()
Labels to use for node affinity, which will be used in instance scheduling.
|
String |
getNodeType()
The node type to use for nodes group that are created from this template.
|
NodeTemplateNodeTypeFlexibility |
getNodeTypeFlexibility()
The flexible properties of the desired node type.
|
String |
getRegion()
[Output Only] The name of the region where the node template resides, such as us-central1.
|
String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
ServerBinding |
getServerBinding()
Sets the binding properties for the physical server.
|
String |
getStatus()
[Output Only] The status of the node template.
|
String |
getStatusMessage()
[Output Only] An optional, human-readable explanation of the status.
|
NodeTemplate.Builder |
mergeFrom(NodeTemplate other) |
NodeTemplate.Builder |
putAllNodeAffinityLabels(Map<String,String> nodeAffinityLabels)
Labels to use for node affinity, which will be used in instance scheduling.
|
NodeTemplate.Builder |
setCreationTimestamp(String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
|
NodeTemplate.Builder |
setDescription(String description)
An optional description of this resource.
|
NodeTemplate.Builder |
setId(String id)
[Output Only] The unique identifier for the resource.
|
NodeTemplate.Builder |
setKind(String kind)
[Output Only] The type of the resource.
|
NodeTemplate.Builder |
setName(String name)
The name of the resource, provided by the client when initially creating the resource.
|
NodeTemplate.Builder |
setNodeType(String nodeType)
The node type to use for nodes group that are created from this template.
|
NodeTemplate.Builder |
setNodeTypeFlexibility(NodeTemplateNodeTypeFlexibility nodeTypeFlexibility)
The flexible properties of the desired node type.
|
NodeTemplate.Builder |
setRegion(String region)
[Output Only] The name of the region where the node template resides, such as us-central1.
|
NodeTemplate.Builder |
setSelfLink(String selfLink)
[Output Only] Server-defined URL for the resource.
|
NodeTemplate.Builder |
setServerBinding(ServerBinding serverBinding)
Sets the binding properties for the physical server.
|
NodeTemplate.Builder |
setStatus(String status)
[Output Only] The status of the node template.
|
NodeTemplate.Builder |
setStatusMessage(String statusMessage)
[Output Only] An optional, human-readable explanation of the status.
|
public NodeTemplate.Builder mergeFrom(NodeTemplate other)
public String getCreationTimestamp()
public NodeTemplate.Builder setCreationTimestamp(String creationTimestamp)
public String getDescription()
public NodeTemplate.Builder setDescription(String description)
public String getId()
public NodeTemplate.Builder setId(String id)
public String getKind()
public NodeTemplate.Builder setKind(String kind)
public String getName()
public NodeTemplate.Builder setName(String name)
public Map<String,String> getNodeAffinityLabelsMap()
public NodeTemplate.Builder putAllNodeAffinityLabels(Map<String,String> nodeAffinityLabels)
public String getNodeType()
public NodeTemplate.Builder setNodeType(String nodeType)
public NodeTemplateNodeTypeFlexibility getNodeTypeFlexibility()
This field is mutually exclusive with the node_type property; you can only define one or the other, but not both.
public NodeTemplate.Builder setNodeTypeFlexibility(NodeTemplateNodeTypeFlexibility nodeTypeFlexibility)
This field is mutually exclusive with the node_type property; you can only define one or the other, but not both.
public String getRegion()
public NodeTemplate.Builder setRegion(String region)
public String getSelfLink()
public NodeTemplate.Builder setSelfLink(String selfLink)
public ServerBinding getServerBinding()
See Sole-tenant node options for more information.
public NodeTemplate.Builder setServerBinding(ServerBinding serverBinding)
See Sole-tenant node options for more information.
public String getStatus()
public NodeTemplate.Builder setStatus(String status)
public String getStatusMessage()
public NodeTemplate.Builder setStatusMessage(String statusMessage)
public NodeTemplate build()
public NodeTemplate.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.