Class ManagedResource

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.alertsmanagement.models.ManagedResource
Direct Known Subclasses:
AlertProcessingRuleInner

public class ManagedResource extends com.azure.core.management.ProxyResource
An azure managed resource object.
  • Constructor Details

    • ManagedResource

      public ManagedResource()
  • Method Details

    • location

      public String location()
      Get the location property: Resource location.
      Returns:
      the location value.
    • withLocation

      public ManagedResource withLocation(String location)
      Set the location property: Resource location.
      Parameters:
      location - the location value to set.
      Returns:
      the ManagedResource object itself.
    • tags

      public Map<String,String> tags()
      Get the tags property: Resource tags.
      Returns:
      the tags value.
    • withTags

      public ManagedResource withTags(Map<String,String> tags)
      Set the tags property: Resource tags.
      Parameters:
      tags - the tags value to set.
      Returns:
      the ManagedResource object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.