DiskEncryptionSetParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.batch.models.DiskEncryptionSetParameters

Implements

public final class DiskEncryptionSetParameters
implements JsonSerializable<DiskEncryptionSetParameters>

The ARM resource id of the disk encryption set.

Constructor Summary

Constructor Description
DiskEncryptionSetParameters()

Creates an instance of DiskEncryptionSetParameters class.

Method Summary

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

Reads an instance of DiskEncryptionSetParameters from the JsonReader.

String id()

Get the id property: The resource id of the disk encryption set.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DiskEncryptionSetParameters withId(String id)

Set the id property: The resource id of the disk encryption set.

Methods inherited from java.lang.Object

Constructor Details

DiskEncryptionSetParameters

public DiskEncryptionSetParameters()

Creates an instance of DiskEncryptionSetParameters class.

Method Details

fromJson

public static DiskEncryptionSetParameters fromJson(JsonReader jsonReader)

Reads an instance of DiskEncryptionSetParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DiskEncryptionSetParameters 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.

id

public String id()

Get the id property: The resource id of the disk encryption set. The ARM resource id of the disk encryption set. The resource should be in the same subscription as the Batch account.

Returns:

the id value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public DiskEncryptionSetParameters withId(String id)

Set the id property: The resource id of the disk encryption set. The ARM resource id of the disk encryption set. The resource should be in the same subscription as the Batch account.

Parameters:

id - the id value to set.

Returns:

the DiskEncryptionSetParameters object itself.

Applies to