Class ImmutableQuestionnaireClientDisconnectedEvent
- java.lang.Object
-
- io.dialob.questionnaire.service.api.event.ImmutableQuestionnaireClientDisconnectedEvent
-
- All Implemented Interfaces:
Event,TenantScopedEvent,QuestionnaireClientDisconnectedEvent,QuestionnaireEvent,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableQuestionnaireClientDisconnectedEvent extends Object implements QuestionnaireClientDisconnectedEvent
Immutable implementation ofQuestionnaireClientDisconnectedEvent.Use the builder to create immutable instances:
ImmutableQuestionnaireClientDisconnectedEvent.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableQuestionnaireClientDisconnectedEvent.BuilderBuilds instances of typeImmutableQuestionnaireClientDisconnectedEvent.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableQuestionnaireClientDisconnectedEvent.Builderbuilder()Creates a builder forImmutableQuestionnaireClientDisconnectedEvent.static ImmutableQuestionnaireClientDisconnectedEventcopyOf(QuestionnaireClientDisconnectedEvent instance)Creates an immutable copy of aQuestionnaireClientDisconnectedEventvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableQuestionnaireClientDisconnectedEventthat have equal attribute values.InetAddressgetClient()intgetCloseStatus()StringgetQuestionnaireId()io.dialob.security.tenant.TenantgetTenant()inthashCode()Computes a hash code from attributes:tenant,questionnaireId,client,closeStatus.StringtoString()Prints the immutable valueQuestionnaireClientDisconnectedEventwith attribute values.ImmutableQuestionnaireClientDisconnectedEventwithClient(InetAddress value)Copy the current immutable object by setting a value for theclientattribute.ImmutableQuestionnaireClientDisconnectedEventwithCloseStatus(int value)Copy the current immutable object by setting a value for thecloseStatusattribute.ImmutableQuestionnaireClientDisconnectedEventwithQuestionnaireId(String value)Copy the current immutable object by setting a value for thequestionnaireIdattribute.ImmutableQuestionnaireClientDisconnectedEventwithTenant(io.dialob.security.tenant.Tenant value)Copy the current immutable object by setting a value for thetenantattribute.
-
-
-
Method Detail
-
getTenant
public io.dialob.security.tenant.Tenant getTenant()
- Specified by:
getTenantin interfaceTenantScopedEvent- Returns:
- The value of the
tenantattribute
-
getQuestionnaireId
public String getQuestionnaireId()
- Specified by:
getQuestionnaireIdin interfaceQuestionnaireEvent- Returns:
- questionnaire id of event
-
getClient
public InetAddress getClient()
- Specified by:
getClientin interfaceQuestionnaireClientDisconnectedEvent- Returns:
- The value of the
clientattribute
-
getCloseStatus
public int getCloseStatus()
- Specified by:
getCloseStatusin interfaceQuestionnaireClientDisconnectedEvent- Returns:
- The value of the
closeStatusattribute
-
withTenant
public final ImmutableQuestionnaireClientDisconnectedEvent withTenant(io.dialob.security.tenant.Tenant value)
Copy the current immutable object by setting a value for thetenantattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for tenant- Returns:
- A modified copy of the
thisobject
-
withQuestionnaireId
public final ImmutableQuestionnaireClientDisconnectedEvent 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
-
withClient
public final ImmutableQuestionnaireClientDisconnectedEvent withClient(InetAddress value)
Copy the current immutable object by setting a value for theclientattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for client- Returns:
- A modified copy of the
thisobject
-
withCloseStatus
public final ImmutableQuestionnaireClientDisconnectedEvent withCloseStatus(int value)
Copy the current immutable object by setting a value for thecloseStatusattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for closeStatus- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableQuestionnaireClientDisconnectedEventthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:tenant,questionnaireId,client,closeStatus.
-
toString
public String toString()
Prints the immutable valueQuestionnaireClientDisconnectedEventwith attribute values.
-
copyOf
public static ImmutableQuestionnaireClientDisconnectedEvent copyOf(QuestionnaireClientDisconnectedEvent instance)
Creates an immutable copy of aQuestionnaireClientDisconnectedEventvalue. 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 QuestionnaireClientDisconnectedEvent instance
-
builder
public static ImmutableQuestionnaireClientDisconnectedEvent.Builder builder()
Creates a builder forImmutableQuestionnaireClientDisconnectedEvent.ImmutableQuestionnaireClientDisconnectedEvent.builder() .tenant(io.dialob.security.tenant.Tenant) // requiredtenant.questionnaireId(String) // requiredquestionnaireId.client(java.net.InetAddress) // requiredclient.closeStatus(int) // requiredcloseStatus.build();- Returns:
- A new ImmutableQuestionnaireClientDisconnectedEvent builder
-
-