Package io.resys.hdes.client.api.diff
Class ImmutableTagDiff
java.lang.Object
io.resys.hdes.client.api.diff.ImmutableTagDiff
- All Implemented Interfaces:
TagDiff
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableTagDiff
extends Object
implements TagDiff
Immutable implementation of
TagDiff.
Use the builder to create immutable instances:
ImmutableTagDiff.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableTagDiff.Builderbuilder()Creates a builder forImmutableTagDiff.static ImmutableTagDiffCreates an immutable copy of aTagDiffvalue.booleanThis instance is equal to all instances ofImmutableTagDiffthat have equal attribute values.getBody()inthashCode()Computes a hash code from attributes:baseName,targetName,baseId,targetId,created,body.toString()Prints the immutable valueTagDiffwith attribute values.final ImmutableTagDiffwithBaseId(String value) Copy the current immutable object by setting a value for thebaseIdattribute.final ImmutableTagDiffwithBaseName(String value) Copy the current immutable object by setting a value for thebaseNameattribute.final ImmutableTagDiffCopy the current immutable object by setting a value for thebodyattribute.final ImmutableTagDiffwithCreated(LocalDateTime value) Copy the current immutable object by setting a value for thecreatedattribute.final ImmutableTagDiffwithTargetId(String value) Copy the current immutable object by setting a value for thetargetIdattribute.final ImmutableTagDiffwithTargetName(String value) Copy the current immutable object by setting a value for thetargetNameattribute.
-
Method Details
-
getBaseName
- Specified by:
getBaseNamein interfaceTagDiff- Returns:
- The value of the
baseNameattribute
-
getTargetName
- Specified by:
getTargetNamein interfaceTagDiff- Returns:
- The value of the
targetNameattribute
-
getBaseId
-
getTargetId
- Specified by:
getTargetIdin interfaceTagDiff- Returns:
- The value of the
targetIdattribute
-
getCreated
- Specified by:
getCreatedin interfaceTagDiff- Returns:
- The value of the
createdattribute
-
getBody
-
withBaseName
Copy the current immutable object by setting a value for thebaseNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for baseName- Returns:
- A modified copy of the
thisobject
-
withTargetName
Copy the current immutable object by setting a value for thetargetNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for targetName- Returns:
- A modified copy of the
thisobject
-
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
-
withCreated
Copy the current immutable object by setting a value for thecreatedattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for created- Returns:
- A modified copy of the
thisobject
-
withBody
Copy the current immutable object by setting a value for thebodyattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for body- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableTagDiffthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:baseName,targetName,baseId,targetId,created,body. -
toString
Prints the immutable valueTagDiffwith attribute values. -
copyOf
Creates an immutable copy of aTagDiffvalue. 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 TagDiff instance
-
builder
Creates a builder forImmutableTagDiff.ImmutableTagDiff.builder() .baseName(String) // requiredbaseName.targetName(String) // requiredtargetName.baseId(String) // requiredbaseId.targetId(String) // requiredtargetId.created(java.time.LocalDateTime) // requiredcreated.body(String) // requiredbody.build();- Returns:
- A new ImmutableTagDiff builder
-