Class ImmutableRawCloudBuild
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.adapters.RawCloudEntity<CloudBuild>
-
- com.sap.cloudfoundry.client.facade.adapters.RawCloudBuild
-
- com.sap.cloudfoundry.client.facade.adapters.ImmutableRawCloudBuild
-
- All Implemented Interfaces:
Derivable<CloudBuild>
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableRawCloudBuild extends RawCloudBuild
Immutable implementation ofRawCloudBuild.Use the builder to create immutable instances:
ImmutableRawCloudBuild.builder(). Use the static factory method to create immutable instances:ImmutableRawCloudBuild.of().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableRawCloudBuild.BuilderBuilds instances of typeImmutableRawCloudBuild.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableRawCloudBuild.Builderbuilder()Creates a builder forImmutableRawCloudBuild.static ImmutableRawCloudBuildcopyOf(RawCloudBuild instance)Creates an immutable copy of aRawCloudBuildvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableRawCloudBuildthat have equal attribute values.org.cloudfoundry.client.v3.builds.BuildgetResource()inthashCode()Computes a hash code from attributes:resource.static ImmutableRawCloudBuildof(org.cloudfoundry.client.v3.builds.Build resource)Construct a new immutableRawCloudBuildinstance.StringtoString()Prints the immutable valueRawCloudBuildwith attribute values.ImmutableRawCloudBuildwithResource(org.cloudfoundry.client.v3.builds.Build value)Copy the current immutable object by setting a value for theresourceattribute.-
Methods inherited from class com.sap.cloudfoundry.client.facade.adapters.RawCloudBuild
derive
-
Methods inherited from class com.sap.cloudfoundry.client.facade.adapters.RawCloudEntity
derive, deriveFromNullable, parseDate, parseEnum, parseGuid, parseNullableDate, parseNullableGuid, parseResourceMetadata
-
-
-
-
Method Detail
-
getResource
public org.cloudfoundry.client.v3.builds.Build getResource()
- Specified by:
getResourcein classRawCloudBuild- Returns:
- The value of the
resourceattribute
-
withResource
public final ImmutableRawCloudBuild withResource(org.cloudfoundry.client.v3.builds.Build value)
Copy the current immutable object by setting a value for theresourceattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for resource- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableRawCloudBuildthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:resource.
-
toString
public String toString()
Prints the immutable valueRawCloudBuildwith attribute values.
-
of
public static ImmutableRawCloudBuild of(org.cloudfoundry.client.v3.builds.Build resource)
Construct a new immutableRawCloudBuildinstance.- Parameters:
resource- The value for theresourceattribute- Returns:
- An immutable RawCloudBuild instance
-
copyOf
public static ImmutableRawCloudBuild copyOf(RawCloudBuild instance)
Creates an immutable copy of aRawCloudBuildvalue. 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 RawCloudBuild instance
-
builder
public static ImmutableRawCloudBuild.Builder builder()
Creates a builder forImmutableRawCloudBuild.ImmutableRawCloudBuild.builder() .resource(org.cloudfoundry.client.v3.builds.Build) // requiredresource.build();- Returns:
- A new ImmutableRawCloudBuild builder
-
-