BareMetalMachinePatchParameters Class

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

Implements

public final class BareMetalMachinePatchParameters
implements JsonSerializable<BareMetalMachinePatchParameters>

BareMetalMachinePatchParameters represents the body of the request to patch bare metal machine properties.

Constructor Summary

Constructor Description
BareMetalMachinePatchParameters()

Creates an instance of BareMetalMachinePatchParameters class.

Method Summary

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

Reads an instance of BareMetalMachinePatchParameters from the JsonReader.

String machineDetails()

Get the machineDetails property: The details provided by the customer during the creation of rack manifests that allows for custom data to be associated with this machine.

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.

BareMetalMachinePatchParameters withMachineDetails(String machineDetails)

Set the machineDetails property: The details provided by the customer during the creation of rack manifests that allows for custom data to be associated with this machine.

BareMetalMachinePatchParameters 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

BareMetalMachinePatchParameters

public BareMetalMachinePatchParameters()

Creates an instance of BareMetalMachinePatchParameters class.

Method Details

fromJson

public static BareMetalMachinePatchParameters fromJson(JsonReader jsonReader)

Reads an instance of BareMetalMachinePatchParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

machineDetails

public String machineDetails()

Get the machineDetails property: The details provided by the customer during the creation of rack manifests that allows for custom data to be associated with this machine.

Returns:

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

withMachineDetails

public BareMetalMachinePatchParameters withMachineDetails(String machineDetails)

Set the machineDetails property: The details provided by the customer during the creation of rack manifests that allows for custom data to be associated with this machine.

Parameters:

machineDetails - the machineDetails value to set.

Returns:

the BareMetalMachinePatchParameters object itself.

withTags

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

Applies to