Location Class

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

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:

the name value.

role

public Role role()

Get the role property: Whether the location is primary or failover.

Returns:

the role value.

validate

public void validate()

Validates the instance.

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.

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.

Applies to