Class Location
java.lang.Object
com.azure.resourcemanager.deviceupdate.models.Location
The Location model.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionname()
Get the name property: The name property.role()
Get the role property: Whether the location is primary or failover.void
validate()
Validates the instance.Set the name property: The name property.Set the role property: Whether the location is primary or failover.
-
Constructor Details
-
Location
public Location()
-
-
Method Details
-
name
Get the name property: The name property.- Returns:
- the name value.
-
withName
Set the name property: The name property.- Parameters:
name
- the name value to set.- Returns:
- the Location object itself.
-
role
Get the role property: Whether the location is primary or failover.- Returns:
- the role value.
-
withRole
Set the role property: Whether the location is primary or failover.- Parameters:
role
- the role value to set.- Returns:
- the Location object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-