Class ImmutableDropletInfo.Builder
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableDropletInfo.Builder
-
- Enclosing class:
- ImmutableDropletInfo
public static final class ImmutableDropletInfo.Builder extends Object
Builds instances of typeImmutableDropletInfo. 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 ImmutableDropletInfobuild()Builds a newImmutableDropletInfo.ImmutableDropletInfo.Builderfrom(DropletInfo instance)Fill a builder with attribute values from the providedDropletInfoinstance.ImmutableDropletInfo.Builderguid(UUID guid)Initializes the value for theguidattribute.ImmutableDropletInfo.BuilderpackageGuid(UUID packageGuid)Initializes the value for thepackageGuidattribute.
-
-
-
Method Detail
-
from
public final ImmutableDropletInfo.Builder from(DropletInfo instance)
Fill a builder with attribute values from the providedDropletInfoinstance. 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
-
guid
public final ImmutableDropletInfo.Builder guid(UUID guid)
Initializes the value for theguidattribute.- Parameters:
guid- The value for guid (can benull)- Returns:
thisbuilder for use in a chained invocation
-
packageGuid
public final ImmutableDropletInfo.Builder packageGuid(UUID packageGuid)
Initializes the value for thepackageGuidattribute.- Parameters:
packageGuid- The value for packageGuid (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableDropletInfo build()
Builds a newImmutableDropletInfo.- Returns:
- An immutable instance of DropletInfo
- Throws:
IllegalStateException- if any required attributes are missing
-
-