BatchJobDisableParameters Class

  • java.lang.Object
    • com.azure.compute.batch.models.BatchJobDisableParameters

Implements

public final class BatchJobDisableParameters
implements JsonSerializable<BatchJobDisableParameters>

Parameters for disabling an Azure Batch Job.

Constructor Summary

Constructor Description
BatchJobDisableParameters(DisableBatchJobOption disableTasks)

Creates an instance of BatchJobDisableParameters class.

Method Summary

Modifier and Type Method and Description
static BatchJobDisableParameters fromJson(JsonReader jsonReader)

Reads an instance of BatchJobDisableParameters from the JsonReader.

DisableBatchJobOption getDisableTasks()

Get the disableTasks property: What to do with active Tasks associated with the Job.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

BatchJobDisableParameters

public BatchJobDisableParameters(DisableBatchJobOption disableTasks)

Creates an instance of BatchJobDisableParameters class.

Parameters:

disableTasks - the disableTasks value to set.

Method Details

fromJson

public static BatchJobDisableParameters fromJson(JsonReader jsonReader)

Reads an instance of BatchJobDisableParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BatchJobDisableParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getDisableTasks

public DisableBatchJobOption getDisableTasks()

Get the disableTasks property: What to do with active Tasks associated with the Job.

Returns:

the disableTasks value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to