Location Class
- java.
lang. Object - com.
azure. resourcemanager. deviceupdate. models. Location
- com.
Implements
public final class Location
implements JsonSerializable<Location>
The Location model.
Constructor Summary
| Constructor | Description |
|---|---|
| Location() |
Creates an instance of Location class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| static Location |
fromJson(JsonReader jsonReader)
Reads an instance of Location from the Json |
| String |
name()
Get the name property: The name property. |
| Role |
role()
Get the role property: Whether the location is primary or failover. |
|
Json |
toJson(JsonWriter jsonWriter) |
| 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()
Creates an instance of Location class.
Method Details
fromJson
public static Location fromJson(JsonReader jsonReader)
Reads an instance of Location from the JsonReader.
Parameters:
Returns:
Throws:
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:
toJson
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: