@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ModalViewCommandResponseIF"}) @Immutable public final class ModalViewCommandResponse extends Object implements ModalViewCommandResponseIF
ModalViewCommandResponseIF.
Use the builder to create immutable instances:
ModalViewCommandResponse.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ModalViewCommandResponse.Builder
Builds instances of type
ModalViewCommandResponse. |
| Modifier and Type | Method and Description |
|---|---|
static ModalViewCommandResponse.Builder |
builder()
Creates a builder for
ModalViewCommandResponse. |
static ModalViewCommandResponse |
copyOf(ModalViewCommandResponseIF instance)
Creates an immutable copy of a
ModalViewCommandResponseIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ModalViewCommandResponse that have equal attribute values. |
Optional<ResponseMetadata> |
getResponseMetadata() |
ModalViewResponse |
getView() |
int |
hashCode()
Computes a hash code from attributes:
view, ok, responseMetadata. |
boolean |
isOk() |
String |
toString()
Prints the immutable value
ModalViewCommandResponse with attribute values. |
ModalViewCommandResponse |
withOk(boolean ok)
Copy the current immutable object by setting a value for the
ok attribute. |
ModalViewCommandResponse |
withResponseMetadata(Optional<ResponseMetadata> optional)
Copy the current immutable object by setting an optional value for the
responseMetadata attribute. |
ModalViewCommandResponse |
withResponseMetadata(ResponseMetadata value)
Copy the current immutable object by setting a present value for the optional
responseMetadata attribute. |
ModalViewCommandResponse |
withView(ModalViewResponse view)
Copy the current immutable object by setting a value for the
view attribute. |
public ModalViewResponse getView()
getView in interface ModalViewCommandResponseIFview attributepublic boolean isOk()
isOk in interface SlackResponseok attributepublic Optional<ResponseMetadata> getResponseMetadata()
getResponseMetadata in interface SlackResponseresponseMetadata attributepublic final ModalViewCommandResponse withView(ModalViewResponse view)
view attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.view - A new value for viewthis objectpublic final ModalViewCommandResponse 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 ModalViewCommandResponse withResponseMetadata(@Nullable ResponseMetadata value)
responseMetadata attribute.value - The value for responseMetadata, null is accepted as java.util.Optional.empty()this objectpublic final ModalViewCommandResponse 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)
ModalViewCommandResponse that have equal attribute values.public int hashCode()
view, ok, responseMetadata.public String toString()
ModalViewCommandResponse with attribute values.public static ModalViewCommandResponse copyOf(ModalViewCommandResponseIF instance)
ModalViewCommandResponseIF 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 ModalViewCommandResponse.Builder builder()
ModalViewCommandResponse.Copyright © 2020. All rights reserved.