Class AddAttachmentRequest.Builder
- Object
-
- Builder
-
- Enclosing class:
- AddAttachmentRequest
public static final class AddAttachmentRequest.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AddAttachmentRequest.Builder
baseResource(@NotNull ResourceReference baseResource)
Required. The reference to the resource new attachment should be attached to.AddAttachmentRequest.Builder
baseResourceId(UUID baseResourceId)
Sets the ID of the resource which the new attachment should be attached to.AddAttachmentRequest.Builder
baseResourceType(ResourceType baseResourceType)
Sets the type of the resource which the new attachment should be attached to.AddAttachmentRequest
build()
AddAttachmentRequest.Builder
but()
Deprecated.This method will be removed in the future.AddAttachmentRequest.Builder
file(@NotNull AddAttachmentRequest.FileReference file)
Required. The reference to the file representing new attachment.AddAttachmentRequest.Builder
fileId(UUID fileId)
AddAttachmentRequest.Builder
fileName(String fileName)
AddAttachmentRequest.Builder
fileStream(InputStream fileStream)
String
toString()
-
-
-
Method Detail
-
baseResourceId
public AddAttachmentRequest.Builder baseResourceId(UUID 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
public AddAttachmentRequest.Builder baseResourceType(ResourceType baseResourceType)
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
-
fileName
public AddAttachmentRequest.Builder fileName(String fileName)
-
fileStream
public AddAttachmentRequest.Builder fileStream(InputStream fileStream)
-
fileId
public AddAttachmentRequest.Builder fileId(UUID fileId)
-
but
@Deprecated public AddAttachmentRequest.Builder but()
Deprecated.This method will be removed in the future. Please, useAddAttachmentRequest.builder()
Clone method for this Builder.
-
baseResource
public AddAttachmentRequest.Builder baseResource(@NotNull @NotNull ResourceReference 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, Role, ValidationRule, Workflow.- Returns:
this
.
-
file
public AddAttachmentRequest.Builder file(@NotNull @NotNull AddAttachmentRequest.FileReference file)
Required. The reference to the file representing new attachment.- Returns:
this
.
-
build
public AddAttachmentRequest build()
-
toString
public String toString()
- Overrides:
toString
in classObject
-
-