Class CompleteUploadExternalResponse.Builder
java.lang.Object
com.hubspot.slack.client.models.response.files.CompleteUploadExternalResponse.Builder
- Enclosing class:
CompleteUploadExternalResponse
@Generated(from="CompleteUploadExternalResponseIF",
generator="Immutables")
@NotThreadSafe
public static final class CompleteUploadExternalResponse.Builder
extends Object
Builds instances of type
CompleteUploadExternalResponse.
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 TypeMethodDescriptionaddAllFiles(Iterable<? extends SlackFile> elements) Adds elements tofileslist.Adds one element tofileslist.Adds elements tofileslist.build()Builds a newCompleteUploadExternalResponse.from(CompleteUploadExternalResponseIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.response.files.CompleteUploadExternalResponseIFinstance.from(SlackResponse instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.response.SlackResponseinstance.Sets or replaces all elements forfileslist.setOk(boolean ok) Initializes the value for theokattribute.setResponseMetadata(ResponseMetadata responseMetadata) Initializes the optional valueresponseMetadatato responseMetadata.setResponseMetadata(Optional<? extends ResponseMetadata> responseMetadata) Initializes the optional valueresponseMetadatato responseMetadata.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.response.SlackResponseinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.response.files.CompleteUploadExternalResponseIFinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setOk
Initializes the value for theokattribute.- Parameters:
ok- The value for ok- Returns:
thisbuilder for use in a chained invocation
-
setResponseMetadata
public final CompleteUploadExternalResponse.Builder setResponseMetadata(@Nullable ResponseMetadata responseMetadata) Initializes the optional valueresponseMetadatato responseMetadata.- Parameters:
responseMetadata- The value for responseMetadata,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setResponseMetadata
public final CompleteUploadExternalResponse.Builder setResponseMetadata(Optional<? extends ResponseMetadata> responseMetadata) Initializes the optional valueresponseMetadatato responseMetadata.- Parameters:
responseMetadata- The value for responseMetadata- Returns:
thisbuilder for use in a chained invocation
-
addFiles
Adds one element tofileslist.- Parameters:
element- A files element- Returns:
thisbuilder for use in a chained invocation
-
addFiles
Adds elements tofileslist.- Parameters:
elements- An array of files elements- Returns:
thisbuilder for use in a chained invocation
-
setFiles
public final CompleteUploadExternalResponse.Builder setFiles(Iterable<? extends SlackFile> elements) Sets or replaces all elements forfileslist.- Parameters:
elements- An iterable of files elements- Returns:
thisbuilder for use in a chained invocation
-
addAllFiles
public final CompleteUploadExternalResponse.Builder addAllFiles(Iterable<? extends SlackFile> elements) Adds elements tofileslist.- Parameters:
elements- An iterable of files elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newCompleteUploadExternalResponse.- Returns:
- An immutable instance of CompleteUploadExternalResponse
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-