Class AddAttachmentRequest.Builder
Object
Builder
- Enclosing class:
AddAttachmentRequest
-
Method Summary
Modifier and TypeMethodDescriptionbaseResource(ResourceReference baseResource) Required. The reference to the resource new attachment should be attached to.baseResourceDiscriminator(String baseResourceDiscriminator) Sets the resource discriminator of the resource which the new attachment should be attached to.baseResourceId(UUID baseResourceId) Sets the ID of the resource which the new attachment should be attached to.baseResourceType(ResourceType baseResourceType) Deprecated, for removal: This API element is subject to removal in a future version.build()but()Deprecated.This method will be removed in the future.Required. The reference to the file representing new attachment.fileStream(InputStream fileStream) toString()
-
Method Details
-
baseResourceId
Sets the ID of the resource which the new attachment should be attached to. This is a convenience method for setting base resource ID.- Parameters:
baseResourceId- the ID of the resource which the new attachment should be attached to
-
baseResourceType
@Deprecated(since="2025.01", forRemoval=true) public AddAttachmentRequest.Builder baseResourceType(ResourceType baseResourceType) Deprecated, for removal: This API element is subject to removal in a future version.Please useAddAttachmentRequest.setBaseResourceDiscriminator(String)instead.Sets the type of the resource which the new attachment should be attached to. This is a convenience method for setting base resource type.- Parameters:
baseResourceType- the type of the resource which the new attachment should be attached to
-
baseResourceDiscriminator
Sets the resource discriminator of the resource which the new attachment should be attached to. This is a convenience method for setting the base resource discriminator. Following discriminators are allowed for attachments: User, Community, Domain, Asset.- Parameters:
baseResourceDiscriminator- the discriminator of the resource which the new attachment should be attached to
-
fileName
-
fileStream
-
fileId
-
but
Deprecated.This method will be removed in the future. Please, useAddAttachmentRequest.builder()Clone method for this Builder. -
baseResource
Required. The reference to the resource new attachment should be attached to. An attachment can be added on those resource types: User, Community, Domain, Asset.- Returns:
this.
-
file
Required. The reference to the file representing new attachment.- Returns:
this.
-
build
-
toString
-
AddAttachmentRequest.setBaseResourceDiscriminator(String)instead.