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