Class ResourceMetadata

java.lang.Object
com.azure.resourcemanager.advisor.models.ResourceMetadata

public final class ResourceMetadata extends Object
Recommendation resource metadata.
  • Constructor Details

    • ResourceMetadata

      public ResourceMetadata()
      Creates an instance of ResourceMetadata class.
  • Method Details

    • resourceId

      public String resourceId()
      Get the resourceId property: Azure resource Id of the assessed resource.
      Returns:
      the resourceId value.
    • withResourceId

      public ResourceMetadata withResourceId(String resourceId)
      Set the resourceId property: Azure resource Id of the assessed resource.
      Parameters:
      resourceId - the resourceId value to set.
      Returns:
      the ResourceMetadata object itself.
    • source

      public String source()
      Get the source property: Source from which recommendation is generated.
      Returns:
      the source value.
    • withSource

      public ResourceMetadata withSource(String source)
      Set the source property: Source from which recommendation is generated.
      Parameters:
      source - the source value to set.
      Returns:
      the ResourceMetadata object itself.
    • action

      public Map<String,Object> action()
      Get the action property: The action to view resource.
      Returns:
      the action value.
    • withAction

      public ResourceMetadata withAction(Map<String,Object> action)
      Set the action property: The action to view resource.
      Parameters:
      action - the action value to set.
      Returns:
      the ResourceMetadata object itself.
    • singular

      public String singular()
      Get the singular property: The singular user friendly name of resource type. eg: virtual machine.
      Returns:
      the singular value.
    • withSingular

      public ResourceMetadata withSingular(String singular)
      Set the singular property: The singular user friendly name of resource type. eg: virtual machine.
      Parameters:
      singular - the singular value to set.
      Returns:
      the ResourceMetadata object itself.
    • plural

      public String plural()
      Get the plural property: The plural user friendly name of resource type. eg: virtual machines.
      Returns:
      the plural value.
    • withPlural

      public ResourceMetadata withPlural(String plural)
      Set the plural property: The plural user friendly name of resource type. eg: virtual machines.
      Parameters:
      plural - the plural value to set.
      Returns:
      the ResourceMetadata object itself.
    • validate

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