Share via


DiskEncryptionSetResourceSettings Class

public final class DiskEncryptionSetResourceSettings
extends ResourceSettings

Defines the disk encryption set resource settings.

Constructor Summary

Constructor Description
DiskEncryptionSetResourceSettings()

Creates an instance of DiskEncryptionSetResourceSettings class.

Method Summary

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

Reads an instance of DiskEncryptionSetResourceSettings from the JsonReader.

String resourceType()

Get the resourceType property: The resource type.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DiskEncryptionSetResourceSettings withTargetResourceGroupName(String targetResourceGroupName)

Set the targetResourceGroupName property: Gets or sets the target resource group name.

DiskEncryptionSetResourceSettings withTargetResourceName(String targetResourceName)

Set the targetResourceName property: Gets or sets the target Resource name.

Methods inherited from ResourceSettings

Methods inherited from java.lang.Object

Constructor Details

DiskEncryptionSetResourceSettings

public DiskEncryptionSetResourceSettings()

Creates an instance of DiskEncryptionSetResourceSettings class.

Method Details

fromJson

public static DiskEncryptionSetResourceSettings fromJson(JsonReader jsonReader)

Reads an instance of DiskEncryptionSetResourceSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the DiskEncryptionSetResourceSettings.

resourceType

public String resourceType()

Get the resourceType property: The resource type. For example, the value can be Microsoft.Compute/virtualMachines.

Overrides:

DiskEncryptionSetResourceSettings.resourceType()

Returns:

the resourceType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DiskEncryptionSetResourceSettings.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

DiskEncryptionSetResourceSettings.validate()

withTargetResourceGroupName

public DiskEncryptionSetResourceSettings withTargetResourceGroupName(String targetResourceGroupName)

Set the targetResourceGroupName property: Gets or sets the target resource group name.

Overrides:

DiskEncryptionSetResourceSettings.withTargetResourceGroupName(String targetResourceGroupName)

Parameters:

targetResourceGroupName

withTargetResourceName

public DiskEncryptionSetResourceSettings withTargetResourceName(String targetResourceName)

Set the targetResourceName property: Gets or sets the target Resource name.

Overrides:

DiskEncryptionSetResourceSettings.withTargetResourceName(String targetResourceName)

Parameters:

targetResourceName

Applies to