Class ImmutableEveliDeployment

java.lang.Object
io.digiexpress.eveli.envir.api.ImmutableEveliDeployment
All Implemented Interfaces:
EveliEnvirClient.EveliDeployment

@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableEveliDeployment extends Object implements EveliEnvirClient.EveliDeployment
Immutable implementation of EveliEnvirClient.EveliDeployment.

Use the builder to create immutable instances: ImmutableEveliDeployment.builder().

  • Method Details

    • getId

      public String getId()
      Specified by:
      getId in interface EveliEnvirClient.EveliDeployment
      Returns:
      The value of the id attribute
    • getName

      public String getName()
      Specified by:
      getName in interface EveliEnvirClient.EveliDeployment
      Returns:
      The value of the name attribute
    • getExternalId

      @Nullable public String getExternalId()
      Specified by:
      getExternalId in interface EveliEnvirClient.EveliDeployment
      Returns:
      The value of the externalId attribute
    • getCreatedBy

      public String getCreatedBy()
      Specified by:
      getCreatedBy in interface EveliEnvirClient.EveliDeployment
      Returns:
      The value of the createdBy attribute
    • getCreatedAt

      public OffsetDateTime getCreatedAt()
      Specified by:
      getCreatedAt in interface EveliEnvirClient.EveliDeployment
      Returns:
      The value of the createdAt attribute
    • getStartsAt

      public OffsetDateTime getStartsAt()
      Specified by:
      getStartsAt in interface EveliEnvirClient.EveliDeployment
      Returns:
      The value of the startsAt attribute
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface EveliEnvirClient.EveliDeployment
      Returns:
      The value of the description attribute
    • getErrors

      @Nullable public io.vertx.core.json.JsonObject getErrors()
      Specified by:
      getErrors in interface EveliEnvirClient.EveliDeployment
      Returns:
      The value of the errors attribute
    • getStatus

      Specified by:
      getStatus in interface EveliEnvirClient.EveliDeployment
      Returns:
      The value of the status attribute
    • getExternal

      @Nullable public Boolean getExternal()
      Specified by:
      getExternal in interface EveliEnvirClient.EveliDeployment
      Returns:
      The value of the external attribute
    • getSources

      @Nullable public EveliEnvirClient.EveliSources getSources()
      Specified by:
      getSources in interface EveliEnvirClient.EveliDeployment
      Returns:
      The value of the sources attribute
    • withId

      public final ImmutableEveliDeployment withId(String value)
      Copy the current immutable object by setting a value for the id attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for id
      Returns:
      A modified copy of the this object
    • withName

      public final ImmutableEveliDeployment withName(String value)
      Copy the current immutable object by setting a value for the name attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for name
      Returns:
      A modified copy of the this object
    • withExternalId

      public final ImmutableEveliDeployment withExternalId(@Nullable String value)
      Copy the current immutable object by setting a value for the externalId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for externalId (can be null)
      Returns:
      A modified copy of the this object
    • withCreatedBy

      public final ImmutableEveliDeployment withCreatedBy(String value)
      Copy the current immutable object by setting a value for the createdBy attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for createdBy
      Returns:
      A modified copy of the this object
    • withCreatedAt

      public final ImmutableEveliDeployment withCreatedAt(OffsetDateTime value)
      Copy the current immutable object by setting a value for the createdAt attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for createdAt
      Returns:
      A modified copy of the this object
    • withStartsAt

      public final ImmutableEveliDeployment withStartsAt(OffsetDateTime value)
      Copy the current immutable object by setting a value for the startsAt attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for startsAt
      Returns:
      A modified copy of the this object
    • withDescription

      public final ImmutableEveliDeployment withDescription(String value)
      Copy the current immutable object by setting a value for the description attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for description
      Returns:
      A modified copy of the this object
    • withErrors

      public final ImmutableEveliDeployment withErrors(@Nullable io.vertx.core.json.JsonObject value)
      Copy the current immutable object by setting a value for the errors attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for errors (can be null)
      Returns:
      A modified copy of the this object
    • withStatus

      Copy the current immutable object by setting a value for the status attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for status
      Returns:
      A modified copy of the this object
    • withExternal

      public final ImmutableEveliDeployment withExternal(@Nullable Boolean value)
      Copy the current immutable object by setting a value for the external attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for external (can be null)
      Returns:
      A modified copy of the this object
    • withSources

      public final ImmutableEveliDeployment withSources(@Nullable EveliEnvirClient.EveliSources value)
      Copy the current immutable object by setting a value for the sources attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for sources (can be null)
      Returns:
      A modified copy of the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableEveliDeployment that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: id, name, externalId, createdBy, createdAt, startsAt, description, errors, status, external, sources.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value EveliDeployment with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      Creates an immutable copy of a EveliEnvirClient.EveliDeployment value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
      Parameters:
      instance - The instance to copy
      Returns:
      A copied immutable EveliDeployment instance
    • builder

      public static ImmutableEveliDeployment.Builder builder()
      Creates a builder for ImmutableEveliDeployment.
       ImmutableEveliDeployment.builder()
          .id(String) // required id
          .name(String) // required name
          .externalId(String | null) // nullable externalId
          .createdBy(String) // required createdBy
          .createdAt(java.time.OffsetDateTime) // required createdAt
          .startsAt(java.time.OffsetDateTime) // required startsAt
          .description(String) // required description
          .errors(io.vertx.core.json.JsonObject | null) // nullable errors
          .status(io.digiexpress.eveli.envir.api.EveliEnvirClient.EveliDeploymentStatus) // required status
          .external(Boolean | null) // nullable external
          .sources(io.digiexpress.eveli.envir.api.EveliEnvirClient.EveliSources | null) // nullable sources
          .build();
       
      Returns:
      A new ImmutableEveliDeployment builder