@NotThreadSafe public static final class ImmutableLabelTemplateBean.Builder extends Object
ImmutableLabelTemplateBean
.
Initialize attributes and then invoke the build()
method to create an
immutable instance.
Builder
is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
@CanIgnoreReturnValue public final ImmutableLabelTemplateBean.Builder from(LabelTemplateBean instance)
LabelTemplateBean
instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance
- The instance from which to copy valuesthis
builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableLabelTemplateBean.Builder setId(@Nullable Integer id)
id
attribute.id
- The value for id (can be null
)this
builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableLabelTemplateBean.Builder setDescription(@Nullable String description)
description
attribute.description
- The value for description (can be null
)this
builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableLabelTemplateBean.Builder setName(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableLabelTemplateBean.Builder setTemplate(String template)
template
attribute.template
- The value for templatethis
builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableLabelTemplateBean.Builder setObjectSchemaId(@Nullable Integer objectSchemaId)
objectSchemaId
attribute.objectSchemaId
- The value for objectSchemaId (can be null
)this
builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableLabelTemplateBean.Builder setHeight(Integer height)
height
attribute.height
- The value for heightthis
builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableLabelTemplateBean.Builder setWidth(Integer width)
width
attribute.width
- The value for widththis
builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableLabelTemplateBean.Builder setDynamicHeight(Boolean dynamicHeight)
dynamicHeight
attribute.dynamicHeight
- The value for dynamicHeightthis
builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableLabelTemplateBean.Builder setCreated(Date created)
created
attribute.created
- The value for createdthis
builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableLabelTemplateBean.Builder setUpdated(Date updated)
updated
attribute.updated
- The value for updatedthis
builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableLabelTemplateBean.Builder setIncludeBorder(Boolean includeBorder)
includeBorder
attribute.includeBorder
- The value for includeBorderthis
builder for use in a chained invocationpublic ImmutableLabelTemplateBean build()
ImmutableLabelTemplateBean
.IllegalStateException
- if any required attributes are missingCopyright © 2024 Atlassian. All rights reserved.