public static final class GroupResult.Builder extends Object
Modifier and Type | Method and Description |
---|---|
GroupResult.Builder |
addAllChildGroups(Iterable<? extends GroupId> elements)
Adds elements to
childGroups set. |
GroupResult.Builder |
addChildGroup(GroupId... elements)
Adds elements to
childGroups set. |
GroupResult.Builder |
addChildGroup(GroupId element)
Adds one element to
childGroups set. |
GroupResult.Builder |
autoUpdate(AutoUpdate autoUpdate)
Initializes the value for the
autoUpdate attribute. |
GroupResult |
build()
Builds a new
GroupResult . |
GroupResult.Builder |
childGroups(Iterable<? extends GroupId> elements)
Sets or replaces all elements for
childGroups set. |
GroupResult.Builder |
createdAt(OffsetDateTime createdAt)
Initializes the value for the
createdAt attribute. |
GroupResult.Builder |
id(GroupId id)
Initializes the value for the
id attribute. |
GroupResult.Builder |
modifiedAt(OffsetDateTime modifiedAt)
Initializes the value for the
modifiedAt attribute. |
GroupResult.Builder |
name(String name)
Initializes the value for the
name attribute. |
GroupResult.Builder |
size(int size)
Initializes the value for the
size attribute. |
GroupResult.Builder |
using(GroupResult instance)
Fill a builder with attribute values from the provided
GroupResult instance. |
public final GroupResult.Builder using(GroupResult instance)
GroupResult
instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final GroupResult.Builder id(GroupId id)
id
attribute.id
- The value for idthis
builder for use in a chained invocationpublic final GroupResult.Builder name(@Nullable String name)
name
attribute.name
- The value for name (can be null
)this
builder for use in a chained invocationpublic final GroupResult.Builder size(int size)
size
attribute.size
- The value for sizethis
builder for use in a chained invocationpublic final GroupResult.Builder addChildGroup(GroupId element)
childGroups
set.element
- A childGroups elementthis
builder for use in a chained invocationpublic final GroupResult.Builder addChildGroup(GroupId... elements)
childGroups
set.elements
- An array of childGroups elementsthis
builder for use in a chained invocationpublic final GroupResult.Builder childGroups(Iterable<? extends GroupId> elements)
childGroups
set.elements
- An iterable of childGroups elementsthis
builder for use in a chained invocationpublic final GroupResult.Builder addAllChildGroups(Iterable<? extends GroupId> elements)
childGroups
set.elements
- An iterable of childGroups elementsthis
builder for use in a chained invocationpublic final GroupResult.Builder autoUpdate(@Nullable AutoUpdate autoUpdate)
autoUpdate
attribute.autoUpdate
- The value for autoUpdate (can be null
)this
builder for use in a chained invocationpublic final GroupResult.Builder createdAt(OffsetDateTime createdAt)
createdAt
attribute.createdAt
- The value for createdAtthis
builder for use in a chained invocationpublic final GroupResult.Builder modifiedAt(OffsetDateTime modifiedAt)
modifiedAt
attribute.modifiedAt
- The value for modifiedAtthis
builder for use in a chained invocationpublic GroupResult build()
GroupResult
.IllegalStateException
- if any required attributes are missingCopyright © 2016–2019 CLX Communications. All rights reserved.