@NotThreadSafe public static final class ImmutableDocumentationPage.Builder extends Object
ImmutableDocumentationPage
.
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.
Modifier and Type | Method and Description |
---|---|
ImmutableDocumentationPage |
build()
Builds a new
ImmutableDocumentationPage . |
ImmutableDocumentationPage.Builder |
from(DocumentationPage instance)
Fill a builder with attribute values from the provided
DocumentationPage instance. |
ImmutableDocumentationPage.Builder |
setId(Long id)
Initializes the value for the
id attribute. |
ImmutableDocumentationPage.Builder |
setProviderId(String providerId)
Initializes the value for the
providerId attribute. |
ImmutableDocumentationPage.Builder |
setTitle(String title)
Initializes the value for the
title attribute. |
ImmutableDocumentationPage.Builder |
setUrl(String url)
Initializes the value for the
url attribute. |
@CanIgnoreReturnValue public final ImmutableDocumentationPage.Builder from(DocumentationPage instance)
DocumentationPage
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 ImmutableDocumentationPage.Builder setId(Long id)
id
attribute.id
- The value for idthis
builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDocumentationPage.Builder setTitle(String title)
title
attribute.title
- The value for titlethis
builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDocumentationPage.Builder setUrl(String url)
url
attribute.url
- The value for urlthis
builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDocumentationPage.Builder setProviderId(String providerId)
providerId
attribute.providerId
- The value for providerIdthis
builder for use in a chained invocationpublic ImmutableDocumentationPage build()
ImmutableDocumentationPage
.IllegalStateException
- if any required attributes are missingCopyright © 2024 Atlassian. All rights reserved.