Class RoleInstances
java.lang.Object
com.azure.resourcemanager.compute.models.RoleInstances
Specifies a list of role instances from the cloud service.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the roleInstances property: List of cloud service role instance names.voidvalidate()Validates the instance.withRoleInstances(List<String> roleInstances) Set the roleInstances property: List of cloud service role instance names.
-
Constructor Details
-
RoleInstances
public RoleInstances()Creates an instance of RoleInstances class.
-
-
Method Details
-
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
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.
-