Class ImmutableAttachmentBean
java.lang.Object
com.riadalabs.jira.plugins.insight.services.model.AttachmentBean
com.riadalabs.jira.plugins.insight.services.model.ImmutableAttachmentBean
- All Implemented Interfaces:
Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableAttachmentBean
extends AttachmentBean
Immutable implementation of
AttachmentBean
.
Use the builder to create immutable instances:
ImmutableAttachmentBean.builder()
.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableAttachmentBean
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableAttachmentBean
.static ImmutableAttachmentBean
copyOf
(AttachmentBean instance) Creates an immutable copy of aAttachmentBean
value.boolean
This instance is equal to all instances ofImmutableAttachmentBean
that have equal attribute values.getId()
int
hashCode()
Computes a hash code from attributes:id
,objectId
,author
,comment
,filename
,mimeType
,nameInFileSystem
,fileSize
,created
.toString()
Prints the immutable valueAttachmentBean
with attribute values.final ImmutableAttachmentBean
withAuthor
(String value) Copy the current immutable object by setting a value for theauthor
attribute.final ImmutableAttachmentBean
withComment
(String value) Copy the current immutable object by setting a value for thecomment
attribute.final ImmutableAttachmentBean
withCreated
(Date value) Copy the current immutable object by setting a value for thecreated
attribute.final ImmutableAttachmentBean
withFilename
(String value) Copy the current immutable object by setting a value for thefilename
attribute.final ImmutableAttachmentBean
withFileSize
(Long value) Copy the current immutable object by setting a value for thefileSize
attribute.final ImmutableAttachmentBean
Copy the current immutable object by setting a value for theid
attribute.final ImmutableAttachmentBean
withMimeType
(String value) Copy the current immutable object by setting a value for themimeType
attribute.final ImmutableAttachmentBean
withNameInFileSystem
(String value) Copy the current immutable object by setting a value for thenameInFileSystem
attribute.final ImmutableAttachmentBean
withObjectId
(Integer value) Copy the current immutable object by setting a value for theobjectId
attribute.
-
Method Details
-
getId
- Specified by:
getId
in classAttachmentBean
- Returns:
- The value of the
id
attribute
-
getObjectId
- Specified by:
getObjectId
in classAttachmentBean
- Returns:
- The value of the
objectId
attribute
-
getAuthor
- Specified by:
getAuthor
in classAttachmentBean
- Returns:
- The value of the
author
attribute
-
getComment
- Specified by:
getComment
in classAttachmentBean
- Returns:
- The value of the
comment
attribute
-
getFilename
- Specified by:
getFilename
in classAttachmentBean
- Returns:
- The value of the
filename
attribute
-
getMimeType
- Specified by:
getMimeType
in classAttachmentBean
- Returns:
- The value of the
mimeType
attribute
-
getNameInFileSystem
- Specified by:
getNameInFileSystem
in classAttachmentBean
- Returns:
- The value of the
nameInFileSystem
attribute
-
getFileSize
- Specified by:
getFileSize
in classAttachmentBean
- Returns:
- The value of the
fileSize
attribute
-
getCreated
- Specified by:
getCreated
in classAttachmentBean
- Returns:
- The value of the
created
attribute
-
withId
Copy the current immutable object by setting a value for theid
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for id (can benull
)- Returns:
- A modified copy of the
this
object
-
withObjectId
Copy the current immutable object by setting a value for theobjectId
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for objectId- Returns:
- A modified copy of the
this
object
-
withAuthor
Copy the current immutable object by setting a value for theauthor
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for author- Returns:
- A modified copy of the
this
object
-
withComment
Copy the current immutable object by setting a value for thecomment
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for comment (can benull
)- Returns:
- A modified copy of the
this
object
-
withFilename
Copy the current immutable object by setting a value for thefilename
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for filename- Returns:
- A modified copy of the
this
object
-
withMimeType
Copy the current immutable object by setting a value for themimeType
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for mimeType- Returns:
- A modified copy of the
this
object
-
withNameInFileSystem
Copy the current immutable object by setting a value for thenameInFileSystem
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for nameInFileSystem- Returns:
- A modified copy of the
this
object
-
withFileSize
Copy the current immutable object by setting a value for thefileSize
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for fileSize- Returns:
- A modified copy of the
this
object
-
withCreated
Copy the current immutable object by setting a value for thecreated
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for created- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableAttachmentBean
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id
,objectId
,author
,comment
,filename
,mimeType
,nameInFileSystem
,fileSize
,created
. -
toString
Prints the immutable valueAttachmentBean
with attribute values. -
copyOf
Creates an immutable copy of aAttachmentBean
value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance
- The instance to copy- Returns:
- A copied immutable AttachmentBean instance
-
builder
Creates a builder forImmutableAttachmentBean
.ImmutableAttachmentBean.builder() .setId(Integer | null) // nullable
id
.setObjectId(Integer) // requiredobjectId
.setAuthor(String) // requiredauthor
.setComment(String | null) // nullablecomment
.setFilename(String) // requiredfilename
.setMimeType(String) // requiredmimeType
.setNameInFileSystem(String) // requirednameInFileSystem
.setFileSize(Long) // requiredfileSize
.setCreated(Date) // requiredcreated
.build();- Returns:
- A new ImmutableAttachmentBean builder
-