DatabaseConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.workloadssapvirtualinstance.models.DatabaseConfiguration

Implements

public final class DatabaseConfiguration
implements JsonSerializable<DatabaseConfiguration>

Gets or sets the database configuration.

Constructor Summary

Constructor Description
DatabaseConfiguration()

Creates an instance of DatabaseConfiguration class.

Method Summary

Modifier and Type Method and Description
SapDatabaseType databaseType()

Get the databaseType property: The database type.

DiskConfiguration diskConfiguration()

Get the diskConfiguration property: Gets or sets the disk configuration.

static DatabaseConfiguration fromJson(JsonReader jsonReader)

Reads an instance of DatabaseConfiguration from the JsonReader.

long instanceCount()

Get the instanceCount property: The number of database VMs.

String subnetId()

Get the subnetId property: The subnet id.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualMachineConfiguration virtualMachineConfiguration()

Get the virtualMachineConfiguration property: Gets or sets the virtual machine configuration.

DatabaseConfiguration withDatabaseType(SapDatabaseType databaseType)

Set the databaseType property: The database type.

DatabaseConfiguration withDiskConfiguration(DiskConfiguration diskConfiguration)

Set the diskConfiguration property: Gets or sets the disk configuration.

DatabaseConfiguration withInstanceCount(long instanceCount)

Set the instanceCount property: The number of database VMs.

DatabaseConfiguration withSubnetId(String subnetId)

Set the subnetId property: The subnet id.

DatabaseConfiguration withVirtualMachineConfiguration(VirtualMachineConfiguration virtualMachineConfiguration)

Set the virtualMachineConfiguration property: Gets or sets the virtual machine configuration.

Methods inherited from java.lang.Object

Constructor Details

DatabaseConfiguration

public DatabaseConfiguration()

Creates an instance of DatabaseConfiguration class.

Method Details

databaseType

public SapDatabaseType databaseType()

Get the databaseType property: The database type.

Returns:

the databaseType value.

diskConfiguration

public DiskConfiguration diskConfiguration()

Get the diskConfiguration property: Gets or sets the disk configuration.

Returns:

the diskConfiguration value.

fromJson

public static DatabaseConfiguration fromJson(JsonReader jsonReader)

Reads an instance of DatabaseConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

instanceCount

public long instanceCount()

Get the instanceCount property: The number of database VMs.

Returns:

the instanceCount value.

subnetId

public String subnetId()

Get the subnetId property: The subnet id.

Returns:

the subnetId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

virtualMachineConfiguration

public VirtualMachineConfiguration virtualMachineConfiguration()

Get the virtualMachineConfiguration property: Gets or sets the virtual machine configuration.

Returns:

the virtualMachineConfiguration value.

withDatabaseType

public DatabaseConfiguration withDatabaseType(SapDatabaseType databaseType)

Set the databaseType property: The database type.

Parameters:

databaseType - the databaseType value to set.

Returns:

the DatabaseConfiguration object itself.

withDiskConfiguration

public DatabaseConfiguration withDiskConfiguration(DiskConfiguration diskConfiguration)

Set the diskConfiguration property: Gets or sets the disk configuration.

Parameters:

diskConfiguration - the diskConfiguration value to set.

Returns:

the DatabaseConfiguration object itself.

withInstanceCount

public DatabaseConfiguration withInstanceCount(long instanceCount)

Set the instanceCount property: The number of database VMs.

Parameters:

instanceCount - the instanceCount value to set.

Returns:

the DatabaseConfiguration object itself.

withSubnetId

public DatabaseConfiguration withSubnetId(String subnetId)

Set the subnetId property: The subnet id.

Parameters:

subnetId - the subnetId value to set.

Returns:

the DatabaseConfiguration object itself.

withVirtualMachineConfiguration

public DatabaseConfiguration withVirtualMachineConfiguration(VirtualMachineConfiguration virtualMachineConfiguration)

Set the virtualMachineConfiguration property: Gets or sets the virtual machine configuration.

Parameters:

virtualMachineConfiguration - the virtualMachineConfiguration value to set.

Returns:

the DatabaseConfiguration object itself.

Applies to