@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","FilesUploadParamsIF"}) @Immutable public final class FilesUploadParams extends Object implements FilesUploadParamsIF
FilesUploadParamsIF.
Use the builder to create immutable instances:
FilesUploadParams.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
FilesUploadParams.Builder
Builds instances of type
FilesUploadParams. |
| Modifier and Type | Method and Description |
|---|---|
static FilesUploadParams.Builder |
builder()
Creates a builder for
FilesUploadParams. |
static FilesUploadParams |
copyOf(FilesUploadParamsIF instance)
Creates an immutable copy of a
FilesUploadParamsIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
FilesUploadParams that have equal attribute values. |
List<String> |
getChannels() |
Optional<String> |
getContent() |
Optional<String> |
getFilename() |
Optional<String> |
getInitialComment() |
Optional<String> |
getThreadTs() |
Optional<String> |
getTitle() |
int |
hashCode()
Computes a hash code from attributes:
channels, content, filename, initialComment, threadTs, title. |
String |
toString()
Prints the immutable value
FilesUploadParams with attribute values. |
FilesUploadParams |
withChannels(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
channels. |
FilesUploadParams |
withChannels(String... elements)
Copy the current immutable object with elements that replace the content of
channels. |
FilesUploadParams |
withContent(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
content attribute. |
FilesUploadParams |
withContent(String value)
Copy the current immutable object by setting a present value for the optional
content attribute. |
FilesUploadParams |
withFilename(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
filename attribute. |
FilesUploadParams |
withFilename(String value)
Copy the current immutable object by setting a present value for the optional
filename attribute. |
FilesUploadParams |
withInitialComment(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
initialComment attribute. |
FilesUploadParams |
withInitialComment(String value)
Copy the current immutable object by setting a present value for the optional
initialComment attribute. |
FilesUploadParams |
withThreadTs(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
threadTs attribute. |
FilesUploadParams |
withThreadTs(String value)
Copy the current immutable object by setting a present value for the optional
threadTs attribute. |
FilesUploadParams |
withTitle(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
title attribute. |
FilesUploadParams |
withTitle(String value)
Copy the current immutable object by setting a present value for the optional
title attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waithasContentpublic List<String> getChannels()
getChannels in interface FilesUploadParamsIFchannels attributepublic Optional<String> getContent()
getContent in interface FilesUploadParamsIFcontent attributepublic Optional<String> getFilename()
getFilename in interface FilesUploadParamsIFfilename attributepublic Optional<String> getInitialComment()
getInitialComment in interface FilesUploadParamsIFinitialComment attributepublic Optional<String> getThreadTs()
getThreadTs in interface FilesUploadParamsIFthreadTs attributepublic Optional<String> getTitle()
getTitle in interface FilesUploadParamsIFtitle attributepublic final FilesUploadParams withChannels(String... elements)
channels.elements - The elements to setthis objectpublic final FilesUploadParams withChannels(Iterable<String> elements)
channels.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of channels elements to setthis objectpublic final FilesUploadParams withContent(@Nullable String value)
content attribute.value - The value for content, null is accepted as java.util.Optional.empty()this objectpublic final FilesUploadParams withContent(Optional<String> optional)
content attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for contentthis objectpublic final FilesUploadParams withFilename(@Nullable String value)
filename attribute.value - The value for filename, null is accepted as java.util.Optional.empty()this objectpublic final FilesUploadParams withFilename(Optional<String> optional)
filename attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for filenamethis objectpublic final FilesUploadParams withInitialComment(@Nullable String value)
initialComment attribute.value - The value for initialComment, null is accepted as java.util.Optional.empty()this objectpublic final FilesUploadParams withInitialComment(Optional<String> optional)
initialComment attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for initialCommentthis objectpublic final FilesUploadParams withThreadTs(@Nullable String value)
threadTs attribute.value - The value for threadTs, null is accepted as java.util.Optional.empty()this objectpublic final FilesUploadParams withThreadTs(Optional<String> optional)
threadTs attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for threadTsthis objectpublic final FilesUploadParams withTitle(@Nullable String value)
title attribute.value - The value for title, null is accepted as java.util.Optional.empty()this objectpublic final FilesUploadParams withTitle(Optional<String> optional)
title attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for titlethis objectpublic boolean equals(@Nullable Object another)
FilesUploadParams that have equal attribute values.public int hashCode()
channels, content, filename, initialComment, threadTs, title.public String toString()
FilesUploadParams with attribute values.public static FilesUploadParams copyOf(FilesUploadParamsIF instance)
FilesUploadParamsIF 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 FilesUploadParams.Builder builder()
FilesUploadParams.Copyright © 2019. All rights reserved.