java.lang.Object
com.azure.resourcemanager.deviceupdate.models.Location

public final class Location extends Object
The Location model.
  • Constructor Details

    • Location

      public Location()
  • Method Details

    • name

      public String name()
      Get the name property: The name property.
      Returns:
      the name value.
    • withName

      public Location withName(String name)
      Set the name property: The name property.
      Parameters:
      name - the name value to set.
      Returns:
      the Location object itself.
    • role

      public Role role()
      Get the role property: Whether the location is primary or failover.
      Returns:
      the role value.
    • withRole

      public Location withRole(Role role)
      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.