Class AddAttachmentRequest
Object
AddAttachmentRequest
- All Implemented Interfaces:
Serializable
The properties of the attachment to be added.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AddAttachmentRequest.Builderbuilder()protected booleanbooleanRequired. The reference to the resource new attachment should be attached to.getFile()Required. The reference to the file representing new attachment.inthashCode()voidsetBaseResource(ResourceReference baseResource) Required. The reference to the resource new attachment should be attached to.voidsetBaseResourceDiscriminator(String baseResourceDiscriminator) Sets the resource discriminator of the resource which the new attachment should be attached to.voidsetBaseResourceId(UUID baseResourceId) Sets the ID of the resource which the new attachment should be attached to.voidsetBaseResourceType(ResourceType baseResourceType) Deprecated, for removal: This API element is subject to removal in a future version.voidRequired. The reference to the file representing new attachment.toString()
-
Constructor Details
-
AddAttachmentRequest
public AddAttachmentRequest()
-
-
Method Details
-
setBaseResourceId
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
-
setBaseResourceType
@Deprecated(since="2025.01", forRemoval=true) public void setBaseResourceType(ResourceType baseResourceType) Deprecated, for removal: This API element is subject to removal in a future version.Please usesetBaseResourceDiscriminator(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. An attachment can be added on those resource types: User, Community, Domain, Asset.- Parameters:
baseResourceType- the type of the resource which the new attachment should be attached to
-
setBaseResourceDiscriminator
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
-
builder
-
getBaseResource
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. -
getFile
Required. The reference to the file representing new attachment. -
setBaseResource
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. -
setFile
Required. The reference to the file representing new attachment. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
setBaseResourceDiscriminator(String)instead.