ResourceLocationDataContract Class

  • java.lang.Object
    • com.azure.resourcemanager.apimanagement.models.ResourceLocationDataContract

public final class ResourceLocationDataContract

Resource location data properties.

Constructor Summary

Constructor Description
ResourceLocationDataContract()

Creates an instance of ResourceLocationDataContract class.

Method Summary

Modifier and Type Method and Description
String city()

Get the city property: The city or locality where the resource is located.

String countryOrRegion()

Get the countryOrRegion property: The country or region where the resource is located.

String district()

Get the district property: The district, state, or province where the resource is located.

String name()

Get the name property: A canonical name for the geographic or physical location.

void validate()

Validates the instance.

ResourceLocationDataContract withCity(String city)

Set the city property: The city or locality where the resource is located.

ResourceLocationDataContract withCountryOrRegion(String countryOrRegion)

Set the countryOrRegion property: The country or region where the resource is located.

ResourceLocationDataContract withDistrict(String district)

Set the district property: The district, state, or province where the resource is located.

ResourceLocationDataContract withName(String name)

Set the name property: A canonical name for the geographic or physical location.

Methods inherited from java.lang.Object

Constructor Details

ResourceLocationDataContract

public ResourceLocationDataContract()

Creates an instance of ResourceLocationDataContract class.

Method Details

city

public String city()

Get the city property: The city or locality where the resource is located.

Returns:

the city value.

countryOrRegion

public String countryOrRegion()

Get the countryOrRegion property: The country or region where the resource is located.

Returns:

the countryOrRegion value.

district

public String district()

Get the district property: The district, state, or province where the resource is located.

Returns:

the district value.

name

public String name()

Get the name property: A canonical name for the geographic or physical location.

Returns:

the name value.

validate

public void validate()

Validates the instance.

withCity

public ResourceLocationDataContract withCity(String city)

Set the city property: The city or locality where the resource is located.

Parameters:

city - the city value to set.

Returns:

the ResourceLocationDataContract object itself.

withCountryOrRegion

public ResourceLocationDataContract withCountryOrRegion(String countryOrRegion)

Set the countryOrRegion property: The country or region where the resource is located.

Parameters:

countryOrRegion - the countryOrRegion value to set.

Returns:

the ResourceLocationDataContract object itself.

withDistrict

public ResourceLocationDataContract withDistrict(String district)

Set the district property: The district, state, or province where the resource is located.

Parameters:

district - the district value to set.

Returns:

the ResourceLocationDataContract object itself.

withName

public ResourceLocationDataContract withName(String name)

Set the name property: A canonical name for the geographic or physical location.

Parameters:

name - the name value to set.

Returns:

the ResourceLocationDataContract object itself.

Applies to