Interface JwtAuth.Builder

All Superinterfaces:
Buildable, CopyableBuilder<JwtAuth.Builder,JwtAuth>, SdkBuilder<JwtAuth.Builder,JwtAuth>, SdkPojo
Enclosing class:
JwtAuth

@Mutable @NotThreadSafe public static interface JwtAuth.Builder extends SdkPojo, CopyableBuilder<JwtAuth.Builder,JwtAuth>
  • Method Details

    • jwtKey

      JwtAuth.Builder jwtKey(JwtKey jwtKey)

      The JWT key for Slurm REST API authentication.

      Parameters:
      jwtKey - The JWT key for Slurm REST API authentication.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • jwtKey

      default JwtAuth.Builder jwtKey(Consumer<JwtKey.Builder> jwtKey)

      The JWT key for Slurm REST API authentication.

      This is a convenience method that creates an instance of the JwtKey.Builder avoiding the need to create one manually via JwtKey.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to jwtKey(JwtKey).

      Parameters:
      jwtKey - a consumer that will call methods on JwtKey.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: