Class ImmutableTenantCommitResult

java.lang.Object
io.resys.thena.api.actions.ImmutableTenantCommitResult
All Implemented Interfaces:
TenantActions.TenantCommitResult, ThenaEnvelope

@Generated(from="TenantActions.TenantCommitResult", generator="Immutables") @Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableTenantCommitResult extends Object implements TenantActions.TenantCommitResult
Immutable implementation of TenantActions.TenantCommitResult.

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

  • Method Details

    • getRepo

      @Nullable public Tenant getRepo()
      Specified by:
      getRepo in interface TenantActions.TenantCommitResult
      Returns:
      The value of the repo attribute
    • getStatus

      public TenantActions.CommitStatus getStatus()
      Specified by:
      getStatus in interface TenantActions.TenantCommitResult
      Returns:
      The value of the status attribute
    • getMessages

      public com.google.common.collect.ImmutableList<Message> getMessages()
      Specified by:
      getMessages in interface TenantActions.TenantCommitResult
      Returns:
      The value of the messages attribute
    • withRepo

      public final ImmutableTenantCommitResult withRepo(@Nullable Tenant value)
      Copy the current immutable object by setting a value for the repo attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for repo (can be null)
      Returns:
      A modified copy or 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 or the this object
    • withMessages

      public final ImmutableTenantCommitResult withMessages(Message... elements)
      Copy the current immutable object with elements that replace the content of messages.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withMessages

      public final ImmutableTenantCommitResult withMessages(Iterable<? extends Message> elements)
      Copy the current immutable object with elements that replace the content of messages. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of messages elements to set
      Returns:
      A modified copy or this if not changed
    • equals

      public boolean equals(Object another)
      This instance is equal to all instances of ImmutableTenantCommitResult 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: repo, status, messages.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      Creates an immutable copy of a TenantActions.TenantCommitResult 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 TenantCommitResult instance
    • builder

      public static ImmutableTenantCommitResult.Builder builder()
      Creates a builder for ImmutableTenantCommitResult.
       ImmutableTenantCommitResult.builder()
          .repo(io.resys.thena.api.entities.Tenant | null) // nullable repo
          .status(io.resys.thena.api.actions.TenantActions.CommitStatus) // required status
          .addMessages|addAllMessages(io.resys.thena.api.envelope.Message) // messages elements
          .build();
       
      Returns:
      A new ImmutableTenantCommitResult builder