RackDefinition Class

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

Implements

public final class RackDefinition
implements JsonSerializable<RackDefinition>

RackDefinition represents details regarding the rack.

Constructor Summary

Constructor Description
RackDefinition()

Creates an instance of RackDefinition class.

Method Summary

Modifier and Type Method and Description
String availabilityZone()

Get the availabilityZone property: The zone name used for this rack when created.

List<BareMetalMachineConfigurationData> bareMetalMachineConfigurationData()

Get the bareMetalMachineConfigurationData property: The unordered list of bare metal machine configuration.

static RackDefinition fromJson(JsonReader jsonReader)

Reads an instance of RackDefinition from the JsonReader.

String networkRackId()

Get the networkRackId property: The resource ID of the network rack that matches this rack definition.

String rackLocation()

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

String rackSerialNumber()

Get the rackSerialNumber property: The unique identifier for the rack within Network Cloud cluster.

String rackSkuId()

Get the rackSkuId property: The resource ID of the sku for the rack being added.

List<StorageApplianceConfigurationData> storageApplianceConfigurationData()

Get the storageApplianceConfigurationData property: The list of storage appliance configuration data for this rack.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RackDefinition withAvailabilityZone(String availabilityZone)

Set the availabilityZone property: The zone name used for this rack when created.

RackDefinition withBareMetalMachineConfigurationData(List<BareMetalMachineConfigurationData> bareMetalMachineConfigurationData)

Set the bareMetalMachineConfigurationData property: The unordered list of bare metal machine configuration.

RackDefinition withNetworkRackId(String networkRackId)

Set the networkRackId property: The resource ID of the network rack that matches this rack definition.

RackDefinition withRackLocation(String rackLocation)

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

RackDefinition withRackSerialNumber(String rackSerialNumber)

Set the rackSerialNumber property: The unique identifier for the rack within Network Cloud cluster.

RackDefinition withRackSkuId(String rackSkuId)

Set the rackSkuId property: The resource ID of the sku for the rack being added.

RackDefinition withStorageApplianceConfigurationData(List<StorageApplianceConfigurationData> storageApplianceConfigurationData)

Set the storageApplianceConfigurationData property: The list of storage appliance configuration data for this rack.

Methods inherited from java.lang.Object

Constructor Details

RackDefinition

public RackDefinition()

Creates an instance of RackDefinition class.

Method Details

availabilityZone

public String availabilityZone()

Get the availabilityZone property: The zone name used for this rack when created. Availability zones are used for workload placement.

Returns:

the availabilityZone value.

bareMetalMachineConfigurationData

public List<BareMetalMachineConfigurationData> bareMetalMachineConfigurationData()

Get the bareMetalMachineConfigurationData property: The unordered list of bare metal machine configuration.

Returns:

the bareMetalMachineConfigurationData value.

fromJson

public static RackDefinition fromJson(JsonReader jsonReader)

Reads an instance of RackDefinition from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

networkRackId

public String networkRackId()

Get the networkRackId property: The resource ID of the network rack that matches this rack definition.

Returns:

the networkRackId value.

rackLocation

public String rackLocation()

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

Returns:

the rackLocation value.

rackSerialNumber

public String rackSerialNumber()

Get the rackSerialNumber property: The unique identifier for the rack within Network Cloud cluster. An alternate unique alphanumeric value other than a serial number may be provided if desired.

Returns:

the rackSerialNumber value.

rackSkuId

public String rackSkuId()

Get the rackSkuId property: The resource ID of the sku for the rack being added.

Returns:

the rackSkuId value.

storageApplianceConfigurationData

public List<StorageApplianceConfigurationData> storageApplianceConfigurationData()

Get the storageApplianceConfigurationData property: The list of storage appliance configuration data for this rack.

Returns:

the storageApplianceConfigurationData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAvailabilityZone

public RackDefinition withAvailabilityZone(String availabilityZone)

Set the availabilityZone property: The zone name used for this rack when created. Availability zones are used for workload placement.

Parameters:

availabilityZone - the availabilityZone value to set.

Returns:

the RackDefinition object itself.

withBareMetalMachineConfigurationData

public RackDefinition withBareMetalMachineConfigurationData(List<BareMetalMachineConfigurationData> bareMetalMachineConfigurationData)

Set the bareMetalMachineConfigurationData property: The unordered list of bare metal machine configuration.

Parameters:

bareMetalMachineConfigurationData - the bareMetalMachineConfigurationData value to set.

Returns:

the RackDefinition object itself.

withNetworkRackId

public RackDefinition withNetworkRackId(String networkRackId)

Set the networkRackId property: The resource ID of the network rack that matches this rack definition.

Parameters:

networkRackId - the networkRackId value to set.

Returns:

the RackDefinition object itself.

withRackLocation

public RackDefinition withRackLocation(String rackLocation)

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

Parameters:

rackLocation - the rackLocation value to set.

Returns:

the RackDefinition object itself.

withRackSerialNumber

public RackDefinition withRackSerialNumber(String rackSerialNumber)

Set the rackSerialNumber property: The unique identifier for the rack within Network Cloud cluster. An alternate unique alphanumeric value other than a serial number may be provided if desired.

Parameters:

rackSerialNumber - the rackSerialNumber value to set.

Returns:

the RackDefinition object itself.

withRackSkuId

public RackDefinition withRackSkuId(String rackSkuId)

Set the rackSkuId property: The resource ID of the sku for the rack being added.

Parameters:

rackSkuId - the rackSkuId value to set.

Returns:

the RackDefinition object itself.

withStorageApplianceConfigurationData

public RackDefinition withStorageApplianceConfigurationData(List<StorageApplianceConfigurationData> storageApplianceConfigurationData)

Set the storageApplianceConfigurationData property: The list of storage appliance configuration data for this rack.

Parameters:

storageApplianceConfigurationData - the storageApplianceConfigurationData value to set.

Returns:

the RackDefinition object itself.

Applies to