Location Class
- java.
lang. Object - com.
azure. resourcemanager. deviceupdate. models. Location
- com.
public final class Location
The Location model.
Constructor Summary
| Constructor | Description | |
|---|---|---|
| Location() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
name()
Get the name property: The name property. |
| Role |
role()
Get the role property: Whether the location is primary or failover. |
| void |
validate()
Validates the instance. |
| Location |
withName(String name)
Set the name property: The name property. |
| Location |
withRole(Role role)
Set the role property: Whether the location is primary or failover. |
Methods inherited from java.lang.Object
Constructor Details
Location
public Location()
Method Details
name
public String name()
Get the name property: The name property.
Returns:
role
public Role role()
Get the role property: Whether the location is primary or failover.
Returns:
validate
public void validate()
Validates the instance.
withName
public Location withName(String name)
Set the name property: The name property.
Parameters:
Returns:
withRole
public Location withRole(Role role)
Set the role property: Whether the location is primary or failover.
Parameters:
Returns: