Class ImmutableEveliDeployment.Builder

java.lang.Object
io.digiexpress.eveli.envir.api.ImmutableEveliDeployment.Builder
Enclosing class:
ImmutableEveliDeployment

@NotThreadSafe public static final class ImmutableEveliDeployment.Builder extends Object
Builds instances of type ImmutableEveliDeployment. Initialize attributes and then invoke the build() method to create an immutable instance.

Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

  • Method Details

    • from

      @CanIgnoreReturnValue public final ImmutableEveliDeployment.Builder from(EveliEnvirClient.EveliDeployment instance)
      Fill a builder with attribute values from the provided EveliDeployment instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • id

      @CanIgnoreReturnValue public final ImmutableEveliDeployment.Builder id(String id)
      Initializes the value for the id attribute.
      Parameters:
      id - The value for id
      Returns:
      this builder for use in a chained invocation
    • name

      @CanIgnoreReturnValue public final ImmutableEveliDeployment.Builder name(String name)
      Initializes the value for the name attribute.
      Parameters:
      name - The value for name
      Returns:
      this builder for use in a chained invocation
    • externalId

      @CanIgnoreReturnValue public final ImmutableEveliDeployment.Builder externalId(@Nullable String externalId)
      Initializes the value for the externalId attribute.
      Parameters:
      externalId - The value for externalId (can be null)
      Returns:
      this builder for use in a chained invocation
    • createdBy

      @CanIgnoreReturnValue public final ImmutableEveliDeployment.Builder createdBy(String createdBy)
      Initializes the value for the createdBy attribute.
      Parameters:
      createdBy - The value for createdBy
      Returns:
      this builder for use in a chained invocation
    • createdAt

      @CanIgnoreReturnValue public final ImmutableEveliDeployment.Builder createdAt(OffsetDateTime createdAt)
      Initializes the value for the createdAt attribute.
      Parameters:
      createdAt - The value for createdAt
      Returns:
      this builder for use in a chained invocation
    • startsAt

      @CanIgnoreReturnValue public final ImmutableEveliDeployment.Builder startsAt(OffsetDateTime startsAt)
      Initializes the value for the startsAt attribute.
      Parameters:
      startsAt - The value for startsAt
      Returns:
      this builder for use in a chained invocation
    • description

      @CanIgnoreReturnValue public final ImmutableEveliDeployment.Builder description(String description)
      Initializes the value for the description attribute.
      Parameters:
      description - The value for description
      Returns:
      this builder for use in a chained invocation
    • errors

      @CanIgnoreReturnValue public final ImmutableEveliDeployment.Builder errors(@Nullable io.vertx.core.json.JsonObject errors)
      Initializes the value for the errors attribute.
      Parameters:
      errors - The value for errors (can be null)
      Returns:
      this builder for use in a chained invocation
    • status

      @CanIgnoreReturnValue public final ImmutableEveliDeployment.Builder status(EveliEnvirClient.EveliDeploymentStatus status)
      Initializes the value for the status attribute.
      Parameters:
      status - The value for status
      Returns:
      this builder for use in a chained invocation
    • external

      @CanIgnoreReturnValue public final ImmutableEveliDeployment.Builder external(@Nullable Boolean external)
      Initializes the value for the external attribute.
      Parameters:
      external - The value for external (can be null)
      Returns:
      this builder for use in a chained invocation
    • sources

      @CanIgnoreReturnValue public final ImmutableEveliDeployment.Builder sources(@Nullable EveliEnvirClient.EveliSources sources)
      Initializes the value for the sources attribute.
      Parameters:
      sources - The value for sources (can be null)
      Returns:
      this builder for use in a chained invocation
    • build

      public ImmutableEveliDeployment build()
      Returns:
      An immutable instance of EveliDeployment
      Throws:
      IllegalStateException - if any required attributes are missing