public static final class RoleRelationships.Builder extends Object
RoleRelationships.
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 |
|---|---|
RoleRelationships |
build()
Builds a new
RoleRelationships. |
RoleRelationships.Builder |
from(RoleRelationships instance)
Fill a builder with attribute values from the provided
RoleRelationships instance. |
RoleRelationships.Builder |
organization(ToOneRelationship organization)
Initializes the value for the
organization attribute. |
RoleRelationships.Builder |
space(ToOneRelationship space)
Initializes the value for the
space attribute. |
RoleRelationships.Builder |
user(ToOneRelationship user)
Initializes the value for the
user attribute. |
public final RoleRelationships.Builder from(RoleRelationships instance)
RoleRelationships 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 invocationpublic final RoleRelationships.Builder organization(ToOneRelationship organization)
organization attribute.organization - The value for organization (can be null)this builder for use in a chained invocationpublic final RoleRelationships.Builder space(ToOneRelationship space)
space attribute.space - The value for space (can be null)this builder for use in a chained invocationpublic final RoleRelationships.Builder user(ToOneRelationship user)
user attribute.user - The value for userthis builder for use in a chained invocationpublic RoleRelationships build()
RoleRelationships.IllegalStateException - if any required attributes are missingCopyright © 2021. All rights reserved.