StorageAppliancePatchParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.networkcloud.models.StorageAppliancePatchParameters

Implements

public final class StorageAppliancePatchParameters
implements JsonSerializable<StorageAppliancePatchParameters>

StorageAppliancePatchParameters represents the body of the request to patch storage appliance properties.

Constructor Summary

Constructor Description
StorageAppliancePatchParameters()

Creates an instance of StorageAppliancePatchParameters class.

Method Summary

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

Reads an instance of StorageAppliancePatchParameters from the JsonReader.

String serialNumber()

Get the serialNumber property: The serial number for the storage appliance.

Map<String,String> tags()

Get the tags property: The Azure resource tags that will replace the existing ones.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

StorageAppliancePatchParameters withSerialNumber(String serialNumber)

Set the serialNumber property: The serial number for the storage appliance.

StorageAppliancePatchParameters withTags(Map<String,String> tags)

Set the tags property: The Azure resource tags that will replace the existing ones.

Methods inherited from java.lang.Object

Constructor Details

StorageAppliancePatchParameters

public StorageAppliancePatchParameters()

Creates an instance of StorageAppliancePatchParameters class.

Method Details

fromJson

public static StorageAppliancePatchParameters fromJson(JsonReader jsonReader)

Reads an instance of StorageAppliancePatchParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

serialNumber

public String serialNumber()

Get the serialNumber property: The serial number for the storage appliance.

Returns:

the serialNumber value.

tags

public Map<String,String> tags()

Get the tags property: The Azure resource tags that will replace the existing ones.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withSerialNumber

public StorageAppliancePatchParameters withSerialNumber(String serialNumber)

Set the serialNumber property: The serial number for the storage appliance.

Parameters:

serialNumber - the serialNumber value to set.

Returns:

the StorageAppliancePatchParameters object itself.

withTags

public StorageAppliancePatchParameters withTags(Map<String,String> tags)

Set the tags property: The Azure resource tags that will replace the existing ones.

Parameters:

tags - the tags value to set.

Returns:

the StorageAppliancePatchParameters object itself.

Applies to