public static final class ServiceUsageEventEntity.Builder extends Object
ServiceUsageEventEntity.
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 |
|---|---|
ServiceUsageEventEntity |
build()
Builds a new
ServiceUsageEventEntity. |
ServiceUsageEventEntity.Builder |
from(ServiceUsageEventEntity instance)
Fill a builder with attribute values from the provided
ServiceUsageEventEntity instance. |
ServiceUsageEventEntity.Builder |
organizationId(String organizationId)
Initializes the value for the
organizationId attribute. |
ServiceUsageEventEntity.Builder |
serviceId(String serviceId)
Initializes the value for the
serviceId attribute. |
ServiceUsageEventEntity.Builder |
serviceInstanceId(String serviceInstanceId)
Initializes the value for the
serviceInstanceId attribute. |
ServiceUsageEventEntity.Builder |
serviceInstanceName(String serviceInstanceName)
Initializes the value for the
serviceInstanceName attribute. |
ServiceUsageEventEntity.Builder |
serviceInstanceType(String serviceInstanceType)
Initializes the value for the
serviceInstanceType attribute. |
ServiceUsageEventEntity.Builder |
serviceLabel(String serviceLabel)
Initializes the value for the
serviceLabel attribute. |
ServiceUsageEventEntity.Builder |
servicePlanId(String servicePlanId)
Initializes the value for the
servicePlanId attribute. |
ServiceUsageEventEntity.Builder |
servicePlanName(String servicePlanName)
Initializes the value for the
servicePlanName attribute. |
ServiceUsageEventEntity.Builder |
spaceId(String spaceId)
Initializes the value for the
spaceId attribute. |
ServiceUsageEventEntity.Builder |
spaceName(String spaceName)
Initializes the value for the
spaceName attribute. |
ServiceUsageEventEntity.Builder |
state(String state)
Initializes the value for the
state attribute. |
public final ServiceUsageEventEntity.Builder from(ServiceUsageEventEntity instance)
ServiceUsageEventEntity 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 ServiceUsageEventEntity.Builder organizationId(String organizationId)
organizationId attribute.organizationId - The value for organizationId (can be null)this builder for use in a chained invocationpublic final ServiceUsageEventEntity.Builder serviceId(String serviceId)
serviceId attribute.serviceId - The value for serviceId (can be null)this builder for use in a chained invocationpublic final ServiceUsageEventEntity.Builder serviceInstanceId(String serviceInstanceId)
serviceInstanceId attribute.serviceInstanceId - The value for serviceInstanceId (can be null)this builder for use in a chained invocationpublic final ServiceUsageEventEntity.Builder serviceInstanceName(String serviceInstanceName)
serviceInstanceName attribute.serviceInstanceName - The value for serviceInstanceName (can be null)this builder for use in a chained invocationpublic final ServiceUsageEventEntity.Builder serviceInstanceType(String serviceInstanceType)
serviceInstanceType attribute.serviceInstanceType - The value for serviceInstanceType (can be null)this builder for use in a chained invocationpublic final ServiceUsageEventEntity.Builder serviceLabel(String serviceLabel)
serviceLabel attribute.serviceLabel - The value for serviceLabel (can be null)this builder for use in a chained invocationpublic final ServiceUsageEventEntity.Builder servicePlanId(String servicePlanId)
servicePlanId attribute.servicePlanId - The value for servicePlanId (can be null)this builder for use in a chained invocationpublic final ServiceUsageEventEntity.Builder servicePlanName(String servicePlanName)
servicePlanName attribute.servicePlanName - The value for servicePlanNamethis builder for use in a chained invocationpublic final ServiceUsageEventEntity.Builder spaceId(String spaceId)
spaceId attribute.spaceId - The value for spaceId (can be null)this builder for use in a chained invocationpublic final ServiceUsageEventEntity.Builder spaceName(String spaceName)
spaceName attribute.spaceName - The value for spaceName (can be null)this builder for use in a chained invocationpublic final ServiceUsageEventEntity.Builder state(String state)
state attribute.state - The value for state (can be null)this builder for use in a chained invocationpublic ServiceUsageEventEntity build()
ServiceUsageEventEntity.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.