Class NodeDetails.Builder
java.lang.Object
co.yellowdog.platform.model.NodeDetails.Builder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The hostname of the instance.instanceId
(String instanceId) The ID of the node's instance.instanceType
(String instanceType) The instance type of the instance.The slot number of this node within its node type if slot numbering has been configured.The node type of this node if node types have been configured.privateIpAddress
(String privateIpAddress) The private IP address of the instance.provider
(CloudProvider provider) The provider of the node's instance.publicIpAddress
(String publicIpAddress) The public IP address of the instance.The amount of RAM in GB on the node's instance.The region in which the node's instance is running.sourceName
(String sourceName) The name of the compute source from which the node's instance was provisioned.sourceNumber
(Integer sourceNumber) The number of the compute source based on its order within the parent compute requirement.supportedTaskTypes
(List<@NotBlank String> supportedTaskTypes) The task types supported by this node.toString()
The number of processors (threads) on the node's instance.An optional tag value that can be used to constrain worker allocation.
-
Method Details
-
instanceId
The ID of the node's instance.- Parameters:
instanceId
- the ID of the node's instance- Returns:
this
.
-
provider
The provider of the node's instance.- Parameters:
provider
- the provider of the node's instance- Returns:
this
.
-
region
The region in which the node's instance is running.- Parameters:
region
- the region- Returns:
this
.
-
sourceName
The name of the compute source from which the node's instance was provisioned.- Parameters:
sourceName
- the compute source name- Returns:
this
.
-
sourceNumber
The number of the compute source based on its order within the parent compute requirement.- Parameters:
sourceNumber
- the compute source number- Returns:
this
.
-
instanceType
The instance type of the instance.- Parameters:
instanceType
- the instance type- Returns:
this
.
-
hostname
The hostname of the instance.- Parameters:
hostname
- the hostname- Returns:
this
.
-
privateIpAddress
The private IP address of the instance.- Parameters:
privateIpAddress
- the private IP address- Returns:
this
.
-
publicIpAddress
The public IP address of the instance.- Parameters:
publicIpAddress
- the public IP address- Returns:
this
.
-
vcpus
The number of processors (threads) on the node's instance.- Parameters:
vcpus
- the number of processors- Returns:
this
.
-
ram
The amount of RAM in GB on the node's instance.- Parameters:
ram
- the amount of RAM in GB- Returns:
this
.
-
supportedTaskTypes
The task types supported by this node.- Parameters:
supportedTaskTypes
- the supported task types- Returns:
this
.
-
workerTag
An optional tag value that can be used to constrain worker allocation.- Parameters:
workerTag
- an optional tag value- Returns:
this
.
-
nodeType
The node type of this node if node types have been configured.- Parameters:
nodeType
- the node type of this node- Returns:
this
.
-
nodeSlot
The slot number of this node within its node type if slot numbering has been configured.- Parameters:
nodeSlot
- the slot number of this node within its node type- Returns:
this
.
-
build
-
toString
-