Class GetUploadUrlExternalResponse
java.lang.Object
com.hubspot.slack.client.models.response.files.GetUploadUrlExternalResponse
- All Implemented Interfaces:
GetUploadUrlExternalResponseIF,SlackResponse
@Generated(from="GetUploadUrlExternalResponseIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class GetUploadUrlExternalResponse
extends Object
implements GetUploadUrlExternalResponseIF
Immutable implementation of
GetUploadUrlExternalResponseIF.
Use the builder to create immutable instances:
GetUploadUrlExternalResponse.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeGetUploadUrlExternalResponse. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forGetUploadUrlExternalResponse.static GetUploadUrlExternalResponsecopyOf(GetUploadUrlExternalResponseIF instance) Creates an immutable copy of aGetUploadUrlExternalResponseIFvalue.booleanThis instance is equal to all instances ofGetUploadUrlExternalResponsethat have equal attribute values.inthashCode()Computes a hash code from attributes:ok,responseMetadata,uploadUrl,fileId.booleanisOk()toString()Prints the immutable valueGetUploadUrlExternalResponsewith attribute values.withFileId(String value) Copy the current immutable object by setting a value for thefileIdattribute.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.withUploadUrl(String value) Copy the current immutable object by setting a value for theuploadUrlattribute.
-
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
-
getUploadUrl
- Specified by:
getUploadUrlin interfaceGetUploadUrlExternalResponseIF- Returns:
- The value of the
uploadUrlattribute
-
getFileId
- Specified by:
getFileIdin interfaceGetUploadUrlExternalResponseIF- Returns:
- The value of the
fileIdattribute
-
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 GetUploadUrlExternalResponse 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
-
withUploadUrl
Copy the current immutable object by setting a value for theuploadUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for uploadUrl- Returns:
- A modified copy or the
thisobject
-
withFileId
Copy the current immutable object by setting a value for thefileIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for fileId- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofGetUploadUrlExternalResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:ok,responseMetadata,uploadUrl,fileId. -
toString
Prints the immutable valueGetUploadUrlExternalResponsewith attribute values. -
copyOf
Creates an immutable copy of aGetUploadUrlExternalResponseIFvalue. 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 GetUploadUrlExternalResponse instance
-
builder
Creates a builder forGetUploadUrlExternalResponse.GetUploadUrlExternalResponse.builder() .setOk(boolean) // requiredok.setResponseMetadata(Optional<ResponseMetadata>) // optionalresponseMetadata.setUploadUrl(String) // requireduploadUrl.setFileId(String) // requiredfileId.build();- Returns:
- A new GetUploadUrlExternalResponse builder
-