public static final class SpaceQuota.Builder extends Object
SpaceQuota.
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 |
|---|---|
SpaceQuota |
build()
Builds a new
SpaceQuota. |
SpaceQuota.Builder |
from(SpaceQuota instance)
Fill a builder with attribute values from the provided
SpaceQuota instance. |
SpaceQuota.Builder |
id(String id)
Initializes the value for the
id attribute. |
SpaceQuota.Builder |
instanceMemoryLimit(Integer instanceMemoryLimit)
Initializes the value for the
instanceMemoryLimit attribute. |
SpaceQuota.Builder |
name(String name)
Initializes the value for the
name attribute. |
SpaceQuota.Builder |
organizationId(String organizationId)
Initializes the value for the
organizationId attribute. |
SpaceQuota.Builder |
paidServicePlans(Boolean paidServicePlans)
Initializes the value for the
paidServicePlans attribute. |
SpaceQuota.Builder |
totalMemoryLimit(Integer totalMemoryLimit)
Initializes the value for the
totalMemoryLimit attribute. |
SpaceQuota.Builder |
totalRoutes(Integer totalRoutes)
Initializes the value for the
totalRoutes attribute. |
SpaceQuota.Builder |
totalServiceInstances(Integer totalServiceInstances)
Initializes the value for the
totalServiceInstances attribute. |
public final SpaceQuota.Builder from(SpaceQuota instance)
SpaceQuota 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 SpaceQuota.Builder id(String id)
id attribute.id - The value for idthis builder for use in a chained invocationpublic final SpaceQuota.Builder instanceMemoryLimit(Integer instanceMemoryLimit)
instanceMemoryLimit attribute.instanceMemoryLimit - The value for instanceMemoryLimitthis builder for use in a chained invocationpublic final SpaceQuota.Builder name(String name)
name attribute.name - The value for namethis builder for use in a chained invocationpublic final SpaceQuota.Builder organizationId(String organizationId)
organizationId attribute.organizationId - The value for organizationIdthis builder for use in a chained invocationpublic final SpaceQuota.Builder paidServicePlans(Boolean paidServicePlans)
paidServicePlans attribute.paidServicePlans - The value for paidServicePlansthis builder for use in a chained invocationpublic final SpaceQuota.Builder totalMemoryLimit(Integer totalMemoryLimit)
totalMemoryLimit attribute.totalMemoryLimit - The value for totalMemoryLimitthis builder for use in a chained invocationpublic final SpaceQuota.Builder totalRoutes(Integer totalRoutes)
totalRoutes attribute.totalRoutes - The value for totalRoutesthis builder for use in a chained invocationpublic final SpaceQuota.Builder totalServiceInstances(Integer totalServiceInstances)
totalServiceInstances attribute.totalServiceInstances - The value for totalServiceInstancesthis builder for use in a chained invocationpublic SpaceQuota build()
SpaceQuota.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.