@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","SlackErrorIF"}) @Immutable public final class SlackError extends Object implements SlackErrorIF
SlackErrorIF.
Use the builder to create immutable instances:
SlackError.builder().
Use the static factory method to create immutable instances:
SlackError.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
SlackError.Builder
Builds instances of type
SlackError. |
| Modifier and Type | Method and Description |
|---|---|
static SlackError.Builder |
builder()
Creates a builder for
SlackError. |
static SlackError |
copyOf(SlackErrorIF instance)
Creates an immutable copy of a
SlackErrorIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SlackError that have equal attribute values. |
String |
getError() |
SlackErrorType |
getType() |
int |
hashCode()
Computes a hash code from attributes:
type, error. |
static SlackError |
of(String error)
Construct a new immutable
SlackError instance. |
String |
toString()
Prints the immutable value
SlackError with attribute values. |
SlackError |
withError(String error)
Copy the current immutable object by setting a value for the
error attribute. |
SlackError |
withType(SlackErrorType type)
Copy the current immutable object by setting a value for the
type attribute. |
public SlackErrorType getType()
getType in interface SlackErrorIFtype attributepublic String getError()
getError in interface SlackErrorIFerror attributepublic final SlackError withType(SlackErrorType type)
type attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.type - A new value for typethis objectpublic final SlackError withError(String error)
error attribute.
An equals check used to prevent copying of the same value by returning this.error - A new value for errorthis objectpublic boolean equals(@Nullable Object another)
SlackError that have equal attribute values.public int hashCode()
type, error.public String toString()
SlackError with attribute values.public static SlackError of(String error)
SlackError instance.error - The value for the error attributepublic static SlackError copyOf(SlackErrorIF instance)
SlackErrorIF value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static SlackError.Builder builder()
SlackError.Copyright © 2019. All rights reserved.