Class SearchProfile

java.lang.Object
com.azure.resourcemanager.workloads.models.NodeProfile
com.azure.resourcemanager.workloads.models.SearchProfile

public final class SearchProfile extends NodeProfile
Search profile.
  • Constructor Details

    • SearchProfile

      public SearchProfile()
  • Method Details

    • searchType

      public SearchType searchType()
      Get the searchType property: Search type.
      Returns:
      the searchType value.
    • withSearchType

      public SearchProfile withSearchType(SearchType searchType)
      Set the searchType property: Search type.
      Parameters:
      searchType - the searchType value to set.
      Returns:
      the SearchProfile object itself.
    • withName

      public SearchProfile withName(String name)
      Set the name property: VM or VMSS name.
      Overrides:
      withName in class NodeProfile
      Parameters:
      name - the name value to set.
      Returns:
      the NodeProfile object itself.
    • withNodeSku

      public SearchProfile withNodeSku(String nodeSku)
      Set the nodeSku property: VM SKU for node(s).
      Overrides:
      withNodeSku in class NodeProfile
      Parameters:
      nodeSku - the nodeSku value to set.
      Returns:
      the NodeProfile object itself.
    • withOsImage

      public SearchProfile withOsImage(OsImageProfile osImage)
      Set the osImage property: OS image used for creating the nodes.
      Overrides:
      withOsImage in class NodeProfile
      Parameters:
      osImage - the osImage value to set.
      Returns:
      the NodeProfile object itself.
    • withOsDisk

      public SearchProfile withOsDisk(DiskInfo osDisk)
      Set the osDisk property: OS disk details.
      Overrides:
      withOsDisk in class NodeProfile
      Parameters:
      osDisk - the osDisk value to set.
      Returns:
      the NodeProfile object itself.
    • withDataDisks

      public SearchProfile withDataDisks(List<DiskInfo> dataDisks)
      Set the dataDisks property: Data disks details. This property is not in use right now.
      Overrides:
      withDataDisks in class NodeProfile
      Parameters:
      dataDisks - the dataDisks value to set.
      Returns:
      the NodeProfile object itself.
    • validate

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