Class AddAttachmentRequest
- Object
-
- AddAttachmentRequest
-
- All Implemented Interfaces:
Serializable
public class AddAttachmentRequest extends Object implements Serializable
The properties of the attachment to be added.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AddAttachmentRequest.Builder
static class
AddAttachmentRequest.FileReference
-
Constructor Summary
Constructors Constructor Description AddAttachmentRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AddAttachmentRequest.Builder
builder()
protected boolean
canEqual(Object other)
boolean
equals(Object o)
@NotNull ResourceReference
getBaseResource()
Required. The reference to the resource new attachment should be attached to.@NotNull AddAttachmentRequest.FileReference
getFile()
Required. The reference to the file representing new attachment.int
hashCode()
void
setBaseResource(@NotNull ResourceReference baseResource)
Required. The reference to the resource new attachment should be attached to.void
setBaseResourceId(UUID baseResourceId)
Sets the ID of the resource which the new attachment should be attached to.void
setBaseResourceType(ResourceType baseResourceType)
Sets the type of the resource which the new attachment should be attached to.void
setFile(@NotNull AddAttachmentRequest.FileReference file)
Required. The reference to the file representing new attachment.String
toString()
-
-
-
Method Detail
-
setBaseResourceId
public void setBaseResourceId(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
-
setBaseResourceType
public void setBaseResourceType(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. An attachment can be added on those resource types: User, Community, Domain, Asset, Role, ValidationRule, Workflow.- Parameters:
baseResourceType
- the type of the resource which the new attachment should be attached to
-
builder
public static AddAttachmentRequest.Builder builder()
-
getBaseResource
@NotNull public @NotNull ResourceReference 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, Role, ValidationRule, Workflow.
-
getFile
@NotNull public @NotNull AddAttachmentRequest.FileReference getFile()
Required. The reference to the file representing new attachment.
-
setBaseResource
public void setBaseResource(@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.
-
setFile
public void setFile(@NotNull @NotNull AddAttachmentRequest.FileReference file)
Required. The reference to the file representing new attachment.
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classObject
-
canEqual
protected boolean canEqual(Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Overrides:
toString
in classObject
-
-