Class ResourceWithOptionalLocation
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.compute.models.ResourceWithOptionalLocation
- Direct Known Subclasses:
VirtualMachineExtensionInner
public class ResourceWithOptionalLocation
extends com.azure.core.management.Resource
The Resource model definition with location property as optional.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate()Validates the instance.withLocation(String location) Methods inherited from class com.azure.core.management.Resource
location, tagsMethods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
ResourceWithOptionalLocation
public ResourceWithOptionalLocation()
-
-
Method Details
-
withLocation
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-