Class FilesSharedPublicUrlResponse
java.lang.Object
com.hubspot.slack.client.models.response.files.FilesSharedPublicUrlResponse
- All Implemented Interfaces:
FilesSharedPublicUrlResponseIF,SlackResponse
@Generated(from="FilesSharedPublicUrlResponseIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class FilesSharedPublicUrlResponse
extends Object
implements FilesSharedPublicUrlResponseIF
Immutable implementation of
FilesSharedPublicUrlResponseIF.
Use the builder to create immutable instances:
FilesSharedPublicUrlResponse.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeFilesSharedPublicUrlResponse. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forFilesSharedPublicUrlResponse.static FilesSharedPublicUrlResponsecopyOf(FilesSharedPublicUrlResponseIF instance) Creates an immutable copy of aFilesSharedPublicUrlResponseIFvalue.booleanThis instance is equal to all instances ofFilesSharedPublicUrlResponsethat have equal attribute values.getFile()inthashCode()Computes a hash code from attributes:ok,responseMetadata,file.booleanisOk()toString()Prints the immutable valueFilesSharedPublicUrlResponsewith attribute values.Copy the current immutable object by setting a value for thefileattribute.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
-
getFile
- Specified by:
getFilein interfaceFilesSharedPublicUrlResponseIF- Returns:
- The value of the
fileattribute
-
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 FilesSharedPublicUrlResponse 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
-
withFile
Copy the current immutable object by setting a value for thefileattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for file- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofFilesSharedPublicUrlResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:ok,responseMetadata,file. -
toString
Prints the immutable valueFilesSharedPublicUrlResponsewith attribute values. -
builder
Creates a builder forFilesSharedPublicUrlResponse.FilesSharedPublicUrlResponse.builder() .setOk(boolean) // requiredok.setResponseMetadata(Optional<ResponseMetadata>) // optionalresponseMetadata.setFile(com.hubspot.slack.client.models.files.SlackFile) // requiredfile.build();- Returns:
- A new FilesSharedPublicUrlResponse builder
-