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