Class ImmutableBitsData
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableBitsData
-
- All Implemented Interfaces:
BitsData,CloudPackage.PackageData
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableBitsData extends Object implements BitsData
Immutable implementation ofBitsData.Use the builder to create immutable instances:
ImmutableBitsData.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableBitsData.BuilderBuilds instances of typeImmutableBitsData.static classImmutableBitsData.ImmutableChecksumImmutable implementation ofBitsData.Checksum.-
Nested classes/interfaces inherited from interface com.sap.cloudfoundry.client.facade.domain.BitsData
BitsData.Checksum
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableBitsData.Builderbuilder()Creates a builder forImmutableBitsData.static ImmutableBitsDatacopyOf(BitsData instance)Creates an immutable copy of aBitsDatavalue.booleanequals(Object another)This instance is equal to all instances ofImmutableBitsDatathat have equal attribute values.BitsData.ChecksumgetChecksum()StringgetError()inthashCode()Computes a hash code from attributes:checksum,error.StringtoString()Prints the immutable valueBitsDatawith attribute values.ImmutableBitsDatawithChecksum(BitsData.Checksum value)Copy the current immutable object by setting a value for thechecksumattribute.ImmutableBitsDatawithError(String value)Copy the current immutable object by setting a value for theerrorattribute.
-
-
-
Method Detail
-
getChecksum
public BitsData.Checksum getChecksum()
- Specified by:
getChecksumin interfaceBitsData- Returns:
- The value of the
checksumattribute
-
getError
public String getError()
-
withChecksum
public final ImmutableBitsData withChecksum(BitsData.Checksum value)
Copy the current immutable object by setting a value for thechecksumattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for checksum (can benull)- Returns:
- A modified copy of the
thisobject
-
withError
public final ImmutableBitsData withError(String value)
Copy the current immutable object by setting a value for theerrorattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for error (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableBitsDatathat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:checksum,error.
-
toString
public String toString()
Prints the immutable valueBitsDatawith attribute values.
-
copyOf
public static ImmutableBitsData copyOf(BitsData instance)
Creates an immutable copy of aBitsDatavalue. 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 BitsData instance
-
builder
public static ImmutableBitsData.Builder builder()
Creates a builder forImmutableBitsData.ImmutableBitsData.builder() .checksum(com.sap.cloudfoundry.client.facade.domain.BitsData.Checksum | null) // nullablechecksum.error(String | null) // nullableerror.build();- Returns:
- A new ImmutableBitsData builder
-
-