Class RoleInstances

java.lang.Object
com.azure.resourcemanager.compute.models.RoleInstances

public final class RoleInstances extends Object
Specifies a list of role instances from the cloud service.
  • Constructor Details

    • RoleInstances

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

    • roleInstances

      public List<String> roleInstances()
      Get the roleInstances property: List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service.
      Returns:
      the roleInstances value.
    • withRoleInstances

      public RoleInstances withRoleInstances(List<String> roleInstances)
      Set the roleInstances property: List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service.
      Parameters:
      roleInstances - the roleInstances value to set.
      Returns:
      the RoleInstances object itself.
    • validate

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