ResourceLocationDataContract Class
- java.
lang. Object - com.
azure. resourcemanager. apimanagement. models. ResourceLocationDataContract
- com.
public final class ResourceLocationDataContract
Resource location data properties.
Constructor Summary
Constructor | Description |
---|---|
ResourceLocationDataContract() |
Creates an instance of Resource |
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 country |
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. |
Resource |
withCity(String city)
Set the city property: The city or locality where the resource is located. |
Resource |
withCountryOrRegion(String countryOrRegion)
Set the country |
Resource |
withDistrict(String district)
Set the district property: The district, state, or province where the resource is located. |
Resource |
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:
countryOrRegion
public String countryOrRegion()
Get the countryOrRegion property: The country or region where the resource is located.
Returns:
district
public String district()
Get the district property: The district, state, or province where the resource is located.
Returns:
name
public String name()
Get the name property: A canonical name for the geographic or physical location.
Returns:
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:
Returns:
withCountryOrRegion
public ResourceLocationDataContract withCountryOrRegion(String countryOrRegion)
Set the countryOrRegion property: The country or region where the resource is located.
Parameters:
Returns:
withDistrict
public ResourceLocationDataContract withDistrict(String district)
Set the district property: The district, state, or province where the resource is located.
Parameters:
Returns:
withName
public ResourceLocationDataContract withName(String name)
Set the name property: A canonical name for the geographic or physical location.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for