Class ImmutableCloudProcess
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.CloudEntity
-
- com.sap.cloudfoundry.client.facade.domain.CloudProcess
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableCloudProcess
-
- All Implemented Interfaces:
Derivable<CloudProcess>
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableCloudProcess extends CloudProcess
Immutable implementation ofCloudProcess.Use the builder to create immutable instances:
ImmutableCloudProcess.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCloudProcess.BuilderBuilds instances of typeImmutableCloudProcess.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCloudProcess.Builderbuilder()Creates a builder forImmutableCloudProcess.static ImmutableCloudProcesscopyOf(CloudProcess instance)Creates an immutable copy of aCloudProcessvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCloudProcessthat have equal attribute values.StringgetCommand()IntegergetDiskInMb()StringgetHealthCheckHttpEndpoint()IntegergetHealthCheckInvocationTimeout()IntegergetHealthCheckTimeout()HealthCheckTypegetHealthCheckType()IntegergetInstances()IntegergetMemoryInMb()CloudMetadatagetMetadata()StringgetName()org.cloudfoundry.client.v3.MetadatagetV3Metadata()inthashCode()Computes a hash code from attributes:name,metadata,v3Metadata,command,diskInMb,instances,memoryInMb,healthCheckType,healthCheckHttpEndpoint,healthCheckInvocationTimeout,healthCheckTimeout.StringtoString()Prints the immutable valueCloudProcesswith attribute values.ImmutableCloudProcesswithCommand(String value)Copy the current immutable object by setting a value for thecommandattribute.ImmutableCloudProcesswithDiskInMb(Integer value)Copy the current immutable object by setting a value for thediskInMbattribute.ImmutableCloudProcesswithHealthCheckHttpEndpoint(String value)Copy the current immutable object by setting a value for thehealthCheckHttpEndpointattribute.ImmutableCloudProcesswithHealthCheckInvocationTimeout(Integer value)Copy the current immutable object by setting a value for thehealthCheckInvocationTimeoutattribute.ImmutableCloudProcesswithHealthCheckTimeout(Integer value)Copy the current immutable object by setting a value for thehealthCheckTimeoutattribute.ImmutableCloudProcesswithHealthCheckType(HealthCheckType value)Copy the current immutable object by setting a value for thehealthCheckTypeattribute.ImmutableCloudProcesswithInstances(Integer value)Copy the current immutable object by setting a value for theinstancesattribute.ImmutableCloudProcesswithMemoryInMb(Integer value)Copy the current immutable object by setting a value for thememoryInMbattribute.ImmutableCloudProcesswithMetadata(CloudMetadata value)Copy the current immutable object by setting a value for themetadataattribute.ImmutableCloudProcesswithName(String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableCloudProcesswithV3Metadata(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.CloudProcess
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
-
getCommand
public String getCommand()
- Specified by:
getCommandin classCloudProcess- Returns:
- The value of the
commandattribute
-
getDiskInMb
public Integer getDiskInMb()
- Specified by:
getDiskInMbin classCloudProcess- Returns:
- The value of the
diskInMbattribute
-
getInstances
public Integer getInstances()
- Specified by:
getInstancesin classCloudProcess- Returns:
- The value of the
instancesattribute
-
getMemoryInMb
public Integer getMemoryInMb()
- Specified by:
getMemoryInMbin classCloudProcess- Returns:
- The value of the
memoryInMbattribute
-
getHealthCheckType
public HealthCheckType getHealthCheckType()
- Specified by:
getHealthCheckTypein classCloudProcess- Returns:
- The value of the
healthCheckTypeattribute
-
getHealthCheckHttpEndpoint
public String getHealthCheckHttpEndpoint()
- Specified by:
getHealthCheckHttpEndpointin classCloudProcess- Returns:
- The value of the
healthCheckHttpEndpointattribute
-
getHealthCheckInvocationTimeout
public Integer getHealthCheckInvocationTimeout()
- Specified by:
getHealthCheckInvocationTimeoutin classCloudProcess- Returns:
- The value of the
healthCheckInvocationTimeoutattribute
-
getHealthCheckTimeout
public Integer getHealthCheckTimeout()
- Specified by:
getHealthCheckTimeoutin classCloudProcess- Returns:
- The value of the
healthCheckTimeoutattribute
-
withName
public final ImmutableCloudProcess 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 ImmutableCloudProcess 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 ImmutableCloudProcess 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
-
withCommand
public final ImmutableCloudProcess withCommand(String value)
Copy the current immutable object by setting a value for thecommandattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for command- Returns:
- A modified copy of the
thisobject
-
withDiskInMb
public final ImmutableCloudProcess withDiskInMb(Integer value)
Copy the current immutable object by setting a value for thediskInMbattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for diskInMb- Returns:
- A modified copy of the
thisobject
-
withInstances
public final ImmutableCloudProcess withInstances(Integer value)
Copy the current immutable object by setting a value for theinstancesattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for instances- Returns:
- A modified copy of the
thisobject
-
withMemoryInMb
public final ImmutableCloudProcess withMemoryInMb(Integer value)
Copy the current immutable object by setting a value for thememoryInMbattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for memoryInMb- Returns:
- A modified copy of the
thisobject
-
withHealthCheckType
public final ImmutableCloudProcess withHealthCheckType(HealthCheckType value)
Copy the current immutable object by setting a value for thehealthCheckTypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for healthCheckType- Returns:
- A modified copy of the
thisobject
-
withHealthCheckHttpEndpoint
public final ImmutableCloudProcess withHealthCheckHttpEndpoint(String value)
Copy the current immutable object by setting a value for thehealthCheckHttpEndpointattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for healthCheckHttpEndpoint (can benull)- Returns:
- A modified copy of the
thisobject
-
withHealthCheckInvocationTimeout
public final ImmutableCloudProcess withHealthCheckInvocationTimeout(Integer value)
Copy the current immutable object by setting a value for thehealthCheckInvocationTimeoutattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for healthCheckInvocationTimeout (can benull)- Returns:
- A modified copy of the
thisobject
-
withHealthCheckTimeout
public final ImmutableCloudProcess withHealthCheckTimeout(Integer value)
Copy the current immutable object by setting a value for thehealthCheckTimeoutattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for healthCheckTimeout (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableCloudProcessthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:name,metadata,v3Metadata,command,diskInMb,instances,memoryInMb,healthCheckType,healthCheckHttpEndpoint,healthCheckInvocationTimeout,healthCheckTimeout.
-
toString
public String toString()
Prints the immutable valueCloudProcesswith attribute values.
-
copyOf
public static ImmutableCloudProcess copyOf(CloudProcess instance)
Creates an immutable copy of aCloudProcessvalue. 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 CloudProcess instance
-
builder
public static ImmutableCloudProcess.Builder builder()
Creates a builder forImmutableCloudProcess.ImmutableCloudProcess.builder() .name(String | null) // nullablename.metadata(com.sap.cloudfoundry.client.facade.domain.CloudMetadata | null) // nullablemetadata.v3Metadata(org.cloudfoundry.client.v3.Metadata | null) // nullablev3Metadata.command(String) // requiredcommand.diskInMb(Integer) // requireddiskInMb.instances(Integer) // requiredinstances.memoryInMb(Integer) // requiredmemoryInMb.healthCheckType(com.sap.cloudfoundry.client.facade.domain.HealthCheckType) // requiredhealthCheckType.healthCheckHttpEndpoint(String | null) // nullablehealthCheckHttpEndpoint.healthCheckInvocationTimeout(Integer | null) // nullablehealthCheckInvocationTimeout.healthCheckTimeout(Integer | null) // nullablehealthCheckTimeout.build();- Returns:
- A new ImmutableCloudProcess builder
-
-