Package org.projectnessie.model
Class ImmutableGetMultipleContentsResponse
- java.lang.Object
-
- org.projectnessie.model.ImmutableGetMultipleContentsResponse
-
- All Implemented Interfaces:
GetMultipleContentsResponse
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableGetMultipleContentsResponse extends Object implements GetMultipleContentsResponse
Immutable implementation ofGetMultipleContentsResponse.Use the builder to create immutable instances:
ImmutableGetMultipleContentsResponse.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableGetMultipleContentsResponse.BuilderBuilds instances of typeImmutableGetMultipleContentsResponse.-
Nested classes/interfaces inherited from interface org.projectnessie.model.GetMultipleContentsResponse
GetMultipleContentsResponse.ContentWithKey
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableGetMultipleContentsResponse.Builderbuilder()Creates a builder forImmutableGetMultipleContentsResponse.static ImmutableGetMultipleContentsResponsecopyOf(GetMultipleContentsResponse instance)Creates an immutable copy of aGetMultipleContentsResponsevalue.booleanequals(Object another)This instance is equal to all instances ofImmutableGetMultipleContentsResponsethat have equal attribute values.List<GetMultipleContentsResponse.ContentWithKey>getContents()inthashCode()Computes a hash code from attributes:contents.StringtoString()Prints the immutable valueGetMultipleContentsResponsewith attribute values.ImmutableGetMultipleContentsResponsewithContents(Iterable<? extends GetMultipleContentsResponse.ContentWithKey> elements)Copy the current immutable object with elements that replace the content ofcontents.ImmutableGetMultipleContentsResponsewithContents(GetMultipleContentsResponse.ContentWithKey... elements)Copy the current immutable object with elements that replace the content ofcontents.
-
-
-
Method Detail
-
getContents
public List<GetMultipleContentsResponse.ContentWithKey> getContents()
- Specified by:
getContentsin interfaceGetMultipleContentsResponse- Returns:
- The value of the
contentsattribute
-
withContents
public final ImmutableGetMultipleContentsResponse withContents(GetMultipleContentsResponse.ContentWithKey... elements)
Copy the current immutable object with elements that replace the content ofcontents.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withContents
public final ImmutableGetMultipleContentsResponse withContents(Iterable<? extends GetMultipleContentsResponse.ContentWithKey> elements)
Copy the current immutable object with elements that replace the content ofcontents. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of contents elements to set- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableGetMultipleContentsResponsethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:contents.
-
toString
public String toString()
Prints the immutable valueGetMultipleContentsResponsewith attribute values.
-
copyOf
public static ImmutableGetMultipleContentsResponse copyOf(GetMultipleContentsResponse instance)
Creates an immutable copy of aGetMultipleContentsResponsevalue. 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 GetMultipleContentsResponse instance
-
builder
public static ImmutableGetMultipleContentsResponse.Builder builder()
Creates a builder forImmutableGetMultipleContentsResponse.ImmutableGetMultipleContentsResponse.builder() .addContents|addAllContents(org.projectnessie.model.GetMultipleContentsResponse.ContentWithKey) //contentselements .build();- Returns:
- A new ImmutableGetMultipleContentsResponse builder
-
-