Class GetUploadUrlExternalParams.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.files.GetUploadUrlExternalParams.Builder
- Enclosing class:
GetUploadUrlExternalParams
@Generated(from="GetUploadUrlExternalParamsIF",
generator="Immutables")
@NotThreadSafe
public static final class GetUploadUrlExternalParams.Builder
extends Object
Builds instances of type
GetUploadUrlExternalParams.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newGetUploadUrlExternalParams.from(GetUploadUrlExternalParamsIF instance) Fill a builder with attribute values from the providedGetUploadUrlExternalParamsIFinstance.setAltText(String altText) Initializes the optional valuealtTextto altText.setAltText(Optional<String> altText) Initializes the optional valuealtTextto altText.setFilename(String filename) Initializes the value for thefilenameattribute.Initializes the value for thelengthattribute.setSnippetType(String snippetType) Initializes the optional valuesnippetTypeto snippetType.setSnippetType(Optional<String> snippetType) Initializes the optional valuesnippetTypeto snippetType.
-
Method Details
-
from
Fill a builder with attribute values from the providedGetUploadUrlExternalParamsIFinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setFilename
Initializes the value for thefilenameattribute.- Parameters:
filename- The value for filename- Returns:
thisbuilder for use in a chained invocation
-
setLength
Initializes the value for thelengthattribute.- Parameters:
length- The value for length- Returns:
thisbuilder for use in a chained invocation
-
setAltText
Initializes the optional valuealtTextto altText.- Parameters:
altText- The value for altText,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setAltText
Initializes the optional valuealtTextto altText.- Parameters:
altText- The value for altText- Returns:
thisbuilder for use in a chained invocation
-
setSnippetType
Initializes the optional valuesnippetTypeto snippetType.- Parameters:
snippetType- The value for snippetType,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setSnippetType
Initializes the optional valuesnippetTypeto snippetType.- Parameters:
snippetType- The value for snippetType- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newGetUploadUrlExternalParams.- Returns:
- An immutable instance of GetUploadUrlExternalParams
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-