public static final class OrganizationQuota.Builder extends Object
OrganizationQuota.
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 |
|---|---|
OrganizationQuota.Builder |
allowPaidServicePlans(Boolean allowPaidServicePlans)
Initializes the value for the
allowPaidServicePlans attribute. |
OrganizationQuota.Builder |
applicationInstanceLimit(Integer applicationInstanceLimit)
Initializes the value for the
applicationInstanceLimit attribute. |
OrganizationQuota |
build()
Builds a new
OrganizationQuota. |
OrganizationQuota.Builder |
from(OrganizationQuota instance)
Fill a builder with attribute values from the provided
OrganizationQuota instance. |
OrganizationQuota.Builder |
id(String id)
Initializes the value for the
id attribute. |
OrganizationQuota.Builder |
instanceMemoryLimit(Integer instanceMemoryLimit)
Initializes the value for the
instanceMemoryLimit attribute. |
OrganizationQuota.Builder |
memoryLimit(Integer memoryLimit)
Initializes the value for the
memoryLimit attribute. |
OrganizationQuota.Builder |
name(String name)
Initializes the value for the
name attribute. |
OrganizationQuota.Builder |
totalReservedRoutePorts(Integer totalReservedRoutePorts)
Initializes the value for the
totalReservedRoutePorts attribute. |
OrganizationQuota.Builder |
totalRoutes(Integer totalRoutes)
Initializes the value for the
totalRoutes attribute. |
OrganizationQuota.Builder |
totalServices(Integer totalServices)
Initializes the value for the
totalServices attribute. |
public final OrganizationQuota.Builder from(OrganizationQuota instance)
OrganizationQuota 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 OrganizationQuota.Builder allowPaidServicePlans(Boolean allowPaidServicePlans)
allowPaidServicePlans attribute.allowPaidServicePlans - The value for allowPaidServicePlansthis builder for use in a chained invocationpublic final OrganizationQuota.Builder applicationInstanceLimit(Integer applicationInstanceLimit)
applicationInstanceLimit attribute.applicationInstanceLimit - The value for applicationInstanceLimitthis builder for use in a chained invocationpublic final OrganizationQuota.Builder id(String id)
id attribute.id - The value for idthis builder for use in a chained invocationpublic final OrganizationQuota.Builder instanceMemoryLimit(Integer instanceMemoryLimit)
instanceMemoryLimit attribute.instanceMemoryLimit - The value for instanceMemoryLimitthis builder for use in a chained invocationpublic final OrganizationQuota.Builder memoryLimit(Integer memoryLimit)
memoryLimit attribute.memoryLimit - The value for memoryLimitthis builder for use in a chained invocationpublic final OrganizationQuota.Builder name(String name)
name attribute.name - The value for namethis builder for use in a chained invocationpublic final OrganizationQuota.Builder totalReservedRoutePorts(Integer totalReservedRoutePorts)
totalReservedRoutePorts attribute.totalReservedRoutePorts - The value for totalReservedRoutePortsthis builder for use in a chained invocationpublic final OrganizationQuota.Builder totalRoutes(Integer totalRoutes)
totalRoutes attribute.totalRoutes - The value for totalRoutesthis builder for use in a chained invocationpublic final OrganizationQuota.Builder totalServices(Integer totalServices)
totalServices attribute.totalServices - The value for totalServicesthis builder for use in a chained invocationpublic OrganizationQuota build()
OrganizationQuota.IllegalStateException - if any required attributes are missingCopyright © 2018. All rights reserved.