Resource Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource
- com.
- com.
public class Resource
extends ProxyResource
The Resource model.
Constructor Summary
Constructor | Description |
---|---|
Resource() |
Creates an instance of Resource. |
Method Summary
Modifier and Type | Method and Description |
---|---|
static Resource |
fromJson(JsonReader jsonReader)
Reads a JSON stream into a Resource. |
String |
location()
Get the location value. |
Map<String,String> |
tags()
Get the tags value. |
Json |
toJson(JsonWriter jsonWriter) |
Resource |
withLocation(String location)
Set the location value. |
Resource |
withTags(Map<String,String> tags)
Set the tags value. |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
Resource
public Resource()
Creates an instance of Resource.
Method Details
fromJson
public static Resource fromJson(JsonReader jsonReader)
Reads a JSON stream into a Resource.
Parameters:
Returns:
Throws:
location
public String location()
Get the location value.
Returns:
tags
public Map
Get the tags value.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
Resource.toJson(JsonWriter jsonWriter)Parameters:
Throws:
withLocation
public Resource withLocation(String location)
Set the location value.
Parameters:
Returns:
withTags
public Resource withTags(Map
Set the tags value.
Parameters:
Returns: