VM Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. network. models. VM
- com.
- com.
- com.
public final class VM
extends Resource
Describes a Virtual Machine.
Constructor Summary
Constructor | Description |
---|---|
VM() |
Creates an instance of VM class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
static VM |
fromJson(JsonReader jsonReader)
Reads an instance of VM from the Json |
String |
id()
Get the id property: Resource ID. |
String |
name()
Get the name property: The name of the resource. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
VM |
withId(String id)
Set the id property: Resource ID. |
VM | withLocation(String location) |
VM | withTags(Map<String,String> tags) |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
VM
public VM()
Creates an instance of VM class.
Method Details
fromJson
public static VM fromJson(JsonReader jsonReader)
Reads an instance of VM from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Resource ID.
Overrides:
VM.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
VM.name()Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
VM.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
VM.type()Returns:
validate
public void validate()
Validates the instance.
withId
public VM withId(String id)
Set the id property: Resource ID.
Parameters:
Returns:
withLocation
public VM withLocation(String location)
Overrides:
VM.withLocation(String location)Parameters:
withTags
public VM withTags(Map
Overrides:
VM.withTags(Map<String,String> tags)Parameters:
Applies to
Azure SDK for Java