Package io.resys.hdes.client.api
Class ImmutableImportStoreEntity.Builder
java.lang.Object
io.resys.hdes.client.api.ImmutableImportStoreEntity.Builder
- Enclosing class:
- ImmutableImportStoreEntity
Builds instances of type
ImmutableImportStoreEntity.
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 Summary
Modifier and TypeMethodDescriptionaddAllCreate(Iterable<? extends HdesStore.CreateStoreEntity> elements) Adds elements tocreatelist.addAllUpdate(Iterable<? extends HdesStore.UpdateStoreEntityWithBodyType> elements) Adds elements toupdatelist.addCreate(HdesStore.CreateStoreEntity element) Adds one element tocreatelist.addCreate(HdesStore.CreateStoreEntity... elements) Adds elements tocreatelist.Adds one element toupdatelist.addUpdate(HdesStore.UpdateStoreEntityWithBodyType... elements) Adds elements toupdatelist.build()Builds a newImmutableImportStoreEntity.create(Iterable<? extends HdesStore.CreateStoreEntity> elements) Sets or replaces all elements forcreatelist.from(HdesStore.ImportStoreEntity instance) Fill a builder with attribute values from the providedImportStoreEntityinstance.update(Iterable<? extends HdesStore.UpdateStoreEntityWithBodyType> elements) Sets or replaces all elements forupdatelist.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableImportStoreEntity.Builder from(HdesStore.ImportStoreEntity instance) Fill a builder with attribute values from the providedImportStoreEntityinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
addCreate
@CanIgnoreReturnValue public final ImmutableImportStoreEntity.Builder addCreate(HdesStore.CreateStoreEntity element) Adds one element tocreatelist.- Parameters:
element- A create element- Returns:
thisbuilder for use in a chained invocation
-
addCreate
@CanIgnoreReturnValue public final ImmutableImportStoreEntity.Builder addCreate(HdesStore.CreateStoreEntity... elements) Adds elements tocreatelist.- Parameters:
elements- An array of create elements- Returns:
thisbuilder for use in a chained invocation
-
create
@CanIgnoreReturnValue public final ImmutableImportStoreEntity.Builder create(Iterable<? extends HdesStore.CreateStoreEntity> elements) Sets or replaces all elements forcreatelist.- Parameters:
elements- An iterable of create elements- Returns:
thisbuilder for use in a chained invocation
-
addAllCreate
@CanIgnoreReturnValue public final ImmutableImportStoreEntity.Builder addAllCreate(Iterable<? extends HdesStore.CreateStoreEntity> elements) Adds elements tocreatelist.- Parameters:
elements- An iterable of create elements- Returns:
thisbuilder for use in a chained invocation
-
addUpdate
@CanIgnoreReturnValue public final ImmutableImportStoreEntity.Builder addUpdate(HdesStore.UpdateStoreEntityWithBodyType element) Adds one element toupdatelist.- Parameters:
element- A update element- Returns:
thisbuilder for use in a chained invocation
-
addUpdate
@CanIgnoreReturnValue public final ImmutableImportStoreEntity.Builder addUpdate(HdesStore.UpdateStoreEntityWithBodyType... elements) Adds elements toupdatelist.- Parameters:
elements- An array of update elements- Returns:
thisbuilder for use in a chained invocation
-
update
@CanIgnoreReturnValue public final ImmutableImportStoreEntity.Builder update(Iterable<? extends HdesStore.UpdateStoreEntityWithBodyType> elements) Sets or replaces all elements forupdatelist.- Parameters:
elements- An iterable of update elements- Returns:
thisbuilder for use in a chained invocation
-
addAllUpdate
@CanIgnoreReturnValue public final ImmutableImportStoreEntity.Builder addAllUpdate(Iterable<? extends HdesStore.UpdateStoreEntityWithBodyType> elements) Adds elements toupdatelist.- Parameters:
elements- An iterable of update elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableImportStoreEntity.- Returns:
- An immutable instance of ImportStoreEntity
- Throws:
IllegalStateException- if any required attributes are missing
-