Class LocationData
java.lang.Object
com.azure.resourcemanager.hybridcompute.models.LocationData
Metadata pertaining to the geographic location of the resource.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncity()
Get the city property: The city or locality where the resource is located.Get the countryOrRegion property: The country or region where the resource is located.district()
Get the district property: The district, state, or province where the resource is located.name()
Get the name property: A canonical name for the geographic or physical location.void
validate()
Validates the instance.Set the city property: The city or locality where the resource is located.withCountryOrRegion
(String countryOrRegion) Set the countryOrRegion property: The country or region where the resource is located.withDistrict
(String district) Set the district property: The district, state, or province where the resource is located.Set the name property: A canonical name for the geographic or physical location.
-
Constructor Details
-
LocationData
public LocationData()Creates an instance of LocationData class.
-
-
Method Details
-
name
Get the name property: A canonical name for the geographic or physical location.- Returns:
- the name value.
-
withName
Set the name property: A canonical name for the geographic or physical location.- Parameters:
name
- the name value to set.- Returns:
- the LocationData object itself.
-
city
Get the city property: The city or locality where the resource is located.- Returns:
- the city value.
-
withCity
Set the city property: The city or locality where the resource is located.- Parameters:
city
- the city value to set.- Returns:
- the LocationData object itself.
-
district
Get the district property: The district, state, or province where the resource is located.- Returns:
- the district value.
-
withDistrict
Set the district property: The district, state, or province where the resource is located.- Parameters:
district
- the district value to set.- Returns:
- the LocationData object itself.
-
countryOrRegion
Get the countryOrRegion property: The country or region where the resource is located.- Returns:
- the countryOrRegion value.
-
withCountryOrRegion
Set the countryOrRegion property: The country or region where the resource is located.- Parameters:
countryOrRegion
- the countryOrRegion value to set.- Returns:
- the LocationData object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-