VirtualMachineConfiguration Class
- java.
lang. Object - com.
azure. resourcemanager. workloadssapvirtualinstance. models. VirtualMachineConfiguration
- com.
Implements
public final class VirtualMachineConfiguration
implements JsonSerializable<VirtualMachineConfiguration>
Defines the virtual machine configuration.
Constructor Summary
| Constructor | Description |
|---|---|
| VirtualMachineConfiguration() |
Creates an instance of Virtual |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
|
Image |
imageReference()
Get the image |
| OSProfile |
osProfile()
Get the os |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
| String |
vmSize()
Get the vm |
|
Virtual |
withImageReference(ImageReference imageReference)
Set the image |
|
Virtual |
withOsProfile(OSProfile osProfile)
Set the os |
|
Virtual |
withVmSize(String vmSize)
Set the vm |
Methods inherited from java.lang.Object
Constructor Details
VirtualMachineConfiguration
public VirtualMachineConfiguration()
Creates an instance of VirtualMachineConfiguration class.
Method Details
fromJson
public static VirtualMachineConfiguration fromJson(JsonReader jsonReader)
Reads an instance of VirtualMachineConfiguration from the JsonReader.
Parameters:
Returns:
Throws:
imageReference
public ImageReference imageReference()
Get the imageReference property: The image reference.
Returns:
osProfile
public OSProfile osProfile()
Get the osProfile property: The OS profile.
Returns:
toJson
validate
public void validate()
Validates the instance.
vmSize
public String vmSize()
Get the vmSize property: The virtual machine size.
Returns:
withImageReference
public VirtualMachineConfiguration withImageReference(ImageReference imageReference)
Set the imageReference property: The image reference.
Parameters:
Returns:
withOsProfile
public VirtualMachineConfiguration withOsProfile(OSProfile osProfile)
Set the osProfile property: The OS profile.
Parameters:
Returns:
withVmSize
public VirtualMachineConfiguration withVmSize(String vmSize)
Set the vmSize property: The virtual machine size.
Parameters:
Returns: