Class ImmutableLifecycle
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableLifecycle
-
- All Implemented Interfaces:
Lifecycle
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableLifecycle extends Object implements Lifecycle
Immutable implementation ofLifecycle.Use the builder to create immutable instances:
ImmutableLifecycle.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableLifecycle.BuilderBuilds instances of typeImmutableLifecycle.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableLifecycle.Builderbuilder()Creates a builder forImmutableLifecycle.static ImmutableLifecyclecopyOf(Lifecycle instance)Creates an immutable copy of aLifecyclevalue.booleanequals(Object another)This instance is equal to all instances ofImmutableLifecyclethat have equal attribute values.Map<String,Object>getData()LifecycleTypegetType()inthashCode()Computes a hash code from attributes:type,data.StringtoString()Prints the immutable valueLifecyclewith attribute values.ImmutableLifecyclewithData(Map<String,? extends Object> entries)Copy the current immutable object by replacing thedatamap with the specified map.ImmutableLifecyclewithType(LifecycleType value)Copy the current immutable object by setting a value for thetypeattribute.
-
-
-
Method Detail
-
getType
public LifecycleType getType()
-
withType
public final ImmutableLifecycle withType(LifecycleType value)
Copy the current immutable object by setting a value for thetypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy of the
thisobject
-
withData
public final ImmutableLifecycle withData(Map<String,? extends Object> entries)
Copy the current immutable object by replacing thedatamap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the data map- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableLifecyclethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:type,data.
-
toString
public String toString()
Prints the immutable valueLifecyclewith attribute values.
-
copyOf
public static ImmutableLifecycle copyOf(Lifecycle instance)
Creates an immutable copy of aLifecyclevalue. 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 Lifecycle instance
-
builder
public static ImmutableLifecycle.Builder builder()
Creates a builder forImmutableLifecycle.ImmutableLifecycle.builder() .type(com.sap.cloudfoundry.client.facade.domain.LifecycleType) // requiredtype.data(Map<String, Object> | null) // nullabledata.build();- Returns:
- A new ImmutableLifecycle builder
-
-