Package io.dialob.client.spi.event
Class ImmutableQuestionnaireActionsEvent
- java.lang.Object
-
- io.dialob.client.spi.event.ImmutableQuestionnaireActionsEvent
-
- All Implemented Interfaces:
EventPublisher.Event,QuestionnaireEvent,QuestionnaireEvent.QuestionnaireActionsEvent,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableQuestionnaireActionsEvent extends Object implements QuestionnaireEvent.QuestionnaireActionsEvent
Immutable implementation ofQuestionnaireEvent.QuestionnaireActionsEvent.Use the builder to create immutable instances:
ImmutableQuestionnaireActionsEvent.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableQuestionnaireActionsEvent.BuilderBuilds instances of typeImmutableQuestionnaireActionsEvent.-
Nested classes/interfaces inherited from interface io.dialob.client.spi.event.QuestionnaireEvent
QuestionnaireEvent.QuestionnaireActionsEvent, QuestionnaireEvent.QuestionnaireClientConnectedEvent, QuestionnaireEvent.QuestionnaireClientDisconnectedEvent, QuestionnaireEvent.QuestionnaireCompletedEvent, QuestionnaireEvent.QuestionnaireCreatedEvent, QuestionnaireEvent.QuestionnaireOpenedEvent
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableQuestionnaireActionsEvent.Builderbuilder()Creates a builder forImmutableQuestionnaireActionsEvent.static ImmutableQuestionnaireActionsEventcopyOf(QuestionnaireEvent.QuestionnaireActionsEvent instance)Creates an immutable copy of aQuestionnaireEvent.QuestionnaireActionsEventvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableQuestionnaireActionsEventthat have equal attribute values.io.dialob.api.proto.ActionsgetActions()StringgetQuestionnaireId()inthashCode()Computes a hash code from attributes:questionnaireId,actions.StringtoString()Prints the immutable valueQuestionnaireActionsEventwith attribute values.ImmutableQuestionnaireActionsEventwithActions(io.dialob.api.proto.Actions value)Copy the current immutable object by setting a value for theactionsattribute.ImmutableQuestionnaireActionsEventwithQuestionnaireId(String value)Copy the current immutable object by setting a value for thequestionnaireIdattribute.
-
-
-
Method Detail
-
getQuestionnaireId
public String getQuestionnaireId()
- Specified by:
getQuestionnaireIdin interfaceQuestionnaireEvent- Returns:
- questionnaire id of event
-
getActions
public io.dialob.api.proto.Actions getActions()
- Specified by:
getActionsin interfaceQuestionnaireEvent.QuestionnaireActionsEvent- Returns:
- The value of the
actionsattribute
-
withQuestionnaireId
public final ImmutableQuestionnaireActionsEvent withQuestionnaireId(String value)
Copy the current immutable object by setting a value for thequestionnaireIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for questionnaireId- Returns:
- A modified copy of the
thisobject
-
withActions
public final ImmutableQuestionnaireActionsEvent 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
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableQuestionnaireActionsEventthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:questionnaireId,actions.
-
toString
public String toString()
Prints the immutable valueQuestionnaireActionsEventwith attribute values.
-
copyOf
public static ImmutableQuestionnaireActionsEvent copyOf(QuestionnaireEvent.QuestionnaireActionsEvent instance)
Creates an immutable copy of aQuestionnaireEvent.QuestionnaireActionsEventvalue. 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 QuestionnaireActionsEvent instance
-
builder
public static ImmutableQuestionnaireActionsEvent.Builder builder()
Creates a builder forImmutableQuestionnaireActionsEvent.ImmutableQuestionnaireActionsEvent.builder() .questionnaireId(String) // requiredquestionnaireId.actions(io.dialob.api.proto.Actions) // requiredactions.build();- Returns:
- A new ImmutableQuestionnaireActionsEvent builder
-
-