Class PlacementProfile

java.lang.Object
com.azure.resourcemanager.connectedvmware.models.PlacementProfile

public final class PlacementProfile extends Object
Defines the resource properties.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the clusterId property: Gets or sets the ARM Id of the cluster resource on which this virtual machine will deploy.
    Get the datastoreId property: Gets or sets the ARM Id of the datastore resource on which the data for the virtual machine will be kept.
    Get the hostId property: Gets or sets the ARM Id of the host resource on which this virtual machine will deploy.
    Get the resourcePoolId property: Gets or sets the ARM Id of the resourcePool resource on which this virtual machine will deploy.
    void
    Validates the instance.
    withClusterId(String clusterId)
    Set the clusterId property: Gets or sets the ARM Id of the cluster resource on which this virtual machine will deploy.
    withDatastoreId(String datastoreId)
    Set the datastoreId property: Gets or sets the ARM Id of the datastore resource on which the data for the virtual machine will be kept.
    Set the hostId property: Gets or sets the ARM Id of the host resource on which this virtual machine will deploy.
    withResourcePoolId(String resourcePoolId)
    Set the resourcePoolId property: Gets or sets the ARM Id of the resourcePool resource on which this virtual machine will deploy.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PlacementProfile

      public PlacementProfile()
  • Method Details

    • resourcePoolId

      public String resourcePoolId()
      Get the resourcePoolId property: Gets or sets the ARM Id of the resourcePool resource on which this virtual machine will deploy.
      Returns:
      the resourcePoolId value.
    • withResourcePoolId

      public PlacementProfile withResourcePoolId(String resourcePoolId)
      Set the resourcePoolId property: Gets or sets the ARM Id of the resourcePool resource on which this virtual machine will deploy.
      Parameters:
      resourcePoolId - the resourcePoolId value to set.
      Returns:
      the PlacementProfile object itself.
    • clusterId

      public String clusterId()
      Get the clusterId property: Gets or sets the ARM Id of the cluster resource on which this virtual machine will deploy.
      Returns:
      the clusterId value.
    • withClusterId

      public PlacementProfile withClusterId(String clusterId)
      Set the clusterId property: Gets or sets the ARM Id of the cluster resource on which this virtual machine will deploy.
      Parameters:
      clusterId - the clusterId value to set.
      Returns:
      the PlacementProfile object itself.
    • hostId

      public String hostId()
      Get the hostId property: Gets or sets the ARM Id of the host resource on which this virtual machine will deploy.
      Returns:
      the hostId value.
    • withHostId

      public PlacementProfile withHostId(String hostId)
      Set the hostId property: Gets or sets the ARM Id of the host resource on which this virtual machine will deploy.
      Parameters:
      hostId - the hostId value to set.
      Returns:
      the PlacementProfile object itself.
    • datastoreId

      public String datastoreId()
      Get the datastoreId property: Gets or sets the ARM Id of the datastore resource on which the data for the virtual machine will be kept.
      Returns:
      the datastoreId value.
    • withDatastoreId

      public PlacementProfile withDatastoreId(String datastoreId)
      Set the datastoreId property: Gets or sets the ARM Id of the datastore resource on which the data for the virtual machine will be kept.
      Parameters:
      datastoreId - the datastoreId value to set.
      Returns:
      the PlacementProfile object itself.
    • validate

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