@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableAttachmentBean extends AttachmentBean
AttachmentBean.
Use the builder to create immutable instances:
ImmutableAttachmentBean.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableAttachmentBean.Builder
Builds instances of type
ImmutableAttachmentBean. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableAttachmentBean.Builder |
builder()
Creates a builder for
ImmutableAttachmentBean. |
static ImmutableAttachmentBean |
copyOf(AttachmentBean instance)
Creates an immutable copy of a
AttachmentBean value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableAttachmentBean that have equal attribute values. |
String |
getAuthor() |
String |
getComment() |
Date |
getCreated() |
String |
getFilename() |
Long |
getFileSize() |
Integer |
getId() |
String |
getMimeType() |
String |
getNameInFileSystem() |
Integer |
getObjectId() |
int |
hashCode()
Computes a hash code from attributes:
id, objectId, author, comment, filename, mimeType, nameInFileSystem, fileSize, created. |
String |
toString()
Prints the immutable value
AttachmentBean with attribute values. |
ImmutableAttachmentBean |
withAuthor(String value)
Copy the current immutable object by setting a value for the
author attribute. |
ImmutableAttachmentBean |
withComment(String value)
Copy the current immutable object by setting a value for the
comment attribute. |
ImmutableAttachmentBean |
withCreated(Date value)
Copy the current immutable object by setting a value for the
created attribute. |
ImmutableAttachmentBean |
withFilename(String value)
Copy the current immutable object by setting a value for the
filename attribute. |
ImmutableAttachmentBean |
withFileSize(Long value)
Copy the current immutable object by setting a value for the
fileSize attribute. |
ImmutableAttachmentBean |
withId(Integer value)
Copy the current immutable object by setting a value for the
id attribute. |
ImmutableAttachmentBean |
withMimeType(String value)
Copy the current immutable object by setting a value for the
mimeType attribute. |
ImmutableAttachmentBean |
withNameInFileSystem(String value)
Copy the current immutable object by setting a value for the
nameInFileSystem attribute. |
ImmutableAttachmentBean |
withObjectId(Integer value)
Copy the current immutable object by setting a value for the
objectId attribute. |
@Nullable public Integer getId()
getId in class AttachmentBeanid attributepublic Integer getObjectId()
getObjectId in class AttachmentBeanobjectId attributepublic String getAuthor()
getAuthor in class AttachmentBeanauthor attribute@Nullable public String getComment()
getComment in class AttachmentBeancomment attributepublic String getFilename()
getFilename in class AttachmentBeanfilename attributepublic String getMimeType()
getMimeType in class AttachmentBeanmimeType attributepublic String getNameInFileSystem()
getNameInFileSystem in class AttachmentBeannameInFileSystem attributepublic Long getFileSize()
getFileSize in class AttachmentBeanfileSize attributepublic Date getCreated()
getCreated in class AttachmentBeancreated attributepublic final ImmutableAttachmentBean withId(@Nullable Integer value)
id attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for id (can be null)this objectpublic final ImmutableAttachmentBean withObjectId(Integer value)
objectId attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for objectIdthis objectpublic final ImmutableAttachmentBean withAuthor(String value)
author attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for authorthis objectpublic final ImmutableAttachmentBean withComment(@Nullable String value)
comment attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for comment (can be null)this objectpublic final ImmutableAttachmentBean withFilename(String value)
filename attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for filenamethis objectpublic final ImmutableAttachmentBean withMimeType(String value)
mimeType attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for mimeTypethis objectpublic final ImmutableAttachmentBean withNameInFileSystem(String value)
nameInFileSystem attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for nameInFileSystemthis objectpublic final ImmutableAttachmentBean withFileSize(Long value)
fileSize attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for fileSizethis objectpublic final ImmutableAttachmentBean withCreated(Date value)
created attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for createdthis objectpublic boolean equals(@Nullable Object another)
ImmutableAttachmentBean that have equal attribute values.public int hashCode()
id, objectId, author, comment, filename, mimeType, nameInFileSystem, fileSize, created.public String toString()
AttachmentBean with attribute values.public static ImmutableAttachmentBean copyOf(AttachmentBean instance)
AttachmentBean value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableAttachmentBean.Builder builder()
ImmutableAttachmentBean.
ImmutableAttachmentBean.builder()
.setId(Integer | null) // nullable id
.setObjectId(Integer) // required objectId
.setAuthor(String) // required author
.setComment(String | null) // nullable comment
.setFilename(String) // required filename
.setMimeType(String) // required mimeType
.setNameInFileSystem(String) // required nameInFileSystem
.setFileSize(Long) // required fileSize
.setCreated(Date) // required created
.build();
Copyright © 2024 Atlassian. All rights reserved.