Class ServicesSchema.Builder

Enclosing class:
ServicesSchema

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

    • retry

      Returns:
      this.
    • defaultUrl

      public ServicesSchema.Builder defaultUrl(String defaultUrl)
      The default base URL where services are located. This is the YellowDog Cell URL rather than a service specific path.
      Parameters:
      defaultUrl - the base URL where services are located
      Returns:
      this.
    • accountServiceUrl

      public ServicesSchema.Builder accountServiceUrl(String accountServiceUrl)
      The base URL where the Account service is located. This is the YellowDog Cell URL rather than a service specific path.
      Parameters:
      accountServiceUrl - the base URL where the Account service is located
      Returns:
      this.
    • computeServiceUrl

      public ServicesSchema.Builder computeServiceUrl(String computeServiceUrl)
      The base URL where the Compute service is located. This is the YellowDog Cell URL rather than a service specific path.
      Parameters:
      computeServiceUrl - the base URL where the Compute service is located
      Returns:
      this.
    • logServiceUrl

      public ServicesSchema.Builder logServiceUrl(String logServiceUrl)
      The base URL where the Log service is located. This is the YellowDog Cell URL rather than a service specific path.
      Parameters:
      logServiceUrl - the base URL where the Log service is located
      Returns:
      this.
    • imagesServiceUrl

      public ServicesSchema.Builder imagesServiceUrl(String imagesServiceUrl)
      The base URL where the Images service is located. This is the YellowDog Cell URL rather than a service specific path.
      Parameters:
      imagesServiceUrl - the base URL where the Images service is located
      Returns:
      this.
    • schedulerServiceUrl

      public ServicesSchema.Builder schedulerServiceUrl(String schedulerServiceUrl)
      The base URL where the Scheduler service is located. This is the YellowDog Cell URL rather than a service specific path.
      Parameters:
      schedulerServiceUrl - the base URL where the Scheduler service is located
      Returns:
      this.
    • usageServiceUrl

      public ServicesSchema.Builder usageServiceUrl(String usageServiceUrl)
      The base URL where the Usage service is located. This is the YellowDog Cell URL rather than a service specific path.
      Parameters:
      usageServiceUrl - the base URL where the Usage service is located
      Returns:
      this.
    • cloudInfoServiceUrl

      public ServicesSchema.Builder cloudInfoServiceUrl(String cloudInfoServiceUrl)
      The base URL where the Cloud Info service is located. This is the YellowDog Cell URL rather than a service specific path.
      Parameters:
      cloudInfoServiceUrl - the base URL where the Cloud Info service is located
      Returns:
      this.
    • metricsServiceUrl

      public ServicesSchema.Builder metricsServiceUrl(String metricsServiceUrl)
      The base URL where the Metrics service is located. This is the YellowDog Cell URL rather than a service specific path.
      Parameters:
      metricsServiceUrl - the base URL where the Metrics service is located
      Returns:
      this.
    • connectionTimeout

      public ServicesSchema.Builder connectionTimeout(Duration connectionTimeout)
      The timeout for establishing a TCP connection to a YellowDog Platform service. Defaults to ServicesSchema.DEFAULT_CONNECTION_TIMEOUT. Set to null to disable the connection timeout.
      Parameters:
      connectionTimeout - the connection timeout duration
      Returns:
      this.
    • requestTimeout

      public ServicesSchema.Builder requestTimeout(Duration requestTimeout)
      The maximum time to wait for a response from a YellowDog Platform service. Before Java 26, this covers only the wait for the response to start. Subscriptions to updates are not subject to this timeout. Defaults to ServicesSchema.DEFAULT_REQUEST_TIMEOUT. Set to null to disable the request timeout.
      Parameters:
      requestTimeout - the request timeout duration
      Returns:
      this.
    • buildUnchecked

      public ServicesSchema 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<ServicesSchema>
      Returns:
      the object being built
    • toString

      public String toString()
      Overrides:
      toString in class Object