StorageApplianceConfigurationData Class

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

Implements

public final class StorageApplianceConfigurationData
implements JsonSerializable<StorageApplianceConfigurationData>

StorageApplianceConfigurationData represents configuration for the storage application.

Constructor Summary

Constructor Description
StorageApplianceConfigurationData()

Creates an instance of StorageApplianceConfigurationData class.

Method Summary

Modifier and Type Method and Description
AdministrativeCredentials adminCredentials()

Get the adminCredentials property: The credentials of the administrative interface on this storage appliance.

static StorageApplianceConfigurationData fromJson(JsonReader jsonReader)

Reads an instance of StorageApplianceConfigurationData from the JsonReader.

long rackSlot()

Get the rackSlot property: The slot that storage appliance is in the rack based on the BOM configuration.

String serialNumber()

Get the serialNumber property: The serial number of the appliance.

String storageApplianceName()

Get the storageApplianceName property: The user-provided name for the storage appliance that will be created from this specification.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

StorageApplianceConfigurationData withAdminCredentials(AdministrativeCredentials adminCredentials)

Set the adminCredentials property: The credentials of the administrative interface on this storage appliance.

StorageApplianceConfigurationData withRackSlot(long rackSlot)

Set the rackSlot property: The slot that storage appliance is in the rack based on the BOM configuration.

StorageApplianceConfigurationData withSerialNumber(String serialNumber)

Set the serialNumber property: The serial number of the appliance.

StorageApplianceConfigurationData withStorageApplianceName(String storageApplianceName)

Set the storageApplianceName property: The user-provided name for the storage appliance that will be created from this specification.

Methods inherited from java.lang.Object

Constructor Details

StorageApplianceConfigurationData

public StorageApplianceConfigurationData()

Creates an instance of StorageApplianceConfigurationData class.

Method Details

adminCredentials

public AdministrativeCredentials adminCredentials()

Get the adminCredentials property: The credentials of the administrative interface on this storage appliance. The password field is expected to be an Azure Key Vault key URL. Until the cluster is converted to utilize managed identity by setting the secret archive settings, the actual password value should be provided instead.

Returns:

the adminCredentials value.

fromJson

public static StorageApplianceConfigurationData fromJson(JsonReader jsonReader)

Reads an instance of StorageApplianceConfigurationData from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

rackSlot

public long rackSlot()

Get the rackSlot property: The slot that storage appliance is in the rack based on the BOM configuration.

Returns:

the rackSlot value.

serialNumber

public String serialNumber()

Get the serialNumber property: The serial number of the appliance.

Returns:

the serialNumber value.

storageApplianceName

public String storageApplianceName()

Get the storageApplianceName property: The user-provided name for the storage appliance that will be created from this specification.

Returns:

the storageApplianceName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdminCredentials

public StorageApplianceConfigurationData withAdminCredentials(AdministrativeCredentials adminCredentials)

Set the adminCredentials property: The credentials of the administrative interface on this storage appliance. The password field is expected to be an Azure Key Vault key URL. Until the cluster is converted to utilize managed identity by setting the secret archive settings, the actual password value should be provided instead.

Parameters:

adminCredentials - the adminCredentials value to set.

Returns:

the StorageApplianceConfigurationData object itself.

withRackSlot

public StorageApplianceConfigurationData withRackSlot(long rackSlot)

Set the rackSlot property: The slot that storage appliance is in the rack based on the BOM configuration.

Parameters:

rackSlot - the rackSlot value to set.

Returns:

the StorageApplianceConfigurationData object itself.

withSerialNumber

public StorageApplianceConfigurationData withSerialNumber(String serialNumber)

Set the serialNumber property: The serial number of the appliance.

Parameters:

serialNumber - the serialNumber value to set.

Returns:

the StorageApplianceConfigurationData object itself.

withStorageApplianceName

public StorageApplianceConfigurationData withStorageApplianceName(String storageApplianceName)

Set the storageApplianceName property: The user-provided name for the storage appliance that will be created from this specification.

Parameters:

storageApplianceName - the storageApplianceName value to set.

Returns:

the StorageApplianceConfigurationData object itself.

Applies to