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