@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","SlackErrorResponseIF"}) @Immutable public final class SlackErrorResponse extends Object implements SlackErrorResponseIF
SlackErrorResponseIF.
Use the builder to create immutable instances:
SlackErrorResponse.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
SlackErrorResponse.Builder
Builds instances of type
SlackErrorResponse. |
| Modifier and Type | Method and Description |
|---|---|
static SlackErrorResponse.Builder |
builder()
Creates a builder for
SlackErrorResponse. |
static SlackErrorResponse |
copyOf(SlackErrorResponseIF instance)
Creates an immutable copy of a
SlackErrorResponseIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SlackErrorResponse that have equal attribute values. |
Optional<SlackError> |
getError() |
List<SlackError> |
getErrors() |
Optional<ResponseMetadata> |
getResponseMetadata() |
int |
hashCode()
Computes a hash code from attributes:
error, errors, ok, responseMetadata. |
boolean |
isOk() |
String |
toString()
Prints the immutable value
SlackErrorResponse with attribute values. |
SlackErrorResponse |
withError(Optional<SlackError> optional)
Copy the current immutable object by setting an optional value for the
error attribute. |
SlackErrorResponse |
withError(SlackError value)
Copy the current immutable object by setting a present value for the optional
error attribute. |
SlackErrorResponse |
withErrors(Iterable<? extends SlackError> elements)
Copy the current immutable object with elements that replace the content of
errors. |
SlackErrorResponse |
withErrors(SlackError... elements)
Copy the current immutable object with elements that replace the content of
errors. |
SlackErrorResponse |
withOk(boolean ok)
Copy the current immutable object by setting a value for the
ok attribute. |
SlackErrorResponse |
withResponseMetadata(Optional<ResponseMetadata> optional)
Copy the current immutable object by setting an optional value for the
responseMetadata attribute. |
SlackErrorResponse |
withResponseMetadata(ResponseMetadata value)
Copy the current immutable object by setting a present value for the optional
responseMetadata attribute. |
public Optional<SlackError> getError()
getError in interface SlackErrorResponseIFerror attributepublic List<SlackError> getErrors()
getErrors in interface SlackErrorResponseIFerrors attributepublic boolean isOk()
isOk in interface SlackResponseok attributepublic Optional<ResponseMetadata> getResponseMetadata()
getResponseMetadata in interface SlackResponseresponseMetadata attributepublic final SlackErrorResponse withError(@Nullable SlackError value)
error attribute.value - The value for error, null is accepted as java.util.Optional.empty()this objectpublic final SlackErrorResponse withError(Optional<SlackError> optional)
error attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for errorthis objectpublic final SlackErrorResponse withErrors(SlackError... elements)
errors.elements - The elements to setthis objectpublic final SlackErrorResponse withErrors(Iterable<? extends SlackError> elements)
errors.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of errors elements to setthis objectpublic final SlackErrorResponse withOk(boolean ok)
ok attribute.
A value equality check is used to prevent copying of the same value by returning this.ok - A new value for okthis objectpublic final SlackErrorResponse withResponseMetadata(@Nullable ResponseMetadata value)
responseMetadata attribute.value - The value for responseMetadata, null is accepted as java.util.Optional.empty()this objectpublic final SlackErrorResponse withResponseMetadata(Optional<ResponseMetadata> optional)
responseMetadata attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for responseMetadatathis objectpublic boolean equals(@Nullable Object another)
SlackErrorResponse that have equal attribute values.public int hashCode()
error, errors, ok, responseMetadata.public String toString()
SlackErrorResponse with attribute values.public static SlackErrorResponse copyOf(SlackErrorResponseIF instance)
SlackErrorResponseIF 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 SlackErrorResponse.Builder builder()
SlackErrorResponse.Copyright © 2019. All rights reserved.