Class ImmutableDropletInfo
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableDropletInfo
-
- All Implemented Interfaces:
DropletInfo
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableDropletInfo extends Object implements DropletInfo
Immutable implementation ofDropletInfo.Use the builder to create immutable instances:
ImmutableDropletInfo.builder(). Use the static factory method to create immutable instances:ImmutableDropletInfo.of().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableDropletInfo.BuilderBuilds instances of typeImmutableDropletInfo.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableDropletInfo.Builderbuilder()Creates a builder forImmutableDropletInfo.static ImmutableDropletInfocopyOf(DropletInfo instance)Creates an immutable copy of aDropletInfovalue.booleanequals(Object another)This instance is equal to all instances ofImmutableDropletInfothat have equal attribute values.UUIDgetGuid()UUIDgetPackageGuid()inthashCode()Computes a hash code from attributes:guid,packageGuid.static ImmutableDropletInfoof(UUID guid, UUID packageGuid)Construct a new immutableDropletInfoinstance.StringtoString()Prints the immutable valueDropletInfowith attribute values.ImmutableDropletInfowithGuid(UUID value)Copy the current immutable object by setting a value for theguidattribute.ImmutableDropletInfowithPackageGuid(UUID value)Copy the current immutable object by setting a value for thepackageGuidattribute.
-
-
-
Method Detail
-
getGuid
public UUID getGuid()
- Specified by:
getGuidin interfaceDropletInfo- Returns:
- The value of the
guidattribute
-
getPackageGuid
public UUID getPackageGuid()
- Specified by:
getPackageGuidin interfaceDropletInfo- Returns:
- The value of the
packageGuidattribute
-
withGuid
public final ImmutableDropletInfo withGuid(UUID value)
Copy the current immutable object by setting a value for theguidattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for guid (can benull)- Returns:
- A modified copy of the
thisobject
-
withPackageGuid
public final ImmutableDropletInfo withPackageGuid(UUID value)
Copy the current immutable object by setting a value for thepackageGuidattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for packageGuid (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableDropletInfothat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:guid,packageGuid.
-
toString
public String toString()
Prints the immutable valueDropletInfowith attribute values.
-
of
public static ImmutableDropletInfo of(UUID guid, UUID packageGuid)
Construct a new immutableDropletInfoinstance.- Parameters:
guid- The value for theguidattributepackageGuid- The value for thepackageGuidattribute- Returns:
- An immutable DropletInfo instance
-
copyOf
public static ImmutableDropletInfo copyOf(DropletInfo instance)
Creates an immutable copy of aDropletInfovalue. 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 DropletInfo instance
-
builder
public static ImmutableDropletInfo.Builder builder()
Creates a builder forImmutableDropletInfo.ImmutableDropletInfo.builder() .guid(UUID | null) // nullableguid.packageGuid(UUID | null) // nullablepackageGuid.build();- Returns:
- A new ImmutableDropletInfo builder
-
-