Class ImmutableCloudBuild.ImmutableCreatedBy
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableCloudBuild.ImmutableCreatedBy
-
- All Implemented Interfaces:
CloudBuild.CreatedBy
- Enclosing class:
- ImmutableCloudBuild
public static final class ImmutableCloudBuild.ImmutableCreatedBy extends Object implements CloudBuild.CreatedBy
Immutable implementation ofCloudBuild.CreatedBy.Use the builder to create immutable instances:
ImmutableCloudBuild.ImmutableCreatedBy.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCloudBuild.ImmutableCreatedBy.BuilderBuilds instances of typeImmutableCreatedBy.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCloudBuild.ImmutableCreatedBy.Builderbuilder()Creates a builder forImmutableCreatedBy.static ImmutableCloudBuild.ImmutableCreatedBycopyOf(CloudBuild.CreatedBy instance)Creates an immutable copy of aCloudBuild.CreatedByvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCreatedBythat have equal attribute values.UUIDgetGuid()StringgetName()inthashCode()Computes a hash code from attributes:guid,name.StringtoString()Prints the immutable valueCreatedBywith attribute values.ImmutableCloudBuild.ImmutableCreatedBywithGuid(UUID value)Copy the current immutable object by setting a value for theguidattribute.ImmutableCloudBuild.ImmutableCreatedBywithName(String value)Copy the current immutable object by setting a value for thenameattribute.
-
-
-
Method Detail
-
getGuid
public UUID getGuid()
- Specified by:
getGuidin interfaceCloudBuild.CreatedBy- Returns:
- The value of the
guidattribute
-
getName
public String getName()
- Specified by:
getNamein interfaceCloudBuild.CreatedBy- Returns:
- The value of the
nameattribute
-
withGuid
public final ImmutableCloudBuild.ImmutableCreatedBy 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
-
withName
public final ImmutableCloudBuild.ImmutableCreatedBy withName(String value)
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableCreatedBythat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:guid,name.
-
toString
public String toString()
Prints the immutable valueCreatedBywith attribute values.
-
copyOf
public static ImmutableCloudBuild.ImmutableCreatedBy copyOf(CloudBuild.CreatedBy instance)
Creates an immutable copy of aCloudBuild.CreatedByvalue. 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 CreatedBy instance
-
builder
public static ImmutableCloudBuild.ImmutableCreatedBy.Builder builder()
Creates a builder forImmutableCreatedBy.ImmutableCloudBuild.ImmutableCreatedBy.builder() .guid(UUID | null) // nullableguid.name(String | null) // nullablename.build();- Returns:
- A new ImmutableCreatedBy builder
-
-