Class ImmutableRawV3CloudServiceInstance.Builder
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.adapters.ImmutableRawV3CloudServiceInstance.Builder
-
- Enclosing class:
- ImmutableRawV3CloudServiceInstance
public static final class ImmutableRawV3CloudServiceInstance.Builder extends Object
Builds instances of typeImmutableRawV3CloudServiceInstance. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableRawV3CloudServiceInstancebuild()Builds a newImmutableRawV3CloudServiceInstance.ImmutableRawV3CloudServiceInstance.Builderfrom(RawV3CloudServiceInstance instance)Fill a builder with attribute values from the providedRawV3CloudServiceInstanceinstance.ImmutableRawV3CloudServiceInstance.BuilderserviceInstance(org.cloudfoundry.client.v3.serviceinstances.ServiceInstance serviceInstance)Initializes the value for theserviceInstanceattribute.
-
-
-
Method Detail
-
from
public final ImmutableRawV3CloudServiceInstance.Builder from(RawV3CloudServiceInstance instance)
Fill a builder with attribute values from the providedRawV3CloudServiceInstanceinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
serviceInstance
public final ImmutableRawV3CloudServiceInstance.Builder serviceInstance(org.cloudfoundry.client.v3.serviceinstances.ServiceInstance serviceInstance)
Initializes the value for theserviceInstanceattribute.- Parameters:
serviceInstance- The value for serviceInstance- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableRawV3CloudServiceInstance build()
Builds a newImmutableRawV3CloudServiceInstance.- Returns:
- An immutable instance of RawV3CloudServiceInstance
- Throws:
IllegalStateException- if any required attributes are missing
-
-