Class CompleteUploadExternalParams
java.lang.Object
com.hubspot.slack.client.methods.params.files.CompleteUploadExternalParams
- All Implemented Interfaces:
CompleteUploadExternalParamsIF
@Generated(from="CompleteUploadExternalParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class CompleteUploadExternalParams
extends Object
implements CompleteUploadExternalParamsIF
Immutable implementation of
CompleteUploadExternalParamsIF.
Use the builder to create immutable instances:
CompleteUploadExternalParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeCompleteUploadExternalParams. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forCompleteUploadExternalParams.static CompleteUploadExternalParamscopyOf(CompleteUploadExternalParamsIF instance) Creates an immutable copy of aCompleteUploadExternalParamsIFvalue.booleanThis instance is equal to all instances ofCompleteUploadExternalParamsthat have equal attribute values.getFiles()inthashCode()Computes a hash code from attributes:files,channelId,threadTs,initialComment.toString()Prints the immutable valueCompleteUploadExternalParamswith attribute values.withChannelId(String value) Copy the current immutable object by setting a present value for the optionalchannelIdattribute.withChannelId(Optional<String> optional) Copy the current immutable object by setting an optional value for thechannelIdattribute.Copy the current immutable object with elements that replace the content offiles.Copy the current immutable object with elements that replace the content offiles.withInitialComment(String value) Copy the current immutable object by setting a present value for the optionalinitialCommentattribute.withInitialComment(Optional<String> optional) Copy the current immutable object by setting an optional value for theinitialCommentattribute.withThreadTs(String value) Copy the current immutable object by setting a present value for the optionalthreadTsattribute.withThreadTs(Optional<String> optional) Copy the current immutable object by setting an optional value for thethreadTsattribute.
-
Method Details
-
getFiles
- Specified by:
getFilesin interfaceCompleteUploadExternalParamsIF- Returns:
- The value of the
filesattribute
-
getChannelId
- Specified by:
getChannelIdin interfaceCompleteUploadExternalParamsIF- Returns:
- The value of the
channelIdattribute
-
getThreadTs
- Specified by:
getThreadTsin interfaceCompleteUploadExternalParamsIF- Returns:
- The value of the
threadTsattribute
-
getInitialComment
- Specified by:
getInitialCommentin interfaceCompleteUploadExternalParamsIF- Returns:
- The value of the
initialCommentattribute
-
withFiles
Copy the current immutable object with elements that replace the content offiles.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withFiles
Copy the current immutable object with elements that replace the content offiles. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of files elements to set- Returns:
- A modified copy or
thisif not changed
-
withChannelId
Copy the current immutable object by setting a present value for the optionalchannelIdattribute.- Parameters:
value- The value for channelId,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withChannelId
Copy the current immutable object by setting an optional value for thechannelIdattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for channelId- 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
-
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
-
equals
This instance is equal to all instances ofCompleteUploadExternalParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:files,channelId,threadTs,initialComment. -
toString
Prints the immutable valueCompleteUploadExternalParamswith attribute values. -
copyOf
Creates an immutable copy of aCompleteUploadExternalParamsIFvalue. 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 CompleteUploadExternalParams instance
-
builder
Creates a builder forCompleteUploadExternalParams.CompleteUploadExternalParams.builder() .addFiles|addAllFiles(FileInfo) //fileselements .setChannelId(Optional<String>) // optionalchannelId.setThreadTs(Optional<String>) // optionalthreadTs.setInitialComment(Optional<String>) // optionalinitialComment.build();- Returns:
- A new CompleteUploadExternalParams builder
-