Class InputError
java.lang.Object
com.hubspot.slack.client.models.dialog.form.InputError
- All Implemented Interfaces:
InputErrorIF
@Generated(from="InputErrorIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class InputError
extends Object
implements InputErrorIF
Immutable implementation of
InputErrorIF.
Use the builder to create immutable instances:
InputError.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic InputError.Builderbuilder()Creates a builder forInputError.static InputErrorcopyOf(InputErrorIF instance) Creates an immutable copy of aInputErrorIFvalue.booleanThis instance is equal to all instances ofInputErrorthat have equal attribute values.getError()getName()inthashCode()Computes a hash code from attributes:name,error.toString()Prints the immutable valueInputErrorwith attribute values.final InputErrorCopy the current immutable object by setting a value for theerrorattribute.final InputErrorCopy the current immutable object by setting a value for thenameattribute.
-
Method Details
-
getName
- Specified by:
getNamein interfaceInputErrorIF- Returns:
- The value of the
nameattribute
-
getError
- Specified by:
getErrorin interfaceInputErrorIF- Returns:
- The value of the
errorattribute
-
withName
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name- Returns:
- A modified copy or the
thisobject
-
withError
Copy the current immutable object by setting a value for theerrorattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for error- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofInputErrorthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:name,error. -
toString
Prints the immutable valueInputErrorwith attribute values. -
copyOf
Creates an immutable copy of aInputErrorIFvalue. 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 InputError instance
-
builder
Creates a builder forInputError.InputError.builder() .setName(String) // requiredname.setError(String) // requirederror.build();- Returns:
- A new InputError builder
-