Class ImmutableInstancesInfo
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableInstancesInfo
-
- All Implemented Interfaces:
InstancesInfo
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableInstancesInfo extends Object implements InstancesInfo
Immutable implementation ofInstancesInfo.Use the builder to create immutable instances:
ImmutableInstancesInfo.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableInstancesInfo.BuilderBuilds instances of typeImmutableInstancesInfo.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableInstancesInfo.Builderbuilder()Creates a builder forImmutableInstancesInfo.static ImmutableInstancesInfocopyOf(InstancesInfo instance)Creates an immutable copy of aInstancesInfovalue.booleanequals(Object another)This instance is equal to all instances ofImmutableInstancesInfothat have equal attribute values.List<InstanceInfo>getInstances()inthashCode()Computes a hash code from attributes:instances.StringtoString()Prints the immutable valueInstancesInfowith attribute values.ImmutableInstancesInfowithInstances(InstanceInfo... elements)Copy the current immutable object with elements that replace the content ofinstances.ImmutableInstancesInfowithInstances(Iterable<? extends InstanceInfo> elements)Copy the current immutable object with elements that replace the content ofinstances.
-
-
-
Method Detail
-
getInstances
public List<InstanceInfo> getInstances()
- Specified by:
getInstancesin interfaceInstancesInfo- Returns:
- The value of the
instancesattribute
-
withInstances
public final ImmutableInstancesInfo withInstances(InstanceInfo... elements)
Copy the current immutable object with elements that replace the content ofinstances.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withInstances
public final ImmutableInstancesInfo withInstances(Iterable<? extends InstanceInfo> elements)
Copy the current immutable object with elements that replace the content ofinstances. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of instances elements to set- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableInstancesInfothat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:instances.
-
toString
public String toString()
Prints the immutable valueInstancesInfowith attribute values.
-
copyOf
public static ImmutableInstancesInfo copyOf(InstancesInfo instance)
Creates an immutable copy of aInstancesInfovalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable InstancesInfo instance
-
builder
public static ImmutableInstancesInfo.Builder builder()
Creates a builder forImmutableInstancesInfo.ImmutableInstancesInfo.builder() .addInstance|addAllInstances(com.sap.cloudfoundry.client.facade.domain.InstanceInfo) //instanceselements .build();- Returns:
- A new ImmutableInstancesInfo builder
-
-