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 Summary
Constructors Constructor Description RoleInstances()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>roleInstances()Get the roleInstances property: List of cloud service role instance names.voidvalidate()Validates the instance.RoleInstanceswithRoleInstances(List<String> roleInstances)Set the roleInstances property: List of cloud service role instance names.
-
-
-
Method Detail
-
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.
-
-