Class DatabaseConfiguration

java.lang.Object
com.azure.resourcemanager.workloads.models.DatabaseConfiguration

public final class DatabaseConfiguration extends Object
Gets or sets the database configuration.
  • Constructor Details

    • DatabaseConfiguration

      public DatabaseConfiguration()
  • Method Details

    • databaseType

      public SapDatabaseType databaseType()
      Get the databaseType property: The database type.
      Returns:
      the databaseType 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.
    • subnetId

      public String subnetId()
      Get the subnetId property: The subnet id.
      Returns:
      the subnetId value.
    • 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.
    • virtualMachineConfiguration

      public VirtualMachineConfiguration virtualMachineConfiguration()
      Get the virtualMachineConfiguration property: Gets or sets the virtual machine configuration.
      Returns:
      the virtualMachineConfiguration value.
    • 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.
    • instanceCount

      public long instanceCount()
      Get the instanceCount property: The number of database VMs.
      Returns:
      the instanceCount value.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.