public static final class CreateDomainRequest.Builder extends Object
CreateDomainRequest
.
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 |
---|---|
CreateDomainRequest |
build()
Builds a new
CreateDomainRequest . |
CreateDomainRequest.Builder |
domain(String domain)
Initializes the value for the
domain attribute. |
CreateDomainRequest.Builder |
from(CreateDomainRequest instance)
Fill a builder with attribute values from the provided
CreateDomainRequest instance. |
CreateDomainRequest.Builder |
organization(String organization)
Initializes the value for the
organization attribute. |
public final CreateDomainRequest.Builder from(CreateDomainRequest instance)
CreateDomainRequest
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 CreateDomainRequest.Builder domain(String domain)
domain
attribute.domain
- The value for domainthis
builder for use in a chained invocationpublic final CreateDomainRequest.Builder organization(String organization)
organization
attribute.organization
- The value for organizationthis
builder for use in a chained invocationpublic CreateDomainRequest build()
CreateDomainRequest
.IllegalStateException
- if any required attributes are missingCopyright © 2016 Pivotal Software, Inc.. All rights reserved.