public static final class PrivateDomainEntity.Builder extends Object
PrivateDomainEntity.
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 |
|---|---|
PrivateDomainEntity |
build()
Builds a new
PrivateDomainEntity. |
PrivateDomainEntity.Builder |
from(PrivateDomainEntity instance)
Fill a builder with attribute values from the provided
PrivateDomainEntity instance. |
PrivateDomainEntity.Builder |
name(String name)
Initializes the value for the
name attribute. |
PrivateDomainEntity.Builder |
owningOrganizationId(String owningOrganizationId)
Initializes the value for the
owningOrganizationId attribute. |
PrivateDomainEntity.Builder |
owningOrganizationUrl(String owningOrganizationUrl)
Initializes the value for the
owningOrganizationUrl attribute. |
PrivateDomainEntity.Builder |
sharedOrganizationsUrl(String sharedOrganizationsUrl)
Initializes the value for the
sharedOrganizationsUrl attribute. |
public final PrivateDomainEntity.Builder from(PrivateDomainEntity instance)
PrivateDomainEntity 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 PrivateDomainEntity.Builder name(String name)
name attribute.name - The value for name (can be null)this builder for use in a chained invocationpublic final PrivateDomainEntity.Builder owningOrganizationId(String owningOrganizationId)
owningOrganizationId attribute.owningOrganizationId - The value for owningOrganizationId (can be null)this builder for use in a chained invocationpublic final PrivateDomainEntity.Builder owningOrganizationUrl(String owningOrganizationUrl)
owningOrganizationUrl attribute.owningOrganizationUrl - The value for owningOrganizationUrl (can be null)this builder for use in a chained invocationpublic final PrivateDomainEntity.Builder sharedOrganizationsUrl(String sharedOrganizationsUrl)
sharedOrganizationsUrl attribute.sharedOrganizationsUrl - The value for sharedOrganizationsUrl (can be null)this builder for use in a chained invocationpublic PrivateDomainEntity build()
PrivateDomainEntity.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.