Class ImmutableRawCloudServiceBroker.Builder
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.adapters.ImmutableRawCloudServiceBroker.Builder
-
- Enclosing class:
- ImmutableRawCloudServiceBroker
public static final class ImmutableRawCloudServiceBroker.Builder extends Object
Builds instances of typeImmutableRawCloudServiceBroker. 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 ImmutableRawCloudServiceBrokerbuild()Builds a newImmutableRawCloudServiceBroker.ImmutableRawCloudServiceBroker.Builderfrom(RawCloudServiceBroker instance)Fill a builder with attribute values from the providedRawCloudServiceBrokerinstance.ImmutableRawCloudServiceBroker.BuilderserviceBroker(org.cloudfoundry.client.v3.servicebrokers.ServiceBroker serviceBroker)Initializes the value for theserviceBrokerattribute.
-
-
-
Method Detail
-
from
public final ImmutableRawCloudServiceBroker.Builder from(RawCloudServiceBroker instance)
Fill a builder with attribute values from the providedRawCloudServiceBrokerinstance. 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
-
serviceBroker
public final ImmutableRawCloudServiceBroker.Builder serviceBroker(org.cloudfoundry.client.v3.servicebrokers.ServiceBroker serviceBroker)
Initializes the value for theserviceBrokerattribute.- Parameters:
serviceBroker- The value for serviceBroker- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableRawCloudServiceBroker build()
Builds a newImmutableRawCloudServiceBroker.- Returns:
- An immutable instance of RawCloudServiceBroker
- Throws:
IllegalStateException- if any required attributes are missing
-
-