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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WorkflowResourcefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WorkflowResource from the JsonReader.id()Get the id property: The resource id.location()Get the location property: The resource location.name()Get the name property: Gets the resource name.tags()Get the tags property: The resource tags.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Gets the resource type.voidvalidate()Validates the instance.withLocation(String location) Set the location property: The resource location.Set the tags property: The resource tags.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
WorkflowResource
public WorkflowResource()Creates an instance of WorkflowResource class.
-
-
Method Details
-
id
-
name
-
type
-
location
Get the location property: The resource location.- Returns:
- the location value.
-
withLocation
Set the location property: The resource location.- Parameters:
location- the location value to set.- Returns:
- the WorkflowResource object itself.
-
tags
-
withTags
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<WorkflowResource>- Throws:
IOException
-
fromJson
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.
-