Class WorkflowResource

java.lang.Object
com.azure.resourcemanager.appservice.models.WorkflowResource
All Implemented Interfaces:
com.azure.json.JsonSerializable<WorkflowResource>
Direct Known Subclasses:
Workflow

public class WorkflowResource extends Object implements com.azure.json.JsonSerializable<WorkflowResource>
The base resource type.
  • Constructor Details

    • WorkflowResource

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

    • id

      public String id()
      Get the id property: The resource id.
      Returns:
      the id value.
    • name

      public String name()
      Get the name property: Gets the resource name.
      Returns:
      the name value.
    • type

      public String type()
      Get the type property: Gets the resource type.
      Returns:
      the type value.
    • location

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

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

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

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

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<WorkflowResource>
      Throws:
      IOException
    • fromJson

      public static WorkflowResource fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of WorkflowResource from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of WorkflowResource if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the WorkflowResource.