Package org.projectnessie.model
Class ImmutableGetMultipleContentsRequest
- java.lang.Object
-
- org.projectnessie.model.ImmutableGetMultipleContentsRequest
-
- All Implemented Interfaces:
GetMultipleContentsRequest
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableGetMultipleContentsRequest extends Object implements GetMultipleContentsRequest
Immutable implementation ofGetMultipleContentsRequest.Use the builder to create immutable instances:
ImmutableGetMultipleContentsRequest.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableGetMultipleContentsRequest.BuilderBuilds instances of typeImmutableGetMultipleContentsRequest.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableGetMultipleContentsRequest.Builderbuilder()Creates a builder forImmutableGetMultipleContentsRequest.static ImmutableGetMultipleContentsRequestcopyOf(GetMultipleContentsRequest instance)Creates an immutable copy of aGetMultipleContentsRequestvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableGetMultipleContentsRequestthat have equal attribute values.List<ContentKey>getRequestedKeys()inthashCode()Computes a hash code from attributes:requestedKeys.StringtoString()Prints the immutable valueGetMultipleContentsRequestwith attribute values.ImmutableGetMultipleContentsRequestwithRequestedKeys(Iterable<? extends ContentKey> elements)Copy the current immutable object with elements that replace the content ofrequestedKeys.ImmutableGetMultipleContentsRequestwithRequestedKeys(ContentKey... elements)Copy the current immutable object with elements that replace the content ofrequestedKeys.
-
-
-
Method Detail
-
getRequestedKeys
public List<ContentKey> getRequestedKeys()
- Specified by:
getRequestedKeysin interfaceGetMultipleContentsRequest- Returns:
- The value of the
requestedKeysattribute
-
withRequestedKeys
public final ImmutableGetMultipleContentsRequest withRequestedKeys(ContentKey... elements)
Copy the current immutable object with elements that replace the content ofrequestedKeys.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withRequestedKeys
public final ImmutableGetMultipleContentsRequest withRequestedKeys(Iterable<? extends ContentKey> elements)
Copy the current immutable object with elements that replace the content ofrequestedKeys. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of requestedKeys elements to set- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableGetMultipleContentsRequestthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:requestedKeys.
-
toString
public String toString()
Prints the immutable valueGetMultipleContentsRequestwith attribute values.
-
copyOf
public static ImmutableGetMultipleContentsRequest copyOf(GetMultipleContentsRequest instance)
Creates an immutable copy of aGetMultipleContentsRequestvalue. 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 GetMultipleContentsRequest instance
-
builder
public static ImmutableGetMultipleContentsRequest.Builder builder()
Creates a builder forImmutableGetMultipleContentsRequest.ImmutableGetMultipleContentsRequest.builder() .addRequestedKeys|addAllRequestedKeys(org.projectnessie.model.ContentKey) //requestedKeyselements .build();- Returns:
- A new ImmutableGetMultipleContentsRequest builder
-
-