public static final class ImmutableCloudTask.ImmutableLimits.Builder extends Object
ImmutableLimits.
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 |
|---|---|
ImmutableCloudTask.ImmutableLimits |
build()
Builds a new
ImmutableLimits. |
ImmutableCloudTask.ImmutableLimits.Builder |
disk(Integer disk)
Initializes the value for the
disk attribute. |
ImmutableCloudTask.ImmutableLimits.Builder |
from(CloudTask.Limits instance)
Fill a builder with attribute values from the provided
Limits instance. |
ImmutableCloudTask.ImmutableLimits.Builder |
memory(Integer memory)
Initializes the value for the
memory attribute. |
public final ImmutableCloudTask.ImmutableLimits.Builder from(CloudTask.Limits instance)
Limits 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 ImmutableCloudTask.ImmutableLimits.Builder disk(Integer disk)
disk attribute.disk - The value for disk (can be null)this builder for use in a chained invocationpublic final ImmutableCloudTask.ImmutableLimits.Builder memory(Integer memory)
memory attribute.memory - The value for memory (can be null)this builder for use in a chained invocationpublic ImmutableCloudTask.ImmutableLimits build()
ImmutableLimits.IllegalStateException - if any required attributes are missingCopyright © 2020 SAP SE. All rights reserved.