Class InstanceId.Builder

Enclosing class:
InstanceId

public static class InstanceId.Builder extends ValidatedBuilder<InstanceId>
A builder that can be used to build a new InstanceId that is automatically validated on build.
  • Method Details

    • sourceId

      public InstanceId.Builder sourceId(String 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

      public InstanceId.Builder instanceId(String instanceId)
      The provider supplied ID for this instance.
      Parameters:
      instanceId - This should not be set outside of the YellowDog Compute service.
      Returns:
      this.
    • buildUnchecked

      public InstanceId buildUnchecked()
      Description copied from class: ValidatedBuilder
      Builds the object without enforcing validation constraints. Use this when the object is validated later, for example as part of an enclosing object built with ValidatedBuilder.build(), or when it does not need to be valid on its own.
      Overrides:
      buildUnchecked in class ValidatedBuilder<InstanceId>
      Returns:
      the object being built
    • toString

      public String toString()
      Overrides:
      toString in class Object