Class GetUploadUrlExternalParams
java.lang.Object
com.hubspot.slack.client.methods.params.files.GetUploadUrlExternalParams
- All Implemented Interfaces:
GetUploadUrlExternalParamsIF
@Generated(from="GetUploadUrlExternalParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class GetUploadUrlExternalParams
extends Object
implements GetUploadUrlExternalParamsIF
Immutable implementation of
GetUploadUrlExternalParamsIF.
Use the builder to create immutable instances:
GetUploadUrlExternalParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeGetUploadUrlExternalParams. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forGetUploadUrlExternalParams.static GetUploadUrlExternalParamscopyOf(GetUploadUrlExternalParamsIF instance) Creates an immutable copy of aGetUploadUrlExternalParamsIFvalue.booleanThis instance is equal to all instances ofGetUploadUrlExternalParamsthat have equal attribute values.inthashCode()Computes a hash code from attributes:filename,length,altText,snippetType.toString()Prints the immutable valueGetUploadUrlExternalParamswith attribute values.withAltText(String value) Copy the current immutable object by setting a present value for the optionalaltTextattribute.withAltText(Optional<String> optional) Copy the current immutable object by setting an optional value for thealtTextattribute.withFilename(String value) Copy the current immutable object by setting a value for thefilenameattribute.withLength(Long value) Copy the current immutable object by setting a value for thelengthattribute.withSnippetType(String value) Copy the current immutable object by setting a present value for the optionalsnippetTypeattribute.withSnippetType(Optional<String> optional) Copy the current immutable object by setting an optional value for thesnippetTypeattribute.
-
Method Details
-
getFilename
- Specified by:
getFilenamein interfaceGetUploadUrlExternalParamsIF- Returns:
- The value of the
filenameattribute
-
getLength
- Specified by:
getLengthin interfaceGetUploadUrlExternalParamsIF- Returns:
- The value of the
lengthattribute
-
getAltText
- Specified by:
getAltTextin interfaceGetUploadUrlExternalParamsIF- Returns:
- The value of the
altTextattribute
-
getSnippetType
- Specified by:
getSnippetTypein interfaceGetUploadUrlExternalParamsIF- Returns:
- The value of the
snippetTypeattribute
-
withFilename
Copy the current immutable object by setting a value for thefilenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for filename- Returns:
- A modified copy or the
thisobject
-
withLength
Copy the current immutable object by setting a value for thelengthattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for length- Returns:
- A modified copy or the
thisobject
-
withAltText
Copy the current immutable object by setting a present value for the optionalaltTextattribute.- Parameters:
value- The value for altText,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withAltText
Copy the current immutable object by setting an optional value for thealtTextattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for altText- Returns:
- A modified copy or
thisif not changed
-
withSnippetType
Copy the current immutable object by setting a present value for the optionalsnippetTypeattribute.- Parameters:
value- The value for snippetType,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withSnippetType
Copy the current immutable object by setting an optional value for thesnippetTypeattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for snippetType- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofGetUploadUrlExternalParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:filename,length,altText,snippetType. -
toString
Prints the immutable valueGetUploadUrlExternalParamswith attribute values. -
copyOf
Creates an immutable copy of aGetUploadUrlExternalParamsIFvalue. 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 GetUploadUrlExternalParams instance
-
builder
Creates a builder forGetUploadUrlExternalParams.GetUploadUrlExternalParams.builder() .setFilename(String) // requiredfilename.setLength(Long) // requiredlength.setAltText(Optional<String>) // optionalaltText.setSnippetType(Optional<String>) // optionalsnippetType.build();- Returns:
- A new GetUploadUrlExternalParams builder
-