Class FilesUploadParams
java.lang.Object
com.hubspot.slack.client.methods.params.files.FilesUploadParams
- All Implemented Interfaces:
FilesUploadParamsIF
@Generated(from="FilesUploadParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class FilesUploadParams
extends Object
implements FilesUploadParamsIF
Immutable implementation of
FilesUploadParamsIF.
Use the builder to create immutable instances:
FilesUploadParams.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic FilesUploadParams.Builderbuilder()Creates a builder forFilesUploadParams.static FilesUploadParamscopyOf(FilesUploadParamsIF instance) Creates an immutable copy of aFilesUploadParamsIFvalue.booleanThis instance is equal to all instances ofFilesUploadParamsthat have equal attribute values.getFile()getTitle()inthashCode()Computes a hash code from attributes:channels,content,file,filename,filetype,initialComment,threadTs,title.toString()Prints the immutable valueFilesUploadParamswith attribute values.final FilesUploadParamswithChannels(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofchannels.final FilesUploadParamswithChannels(String... elements) Copy the current immutable object with elements that replace the content ofchannels.final FilesUploadParamswithContent(String value) Copy the current immutable object by setting a present value for the optionalcontentattribute.final FilesUploadParamswithContent(Optional<String> optional) Copy the current immutable object by setting an optional value for thecontentattribute.final FilesUploadParamsCopy the current immutable object by setting a present value for the optionalfileattribute.final FilesUploadParamsCopy the current immutable object by setting an optional value for thefileattribute.final FilesUploadParamswithFilename(String value) Copy the current immutable object by setting a present value for the optionalfilenameattribute.final FilesUploadParamswithFilename(Optional<String> optional) Copy the current immutable object by setting an optional value for thefilenameattribute.final FilesUploadParamswithFiletype(SlackFileType value) Copy the current immutable object by setting a present value for the optionalfiletypeattribute.final FilesUploadParamswithFiletype(Optional<? extends SlackFileType> optional) Copy the current immutable object by setting an optional value for thefiletypeattribute.final FilesUploadParamswithInitialComment(String value) Copy the current immutable object by setting a present value for the optionalinitialCommentattribute.final FilesUploadParamswithInitialComment(Optional<String> optional) Copy the current immutable object by setting an optional value for theinitialCommentattribute.final FilesUploadParamswithThreadTs(String value) Copy the current immutable object by setting a present value for the optionalthreadTsattribute.final FilesUploadParamswithThreadTs(Optional<String> optional) Copy the current immutable object by setting an optional value for thethreadTsattribute.final FilesUploadParamsCopy the current immutable object by setting a present value for the optionaltitleattribute.final FilesUploadParamsCopy the current immutable object by setting an optional value for thetitleattribute.Methods inherited from interface com.hubspot.slack.client.methods.params.files.FilesUploadParamsIF
hasContent
-
Method Details
-
getChannels
- Specified by:
getChannelsin interfaceFilesUploadParamsIF- Returns:
- The value of the
channelsattribute
-
getContent
- Specified by:
getContentin interfaceFilesUploadParamsIF- Returns:
- The value of the
contentattribute
-
getFile
- Specified by:
getFilein interfaceFilesUploadParamsIF- Returns:
- The value of the
fileattribute
-
getFilename
- Specified by:
getFilenamein interfaceFilesUploadParamsIF- Returns:
- The value of the
filenameattribute
-
getFiletype
- Specified by:
getFiletypein interfaceFilesUploadParamsIF- Returns:
- The value of the
filetypeattribute
-
getInitialComment
- Specified by:
getInitialCommentin interfaceFilesUploadParamsIF- Returns:
- The value of the
initialCommentattribute
-
getThreadTs
- Specified by:
getThreadTsin interfaceFilesUploadParamsIF- Returns:
- The value of the
threadTsattribute
-
getTitle
- Specified by:
getTitlein interfaceFilesUploadParamsIF- Returns:
- The value of the
titleattribute
-
withChannels
Copy the current immutable object with elements that replace the content ofchannels.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withChannels
Copy the current immutable object with elements that replace the content ofchannels. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of channels elements to set- Returns:
- A modified copy or
thisif not changed
-
withContent
Copy the current immutable object by setting a present value for the optionalcontentattribute.- Parameters:
value- The value for content,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withContent
Copy the current immutable object by setting an optional value for thecontentattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for content- Returns:
- A modified copy or
thisif not changed
-
withFile
Copy the current immutable object by setting a present value for the optionalfileattribute.- Parameters:
value- The value for file,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withFile
Copy the current immutable object by setting an optional value for thefileattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for file- Returns:
- A modified copy or
thisif not changed
-
withFilename
Copy the current immutable object by setting a present value for the optionalfilenameattribute.- Parameters:
value- The value for filename,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withFilename
Copy the current immutable object by setting an optional value for thefilenameattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for filename- Returns:
- A modified copy or
thisif not changed
-
withFiletype
Copy the current immutable object by setting a present value for the optionalfiletypeattribute.- Parameters:
value- The value for filetype,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withFiletype
Copy the current immutable object by setting an optional value for thefiletypeattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for filetype- Returns:
- A modified copy or
thisif not changed
-
withInitialComment
Copy the current immutable object by setting a present value for the optionalinitialCommentattribute.- Parameters:
value- The value for initialComment,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withInitialComment
Copy the current immutable object by setting an optional value for theinitialCommentattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for initialComment- Returns:
- A modified copy or
thisif not changed
-
withThreadTs
Copy the current immutable object by setting a present value for the optionalthreadTsattribute.- Parameters:
value- The value for threadTs,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withThreadTs
Copy the current immutable object by setting an optional value for thethreadTsattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for threadTs- Returns:
- A modified copy or
thisif not changed
-
withTitle
Copy the current immutable object by setting a present value for the optionaltitleattribute.- Parameters:
value- The value for title,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withTitle
Copy the current immutable object by setting an optional value for thetitleattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for title- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofFilesUploadParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:channels,content,file,filename,filetype,initialComment,threadTs,title. -
toString
Prints the immutable valueFilesUploadParamswith attribute values. -
copyOf
Creates an immutable copy of aFilesUploadParamsIFvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable FilesUploadParams instance
-
builder
Creates a builder forFilesUploadParams.FilesUploadParams.builder() .addChannels|addAllChannels(String) //channelselements .setContent(Optional<String>) // optionalcontent.setFile(Optional<java.io.File>) // optionalfile.setFilename(Optional<String>) // optionalfilename.setFiletype(Optional<com.hubspot.slack.client.models.files.SlackFileType>) // optionalfiletype.setInitialComment(Optional<String>) // optionalinitialComment.setThreadTs(Optional<String>) // optionalthreadTs.setTitle(Optional<String>) // optionaltitle.build();- Returns:
- A new FilesUploadParams builder
-