Class DatabaseServerFullResourceNames

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

public final class DatabaseServerFullResourceNames extends Object
The full resource names object for database layer resources. The number of entries in this list should be equal to the number VMs to be created for database layer.
  • Constructor Details

    • DatabaseServerFullResourceNames

      public DatabaseServerFullResourceNames()
      Creates an instance of DatabaseServerFullResourceNames class.
  • Method Details

    • virtualMachines

      public List<VirtualMachineResourceNames> virtualMachines()
      Get the virtualMachines property: The list of virtual machine naming details.
      Returns:
      the virtualMachines value.
    • withVirtualMachines

      public DatabaseServerFullResourceNames withVirtualMachines(List<VirtualMachineResourceNames> virtualMachines)
      Set the virtualMachines property: The list of virtual machine naming details.
      Parameters:
      virtualMachines - the virtualMachines value to set.
      Returns:
      the DatabaseServerFullResourceNames object itself.
    • availabilitySetName

      public String availabilitySetName()
      Get the availabilitySetName property: The full name for availability set. In case name is not provided, it will be defaulted to {SID}-DB-AvSet.
      Returns:
      the availabilitySetName value.
    • withAvailabilitySetName

      public DatabaseServerFullResourceNames withAvailabilitySetName(String availabilitySetName)
      Set the availabilitySetName property: The full name for availability set. In case name is not provided, it will be defaulted to {SID}-DB-AvSet.
      Parameters:
      availabilitySetName - the availabilitySetName value to set.
      Returns:
      the DatabaseServerFullResourceNames object itself.
    • loadBalancer

      public LoadBalancerResourceNames loadBalancer()
      Get the loadBalancer property: The resource names object for load balancer and related resources.
      Returns:
      the loadBalancer value.
    • withLoadBalancer

      public DatabaseServerFullResourceNames withLoadBalancer(LoadBalancerResourceNames loadBalancer)
      Set the loadBalancer property: The resource names object for load balancer and related resources.
      Parameters:
      loadBalancer - the loadBalancer value to set.
      Returns:
      the DatabaseServerFullResourceNames object itself.
    • validate

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