Package com.oracle.bmc.batch.model
Class ComputeTask
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.batch.model.BatchTask
-
- com.oracle.bmc.batch.model.ComputeTask
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20251031") public final class ComputeTask extends BatchTaskcompute task represents a single executable command together with its dependencies and resources.
Note: Objects should always be created or deserialized using theComputeTask.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theComputeTask.Builder, which maintain a set of all explicitly set fields calledComputeTask.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classComputeTask.Builder-
Nested classes/interfaces inherited from class com.oracle.bmc.batch.model.BatchTask
BatchTask.LifecycleState, BatchTask.Type
-
-
Constructor Summary
Constructors Constructor Description ComputeTask(String id, String name, String description, BatchTask.LifecycleState lifecycleState, String lifecycleDetails, List<String> entitlementClaims, List<String> dependencies, List<EnvironmentVariable> environmentVariables, String batchTaskProfileId, List<String> command, List<String> arguments, FleetAssignmentPolicy fleetAssignmentPolicy, String batchTaskEnvironmentId)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ComputeTask.Builderbuilder()Create a new builder.booleanequals(Object o)List<String>getArguments()Task arguments.StringgetBatchTaskEnvironmentId()The OCID of the BatchTaskEnvironment.StringgetBatchTaskProfileId()The OCID of the batch task profile used for this task.List<String>getCommand()An executable command to start the processing of this task.FleetAssignmentPolicygetFleetAssignmentPolicy()inthashCode()ComputeTask.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.-
Methods inherited from class com.oracle.bmc.batch.model.BatchTask
getDependencies, getDescription, getEntitlementClaims, getEnvironmentVariables, getId, getLifecycleDetails, getLifecycleState, getName
-
-
-
-
Constructor Detail
-
ComputeTask
@Deprecated public ComputeTask(String id, String name, String description, BatchTask.LifecycleState lifecycleState, String lifecycleDetails, List<String> entitlementClaims, List<String> dependencies, List<EnvironmentVariable> environmentVariables, String batchTaskProfileId, List<String> command, List<String> arguments, FleetAssignmentPolicy fleetAssignmentPolicy, String batchTaskEnvironmentId)
Deprecated.
-
-
Method Detail
-
builder
public static ComputeTask.Builder builder()
Create a new builder.
-
toBuilder
public ComputeTask.Builder toBuilder()
-
getBatchTaskProfileId
public String getBatchTaskProfileId()
The OCID of the batch task profile used for this task.- Returns:
- the value
-
getCommand
public List<String> getCommand()
An executable command to start the processing of this task.- Returns:
- the value
-
getFleetAssignmentPolicy
public FleetAssignmentPolicy getFleetAssignmentPolicy()
-
getBatchTaskEnvironmentId
public String getBatchTaskEnvironmentId()
The OCID of the BatchTaskEnvironment.- Returns:
- the value
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-