Class ImmutableImportStoreEntity

java.lang.Object
io.resys.hdes.client.api.ImmutableImportStoreEntity
All Implemented Interfaces:
HdesStore.ImportStoreEntity

@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableImportStoreEntity extends Object implements HdesStore.ImportStoreEntity
Immutable implementation of HdesStore.ImportStoreEntity.

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

  • Method Details

    • getCreate

      public com.google.common.collect.ImmutableList<HdesStore.CreateStoreEntity> getCreate()
      Specified by:
      getCreate in interface HdesStore.ImportStoreEntity
      Returns:
      The value of the create attribute
    • getUpdate

      public com.google.common.collect.ImmutableList<HdesStore.UpdateStoreEntityWithBodyType> getUpdate()
      Specified by:
      getUpdate in interface HdesStore.ImportStoreEntity
      Returns:
      The value of the update attribute
    • withCreate

      public final ImmutableImportStoreEntity withCreate(HdesStore.CreateStoreEntity... elements)
      Copy the current immutable object with elements that replace the content of create.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withCreate

      public final ImmutableImportStoreEntity withCreate(Iterable<? extends HdesStore.CreateStoreEntity> elements)
      Copy the current immutable object with elements that replace the content of create. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of create elements to set
      Returns:
      A modified copy of this object
    • withUpdate

      Copy the current immutable object with elements that replace the content of update.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withUpdate

      public final ImmutableImportStoreEntity withUpdate(Iterable<? extends HdesStore.UpdateStoreEntityWithBodyType> elements)
      Copy the current immutable object with elements that replace the content of update. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of update elements to set
      Returns:
      A modified copy of this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableImportStoreEntity 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: create, update.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

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

      public static ImmutableImportStoreEntity.Builder builder()
      Creates a builder for ImmutableImportStoreEntity.
       ImmutableImportStoreEntity.builder()
          .addCreate|addAllCreate(io.resys.hdes.client.api.HdesStore.CreateStoreEntity) // create elements
          .addUpdate|addAllUpdate(io.resys.hdes.client.api.HdesStore.UpdateStoreEntityWithBodyType) // update elements
          .build();
       
      Returns:
      A new ImmutableImportStoreEntity builder