java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.managedapplications.models.GenericResource
Direct Known Subclasses:
ApplicationDefinitionInner, ApplicationInner, ApplicationPatchable

public class GenericResource extends com.azure.core.management.Resource
Resource information.
  • Constructor Details

    • GenericResource

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

    • managedBy

      public String managedBy()
      Get the managedBy property: ID of the resource that manages this resource.
      Returns:
      the managedBy value.
    • withManagedBy

      public GenericResource withManagedBy(String managedBy)
      Set the managedBy property: ID of the resource that manages this resource.
      Parameters:
      managedBy - the managedBy value to set.
      Returns:
      the GenericResource object itself.
    • sku

      public Sku sku()
      Get the sku property: The SKU of the resource.
      Returns:
      the sku value.
    • withSku

      public GenericResource withSku(Sku sku)
      Set the sku property: The SKU of the resource.
      Parameters:
      sku - the sku value to set.
      Returns:
      the GenericResource object itself.
    • identity

      public Identity identity()
      Get the identity property: The identity of the resource.
      Returns:
      the identity value.
    • withIdentity

      public GenericResource withIdentity(Identity identity)
      Set the identity property: The identity of the resource.
      Parameters:
      identity - the identity value to set.
      Returns:
      the GenericResource object itself.
    • withLocation

      public GenericResource withLocation(String location)
      Overrides:
      withLocation in class com.azure.core.management.Resource
    • withTags

      public GenericResource withTags(Map<String,String> tags)
      Overrides:
      withTags in class com.azure.core.management.Resource
    • validate

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