Package io.dialob.client.api
Class ImmutableExecutorBody
- java.lang.Object
-
- io.dialob.client.api.ImmutableExecutorBody
-
- All Implemented Interfaces:
DialobClient.ExecutorBody
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableExecutorBody extends Object implements DialobClient.ExecutorBody
Immutable implementation ofDialobClient.ExecutorBody.Use the builder to create immutable instances:
ImmutableExecutorBody.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableExecutorBody.BuilderBuilds instances of typeImmutableExecutorBody.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableExecutorBody.Builderbuilder()Creates a builder forImmutableExecutorBody.static ImmutableExecutorBodycopyOf(DialobClient.ExecutorBody instance)Creates an immutable copy of aDialobClient.ExecutorBodyvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableExecutorBodythat have equal attribute values.io.dialob.api.proto.ActionsgetActions()io.dialob.api.questionnaire.QuestionnairegetQuestionnaire()inthashCode()Computes a hash code from attributes:actions,questionnaire.StringtoString()Prints the immutable valueExecutorBodywith attribute values.ImmutableExecutorBodywithActions(io.dialob.api.proto.Actions value)Copy the current immutable object by setting a value for theactionsattribute.ImmutableExecutorBodywithQuestionnaire(io.dialob.api.questionnaire.Questionnaire value)Copy the current immutable object by setting a value for thequestionnaireattribute.
-
-
-
Method Detail
-
getActions
public io.dialob.api.proto.Actions getActions()
- Specified by:
getActionsin interfaceDialobClient.ExecutorBody- Returns:
- The value of the
actionsattribute
-
getQuestionnaire
public io.dialob.api.questionnaire.Questionnaire getQuestionnaire()
- Specified by:
getQuestionnairein interfaceDialobClient.ExecutorBody- Returns:
- The value of the
questionnaireattribute
-
withActions
public final ImmutableExecutorBody withActions(io.dialob.api.proto.Actions value)
Copy the current immutable object by setting a value for theactionsattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for actions- Returns:
- A modified copy of the
thisobject
-
withQuestionnaire
public final ImmutableExecutorBody withQuestionnaire(io.dialob.api.questionnaire.Questionnaire value)
Copy the current immutable object by setting a value for thequestionnaireattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for questionnaire- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableExecutorBodythat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:actions,questionnaire.
-
toString
public String toString()
Prints the immutable valueExecutorBodywith attribute values.
-
copyOf
public static ImmutableExecutorBody copyOf(DialobClient.ExecutorBody instance)
Creates an immutable copy of aDialobClient.ExecutorBodyvalue. 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 ExecutorBody instance
-
builder
public static ImmutableExecutorBody.Builder builder()
Creates a builder forImmutableExecutorBody.ImmutableExecutorBody.builder() .actions(io.dialob.api.proto.Actions) // requiredactions.questionnaire(io.dialob.api.questionnaire.Questionnaire) // requiredquestionnaire.build();- Returns:
- A new ImmutableExecutorBody builder
-
-