Package org.projectnessie.model
Class ImmutableGetMultipleContentsResponse.Builder
- java.lang.Object
-
- org.projectnessie.model.ImmutableGetMultipleContentsResponse.Builder
-
- Enclosing class:
- ImmutableGetMultipleContentsResponse
@NotThreadSafe public static final class ImmutableGetMultipleContentsResponse.Builder extends Object
Builds instances of typeImmutableGetMultipleContentsResponse. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableGetMultipleContentsResponse.BuilderaddAllContents(Iterable<? extends GetMultipleContentsResponse.ContentWithKey> elements)Adds elements tocontentslist.ImmutableGetMultipleContentsResponse.BuilderaddContents(GetMultipleContentsResponse.ContentWithKey element)Adds one element tocontentslist.ImmutableGetMultipleContentsResponse.BuilderaddContents(GetMultipleContentsResponse.ContentWithKey... elements)Adds elements tocontentslist.ImmutableGetMultipleContentsResponsebuild()Builds a newImmutableGetMultipleContentsResponse.ImmutableGetMultipleContentsResponse.Buildercontents(Iterable<? extends GetMultipleContentsResponse.ContentWithKey> elements)Sets or replaces all elements forcontentslist.ImmutableGetMultipleContentsResponse.Builderfrom(GetMultipleContentsResponse instance)Fill a builder with attribute values from the providedGetMultipleContentsResponseinstance.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableGetMultipleContentsResponse.Builder from(GetMultipleContentsResponse instance)
Fill a builder with attribute values from the providedGetMultipleContentsResponseinstance. 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
-
addContents
@CanIgnoreReturnValue public final ImmutableGetMultipleContentsResponse.Builder addContents(GetMultipleContentsResponse.ContentWithKey element)
Adds one element tocontentslist.- Parameters:
element- A contents element- Returns:
thisbuilder for use in a chained invocation
-
addContents
@CanIgnoreReturnValue public final ImmutableGetMultipleContentsResponse.Builder addContents(GetMultipleContentsResponse.ContentWithKey... elements)
Adds elements tocontentslist.- Parameters:
elements- An array of contents elements- Returns:
thisbuilder for use in a chained invocation
-
contents
@CanIgnoreReturnValue public final ImmutableGetMultipleContentsResponse.Builder contents(Iterable<? extends GetMultipleContentsResponse.ContentWithKey> elements)
Sets or replaces all elements forcontentslist.- Parameters:
elements- An iterable of contents elements- Returns:
thisbuilder for use in a chained invocation
-
addAllContents
@CanIgnoreReturnValue public final ImmutableGetMultipleContentsResponse.Builder addAllContents(Iterable<? extends GetMultipleContentsResponse.ContentWithKey> elements)
Adds elements tocontentslist.- Parameters:
elements- An iterable of contents elements- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableGetMultipleContentsResponse build()
Builds a newImmutableGetMultipleContentsResponse.- Returns:
- An immutable instance of GetMultipleContentsResponse
- Throws:
IllegalStateException- if any required attributes are missing
-
-