Package io.resys.hdes.client.api
Class ImmutableDiffRequest
java.lang.Object
io.resys.hdes.client.api.ImmutableDiffRequest
- All Implemented Interfaces:
HdesComposer.DiffRequest,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableDiffRequest
extends Object
implements HdesComposer.DiffRequest
Immutable implementation of
HdesComposer.DiffRequest.
Use the builder to create immutable instances:
ImmutableDiffRequest.builder().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableDiffRequest. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableDiffRequest.Builderbuilder()Creates a builder forImmutableDiffRequest.static ImmutableDiffRequestcopyOf(HdesComposer.DiffRequest instance) Creates an immutable copy of aHdesComposer.DiffRequestvalue.booleanThis instance is equal to all instances ofImmutableDiffRequestthat have equal attribute values.inthashCode()Computes a hash code from attributes:baseId,targetId.toString()Prints the immutable valueDiffRequestwith attribute values.final ImmutableDiffRequestwithBaseId(String value) Copy the current immutable object by setting a value for thebaseIdattribute.final ImmutableDiffRequestwithTargetId(String value) Copy the current immutable object by setting a value for thetargetIdattribute.
-
Method Details
-
getBaseId
- Specified by:
getBaseIdin interfaceHdesComposer.DiffRequest- Returns:
- The value of the
baseIdattribute
-
getTargetId
- Specified by:
getTargetIdin interfaceHdesComposer.DiffRequest- Returns:
- The value of the
targetIdattribute
-
withBaseId
Copy the current immutable object by setting a value for thebaseIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for baseId- Returns:
- A modified copy of the
thisobject
-
withTargetId
Copy the current immutable object by setting a value for thetargetIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for targetId- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableDiffRequestthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:baseId,targetId. -
toString
Prints the immutable valueDiffRequestwith attribute values. -
copyOf
Creates an immutable copy of aHdesComposer.DiffRequestvalue. 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 DiffRequest instance
-
builder
Creates a builder forImmutableDiffRequest.ImmutableDiffRequest.builder() .baseId(String) // requiredbaseId.targetId(String) // requiredtargetId.build();- Returns:
- A new ImmutableDiffRequest builder
-