ResourceId Class
- java.
lang. Object - com.
azure. resourcemanager. machinelearning. models. ResourceId
- com.
Implements
public final class ResourceId
implements JsonSerializable<ResourceId>
Represents a resource ID. For example, for a subnet, it is the resource URL for the subnet.
Constructor Summary
| Constructor | Description |
|---|---|
| ResourceId() |
Creates an instance of Resource |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Resource |
fromJson(JsonReader jsonReader)
Reads an instance of Resource |
| String |
id()
Get the id property: The ID of the resource. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Resource |
withId(String id)
Set the id property: The ID of the resource. |
Methods inherited from java.lang.Object
Constructor Details
ResourceId
public ResourceId()
Creates an instance of ResourceId class.
Method Details
fromJson
public static ResourceId fromJson(JsonReader jsonReader)
Reads an instance of ResourceId from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: The ID of the resource.
Returns:
toJson
validate
public void validate()
Validates the instance.
withId
public ResourceId withId(String id)
Set the id property: The ID of the resource.
Parameters:
Returns: