Class InstanceId.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<InstanceId>
co.yellowdog.platform.model.InstanceId.Builder
- Enclosing class:
InstanceId
A builder that can be used to build a new InstanceId that is automatically validated on build.
-
Method Summary
Modifier and TypeMethodDescriptionBuilds the object without enforcing validation constraints.instanceId
(String instanceId) The provider supplied ID for this instance.The ID of the compute source from which this instance was provisioned.toString()
Methods inherited from class co.yellowdog.platform.model.builders.ValidatedBuilder
build, validate
-
Method Details
-
sourceId
The ID of the compute source from which this instance was provisioned.- Parameters:
sourceId
- This should not be set outside of the YellowDog Compute service.- Returns:
this
.
-
instanceId
The provider supplied ID for this instance.- Parameters:
instanceId
- This should not be set outside of the YellowDog Compute service.- Returns:
this
.
-
buildUnchecked
Description copied from class:ValidatedBuilder
Builds the object without enforcing validation constraints. This should only be used for testing purposes- Overrides:
buildUnchecked
in classValidatedBuilder<InstanceId>
- Returns:
- the object being built
-
toString
-