Class ImmutableRawCloudAsyncJob.Builder
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.adapters.ImmutableRawCloudAsyncJob.Builder
-
- Enclosing class:
- ImmutableRawCloudAsyncJob
public static final class ImmutableRawCloudAsyncJob.Builder extends Object
Builds instances of typeImmutableRawCloudAsyncJob. 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 ImmutableRawCloudAsyncJobbuild()Builds a newImmutableRawCloudAsyncJob.ImmutableRawCloudAsyncJob.Builderfrom(RawCloudAsyncJob instance)Fill a builder with attribute values from the providedRawCloudAsyncJobinstance.ImmutableRawCloudAsyncJob.Builderjob(org.cloudfoundry.client.v3.jobs.Job job)Initializes the value for thejobattribute.
-
-
-
Method Detail
-
from
public final ImmutableRawCloudAsyncJob.Builder from(RawCloudAsyncJob instance)
Fill a builder with attribute values from the providedRawCloudAsyncJobinstance. 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
-
job
public final ImmutableRawCloudAsyncJob.Builder job(org.cloudfoundry.client.v3.jobs.Job job)
Initializes the value for thejobattribute.- Parameters:
job- The value for job- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableRawCloudAsyncJob build()
Builds a newImmutableRawCloudAsyncJob.- Returns:
- An immutable instance of RawCloudAsyncJob
- Throws:
IllegalStateException- if any required attributes are missing
-
-