RackPatchParameters Class

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

Implements

public final class RackPatchParameters
implements JsonSerializable<RackPatchParameters>

RackPatchParameters represents the body of the request to patch the rack properties.

Constructor Summary

Constructor Description
RackPatchParameters()

Creates an instance of RackPatchParameters class.

Method Summary

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

Reads an instance of RackPatchParameters from the JsonReader.

String rackLocation()

Get the rackLocation property: The free-form description of the rack location.

String rackSerialNumber()

Get the rackSerialNumber property: The globally unique identifier for the rack.

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.

RackPatchParameters withRackLocation(String rackLocation)

Set the rackLocation property: The free-form description of the rack location.

RackPatchParameters withRackSerialNumber(String rackSerialNumber)

Set the rackSerialNumber property: The globally unique identifier for the rack.

RackPatchParameters 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

RackPatchParameters

public RackPatchParameters()

Creates an instance of RackPatchParameters class.

Method Details

fromJson

public static RackPatchParameters fromJson(JsonReader jsonReader)

Reads an instance of RackPatchParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

rackLocation

public String rackLocation()

Get the rackLocation property: The free-form description of the rack location. (e.g. “DTN Datacenter, Floor 3, Isle 9, Rack 2B”).

Returns:

the rackLocation value.

rackSerialNumber

public String rackSerialNumber()

Get the rackSerialNumber property: The globally unique identifier for the rack.

Returns:

the rackSerialNumber 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.

withRackLocation

public RackPatchParameters withRackLocation(String rackLocation)

Set the rackLocation property: The free-form description of the rack location. (e.g. “DTN Datacenter, Floor 3, Isle 9, Rack 2B”).

Parameters:

rackLocation - the rackLocation value to set.

Returns:

the RackPatchParameters object itself.

withRackSerialNumber

public RackPatchParameters withRackSerialNumber(String rackSerialNumber)

Set the rackSerialNumber property: The globally unique identifier for the rack.

Parameters:

rackSerialNumber - the rackSerialNumber value to set.

Returns:

the RackPatchParameters object itself.

withTags

public RackPatchParameters 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 RackPatchParameters object itself.

Applies to