Class ImmutableCloudBuild
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.CloudEntity
-
- com.sap.cloudfoundry.client.facade.domain.CloudBuild
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableCloudBuild
-
- All Implemented Interfaces:
Derivable<CloudBuild>
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableCloudBuild extends CloudBuild
Immutable implementation ofCloudBuild.Use the builder to create immutable instances:
ImmutableCloudBuild.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCloudBuild.BuilderBuilds instances of typeImmutableCloudBuild.static classImmutableCloudBuild.ImmutableCreatedByImmutable implementation ofCloudBuild.CreatedBy.static classImmutableCloudBuild.ImmutablePackageInfoImmutable implementation ofCloudBuild.PackageInfo.-
Nested classes/interfaces inherited from class com.sap.cloudfoundry.client.facade.domain.CloudBuild
CloudBuild.CreatedBy, CloudBuild.PackageInfo, CloudBuild.State
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCloudBuild.Builderbuilder()Creates a builder forImmutableCloudBuild.static ImmutableCloudBuildcopyOf(CloudBuild instance)Creates an immutable copy of aCloudBuildvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCloudBuildthat have equal attribute values.CloudBuild.CreatedBygetCreatedBy()DropletInfogetDropletInfo()StringgetError()CloudMetadatagetMetadata()StringgetName()CloudBuild.PackageInfogetPackageInfo()CloudBuild.StategetState()org.cloudfoundry.client.v3.MetadatagetV3Metadata()inthashCode()Computes a hash code from attributes:name,metadata,v3Metadata,state,createdBy,dropletInfo,packageInfo,error.StringtoString()Prints the immutable valueCloudBuildwith attribute values.ImmutableCloudBuildwithCreatedBy(CloudBuild.CreatedBy value)Copy the current immutable object by setting a value for thecreatedByattribute.ImmutableCloudBuildwithDropletInfo(DropletInfo value)Copy the current immutable object by setting a value for thedropletInfoattribute.ImmutableCloudBuildwithError(String value)Copy the current immutable object by setting a value for theerrorattribute.ImmutableCloudBuildwithMetadata(CloudMetadata value)Copy the current immutable object by setting a value for themetadataattribute.ImmutableCloudBuildwithName(String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableCloudBuildwithPackageInfo(CloudBuild.PackageInfo value)Copy the current immutable object by setting a value for thepackageInfoattribute.ImmutableCloudBuildwithState(CloudBuild.State value)Copy the current immutable object by setting a value for thestateattribute.ImmutableCloudBuildwithV3Metadata(org.cloudfoundry.client.v3.Metadata value)Copy the current immutable object by setting a value for thev3Metadataattribute.-
Methods inherited from class com.sap.cloudfoundry.client.facade.domain.CloudBuild
derive
-
Methods inherited from class com.sap.cloudfoundry.client.facade.domain.CloudEntity
getGuid
-
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein classCloudEntity- Returns:
- The value of the
nameattribute
-
getMetadata
public CloudMetadata getMetadata()
- Specified by:
getMetadatain classCloudEntity- Returns:
- The value of the
metadataattribute
-
getV3Metadata
public org.cloudfoundry.client.v3.Metadata getV3Metadata()
- Specified by:
getV3Metadatain classCloudEntity- Returns:
- The value of the
v3Metadataattribute
-
getState
public CloudBuild.State getState()
- Specified by:
getStatein classCloudBuild- Returns:
- The value of the
stateattribute
-
getCreatedBy
public CloudBuild.CreatedBy getCreatedBy()
- Specified by:
getCreatedByin classCloudBuild- Returns:
- The value of the
createdByattribute
-
getDropletInfo
public DropletInfo getDropletInfo()
- Specified by:
getDropletInfoin classCloudBuild- Returns:
- The value of the
dropletInfoattribute
-
getPackageInfo
public CloudBuild.PackageInfo getPackageInfo()
- Specified by:
getPackageInfoin classCloudBuild- Returns:
- The value of the
packageInfoattribute
-
getError
public String getError()
- Specified by:
getErrorin classCloudBuild- Returns:
- The value of the
errorattribute
-
withName
public final ImmutableCloudBuild 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
-
withMetadata
public final ImmutableCloudBuild withMetadata(CloudMetadata value)
Copy the current immutable object by setting a value for themetadataattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for metadata (can benull)- Returns:
- A modified copy of the
thisobject
-
withV3Metadata
public final ImmutableCloudBuild withV3Metadata(org.cloudfoundry.client.v3.Metadata value)
Copy the current immutable object by setting a value for thev3Metadataattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for v3Metadata (can benull)- Returns:
- A modified copy of the
thisobject
-
withState
public final ImmutableCloudBuild withState(CloudBuild.State value)
Copy the current immutable object by setting a value for thestateattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for state (can benull)- Returns:
- A modified copy of the
thisobject
-
withCreatedBy
public final ImmutableCloudBuild withCreatedBy(CloudBuild.CreatedBy value)
Copy the current immutable object by setting a value for thecreatedByattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for createdBy (can benull)- Returns:
- A modified copy of the
thisobject
-
withDropletInfo
public final ImmutableCloudBuild withDropletInfo(DropletInfo value)
Copy the current immutable object by setting a value for thedropletInfoattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for dropletInfo (can benull)- Returns:
- A modified copy of the
thisobject
-
withPackageInfo
public final ImmutableCloudBuild withPackageInfo(CloudBuild.PackageInfo value)
Copy the current immutable object by setting a value for thepackageInfoattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for packageInfo (can benull)- Returns:
- A modified copy of the
thisobject
-
withError
public final ImmutableCloudBuild 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 ofImmutableCloudBuildthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:name,metadata,v3Metadata,state,createdBy,dropletInfo,packageInfo,error.
-
toString
public String toString()
Prints the immutable valueCloudBuildwith attribute values.
-
copyOf
public static ImmutableCloudBuild copyOf(CloudBuild instance)
Creates an immutable copy of aCloudBuildvalue. 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 CloudBuild instance
-
builder
public static ImmutableCloudBuild.Builder builder()
Creates a builder forImmutableCloudBuild.ImmutableCloudBuild.builder() .name(String | null) // nullablename.metadata(com.sap.cloudfoundry.client.facade.domain.CloudMetadata | null) // nullablemetadata.v3Metadata(org.cloudfoundry.client.v3.Metadata | null) // nullablev3Metadata.state(com.sap.cloudfoundry.client.facade.domain.CloudBuild.State | null) // nullablestate.createdBy(com.sap.cloudfoundry.client.facade.domain.CloudBuild.CreatedBy | null) // nullablecreatedBy.dropletInfo(com.sap.cloudfoundry.client.facade.domain.DropletInfo | null) // nullabledropletInfo.packageInfo(com.sap.cloudfoundry.client.facade.domain.CloudBuild.PackageInfo | null) // nullablepackageInfo.error(String | null) // nullableerror.build();- Returns:
- A new ImmutableCloudBuild builder
-
-