Class ImmutableLabelTemplateBean
java.lang.Object
com.riadalabs.jira.plugins.insight.services.model.LabelTemplateBean
com.riadalabs.jira.plugins.insight.services.model.ImmutableLabelTemplateBean
- All Implemented Interfaces:
Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableLabelTemplateBean
extends LabelTemplateBean
Immutable implementation of
LabelTemplateBean
.
Use the builder to create immutable instances:
ImmutableLabelTemplateBean.builder()
.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableLabelTemplateBean
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableLabelTemplateBean
.static ImmutableLabelTemplateBean
copyOf
(LabelTemplateBean instance) Creates an immutable copy of aLabelTemplateBean
value.boolean
This instance is equal to all instances ofImmutableLabelTemplateBean
that have equal attribute values.getId()
getName()
getWidth()
int
hashCode()
Computes a hash code from attributes:id
,description
,name
,template
,objectSchemaId
,height
,width
,dynamicHeight
,created
,updated
,includeBorder
.toString()
Prints the immutable valueLabelTemplateBean
with attribute values.withCreated
(Date value) Copy the current immutable object by setting a value for thecreated
attribute.withDescription
(String value) Copy the current immutable object by setting a value for thedescription
attribute.withDynamicHeight
(Boolean value) Copy the current immutable object by setting a value for thedynamicHeight
attribute.withHeight
(Integer value) Copy the current immutable object by setting a value for theheight
attribute.Copy the current immutable object by setting a value for theid
attribute.withIncludeBorder
(Boolean value) Copy the current immutable object by setting a value for theincludeBorder
attribute.Copy the current immutable object by setting a value for thename
attribute.withObjectSchemaId
(Integer value) Copy the current immutable object by setting a value for theobjectSchemaId
attribute.withTemplate
(String value) Copy the current immutable object by setting a value for thetemplate
attribute.withUpdated
(Date value) Copy the current immutable object by setting a value for theupdated
attribute.Copy the current immutable object by setting a value for thewidth
attribute.
-
Method Details
-
getId
- Specified by:
getId
in classLabelTemplateBean
- Returns:
- The value of the
id
attribute
-
getDescription
- Specified by:
getDescription
in classLabelTemplateBean
- Returns:
- The value of the
description
attribute
-
getName
- Specified by:
getName
in classLabelTemplateBean
- Returns:
- The value of the
name
attribute
-
getTemplate
- Specified by:
getTemplate
in classLabelTemplateBean
- Returns:
- The value of the
template
attribute
-
getObjectSchemaId
- Specified by:
getObjectSchemaId
in classLabelTemplateBean
- Returns:
- The value of the
objectSchemaId
attribute
-
getHeight
- Specified by:
getHeight
in classLabelTemplateBean
- Returns:
- The value of the
height
attribute
-
getWidth
- Specified by:
getWidth
in classLabelTemplateBean
- Returns:
- The value of the
width
attribute
-
isDynamicHeight
- Specified by:
isDynamicHeight
in classLabelTemplateBean
- Returns:
- The value of the
dynamicHeight
attribute
-
getCreated
- Specified by:
getCreated
in classLabelTemplateBean
- Returns:
- The value of the
created
attribute
-
getUpdated
- Specified by:
getUpdated
in classLabelTemplateBean
- Returns:
- The value of the
updated
attribute
-
includeBorder
- Specified by:
includeBorder
in classLabelTemplateBean
- Returns:
- The value of the
includeBorder
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
-
withDescription
Copy the current immutable object by setting a value for thedescription
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for description (can benull
)- Returns:
- A modified copy of the
this
object
-
withName
Copy the current immutable object by setting a value for thename
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for name- Returns:
- A modified copy of the
this
object
-
withTemplate
Copy the current immutable object by setting a value for thetemplate
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for template- Returns:
- A modified copy of the
this
object
-
withObjectSchemaId
Copy the current immutable object by setting a value for theobjectSchemaId
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for objectSchemaId (can benull
)- Returns:
- A modified copy of the
this
object
-
withHeight
Copy the current immutable object by setting a value for theheight
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for height- Returns:
- A modified copy of the
this
object
-
withWidth
Copy the current immutable object by setting a value for thewidth
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for width- Returns:
- A modified copy of the
this
object
-
withDynamicHeight
Copy the current immutable object by setting a value for thedynamicHeight
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for dynamicHeight- 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
-
withUpdated
Copy the current immutable object by setting a value for theupdated
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for updated- Returns:
- A modified copy of the
this
object
-
withIncludeBorder
Copy the current immutable object by setting a value for theincludeBorder
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for includeBorder- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableLabelTemplateBean
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id
,description
,name
,template
,objectSchemaId
,height
,width
,dynamicHeight
,created
,updated
,includeBorder
. -
toString
Prints the immutable valueLabelTemplateBean
with attribute values. -
copyOf
Creates an immutable copy of aLabelTemplateBean
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 LabelTemplateBean instance
-
builder
Creates a builder forImmutableLabelTemplateBean
.ImmutableLabelTemplateBean.builder() .setId(Integer | null) // nullable
id
.setDescription(String | null) // nullabledescription
.setName(String) // requiredname
.setTemplate(String) // requiredtemplate
.setObjectSchemaId(Integer | null) // nullableobjectSchemaId
.setHeight(Integer) // requiredheight
.setWidth(Integer) // requiredwidth
.setDynamicHeight(Boolean) // requireddynamicHeight
.setCreated(Date) // requiredcreated
.setUpdated(Date) // requiredupdated
.setIncludeBorder(Boolean) // requiredincludeBorder
.build();- Returns:
- A new ImmutableLabelTemplateBean builder
-