public static final class ImmutableCloudTask.ImmutableLimits extends Object implements CloudTask.Limits
CloudTask.Limits.
Use the builder to create immutable instances:
ImmutableCloudTask.ImmutableLimits.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableCloudTask.ImmutableLimits.Builder
Builds instances of type
ImmutableLimits. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableCloudTask.ImmutableLimits.Builder |
builder()
Creates a builder for
ImmutableLimits. |
static ImmutableCloudTask.ImmutableLimits |
copyOf(CloudTask.Limits instance)
Creates an immutable copy of a
CloudTask.Limits value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableLimits that have equal attribute values. |
Integer |
getDisk() |
Integer |
getMemory() |
int |
hashCode()
Computes a hash code from attributes:
disk, memory. |
String |
toString()
Prints the immutable value
Limits with attribute values. |
ImmutableCloudTask.ImmutableLimits |
withDisk(Integer value)
Copy the current immutable object by setting a value for the
disk attribute. |
ImmutableCloudTask.ImmutableLimits |
withMemory(Integer value)
Copy the current immutable object by setting a value for the
memory attribute. |
public Integer getDisk()
getDisk in interface CloudTask.Limitsdisk attributepublic Integer getMemory()
getMemory in interface CloudTask.Limitsmemory attributepublic final ImmutableCloudTask.ImmutableLimits withDisk(Integer value)
disk attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for disk (can be null)this objectpublic final ImmutableCloudTask.ImmutableLimits withMemory(Integer value)
memory attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for memory (can be null)this objectpublic boolean equals(Object another)
ImmutableLimits that have equal attribute values.public int hashCode()
disk, memory.public String toString()
Limits with attribute values.public static ImmutableCloudTask.ImmutableLimits copyOf(CloudTask.Limits instance)
CloudTask.Limits value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableCloudTask.ImmutableLimits.Builder builder()
ImmutableLimits.
ImmutableCloudTask.ImmutableLimits.builder()
.disk(Integer | null) // nullable disk
.memory(Integer | null) // nullable memory
.build();
Copyright © 2020 SAP SE. All rights reserved.