Package io.resys.hdes.client.api
Class ImmutableDebugResponse
java.lang.Object
io.resys.hdes.client.api.ImmutableDebugResponse
- All Implemented Interfaces:
HdesComposer.DebugResponse,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableDebugResponse
extends Object
implements HdesComposer.DebugResponse
Immutable implementation of
HdesComposer.DebugResponse.
Use the builder to create immutable instances:
ImmutableDebugResponse.builder().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableDebugResponse. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableDebugResponse.static ImmutableDebugResponsecopyOf(HdesComposer.DebugResponse instance) Creates an immutable copy of aHdesComposer.DebugResponsevalue.booleanThis instance is equal to all instances ofImmutableDebugResponsethat have equal attribute values.getBody()getId()inthashCode()Computes a hash code from attributes:id,body,bodyCsv.toString()Prints the immutable valueDebugResponsewith attribute values.final ImmutableDebugResponsewithBody(Program.ProgramResult value) Copy the current immutable object by setting a value for thebodyattribute.final ImmutableDebugResponsewithBodyCsv(String value) Copy the current immutable object by setting a value for thebodyCsvattribute.final ImmutableDebugResponseCopy the current immutable object by setting a value for theidattribute.
-
Method Details
-
getId
- Specified by:
getIdin interfaceHdesComposer.DebugResponse- Returns:
- The value of the
idattribute
-
getBody
- Specified by:
getBodyin interfaceHdesComposer.DebugResponse- Returns:
- The value of the
bodyattribute
-
getBodyCsv
- Specified by:
getBodyCsvin interfaceHdesComposer.DebugResponse- Returns:
- The value of the
bodyCsvattribute
-
withId
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- Returns:
- A modified copy of the
thisobject
-
withBody
Copy the current immutable object by setting a value for thebodyattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for body (can benull)- Returns:
- A modified copy of the
thisobject
-
withBodyCsv
Copy the current immutable object by setting a value for thebodyCsvattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for bodyCsv (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableDebugResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,body,bodyCsv. -
toString
Prints the immutable valueDebugResponsewith attribute values. -
copyOf
Creates an immutable copy of aHdesComposer.DebugResponsevalue. 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 DebugResponse instance
-
builder
Creates a builder forImmutableDebugResponse.ImmutableDebugResponse.builder() .id(String) // requiredid.body(io.resys.hdes.client.api.programs.Program.ProgramResult | null) // nullablebody.bodyCsv(String | null) // nullablebodyCsv.build();- Returns:
- A new ImmutableDebugResponse builder
-