Class CompleteUploadExternalResponse
java.lang.Object
com.hubspot.slack.client.models.response.files.CompleteUploadExternalResponse
- All Implemented Interfaces:
CompleteUploadExternalResponseIF,SlackResponse
@Generated(from="CompleteUploadExternalResponseIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class CompleteUploadExternalResponse
extends Object
implements CompleteUploadExternalResponseIF
Immutable implementation of
CompleteUploadExternalResponseIF.
Use the builder to create immutable instances:
CompleteUploadExternalResponse.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeCompleteUploadExternalResponse. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forCompleteUploadExternalResponse.copyOf(CompleteUploadExternalResponseIF instance) Creates an immutable copy of aCompleteUploadExternalResponseIFvalue.booleanThis instance is equal to all instances ofCompleteUploadExternalResponsethat have equal attribute values.getFiles()inthashCode()Computes a hash code from attributes:ok,responseMetadata,files.booleanisOk()toString()Prints the immutable valueCompleteUploadExternalResponsewith attribute values.Copy the current immutable object with elements that replace the content offiles.Copy the current immutable object with elements that replace the content offiles.withOk(boolean value) Copy the current immutable object by setting a value for theokattribute.Copy the current immutable object by setting a present value for the optionalresponseMetadataattribute.withResponseMetadata(Optional<? extends ResponseMetadata> optional) Copy the current immutable object by setting an optional value for theresponseMetadataattribute.
-
Method Details
-
isOk
public boolean isOk()- Specified by:
isOkin interfaceSlackResponse- Returns:
- The value of the
okattribute
-
getResponseMetadata
- Specified by:
getResponseMetadatain interfaceSlackResponse- Returns:
- The value of the
responseMetadataattribute
-
getFiles
- Specified by:
getFilesin interfaceCompleteUploadExternalResponseIF- Returns:
- The value of the
filesattribute
-
withOk
Copy the current immutable object by setting a value for theokattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for ok- Returns:
- A modified copy or the
thisobject
-
withResponseMetadata
Copy the current immutable object by setting a present value for the optionalresponseMetadataattribute.- Parameters:
value- The value for responseMetadata,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withResponseMetadata
public final CompleteUploadExternalResponse withResponseMetadata(Optional<? extends ResponseMetadata> optional) Copy the current immutable object by setting an optional value for theresponseMetadataattribute. 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 responseMetadata- Returns:
- A modified copy or
thisif not changed
-
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
-
equals
This instance is equal to all instances ofCompleteUploadExternalResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:ok,responseMetadata,files. -
toString
Prints the immutable valueCompleteUploadExternalResponsewith attribute values. -
copyOf
Creates an immutable copy of aCompleteUploadExternalResponseIFvalue. 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 CompleteUploadExternalResponse instance
-
builder
Creates a builder forCompleteUploadExternalResponse.CompleteUploadExternalResponse.builder() .setOk(boolean) // requiredok.setResponseMetadata(Optional<ResponseMetadata>) // optionalresponseMetadata.addFiles|addAllFiles(com.hubspot.slack.client.models.files.SlackFile) //fileselements .build();- Returns:
- A new CompleteUploadExternalResponse builder
-