VirtualMachineResourceSettings Class
- java.
lang. Object - com.
azure. resourcemanager. resourcemover. models. ResourceSettings - com.
azure. resourcemanager. resourcemover. models. VirtualMachineResourceSettings
- com.
- com.
public final class VirtualMachineResourceSettings
extends ResourceSettings
Gets or sets the virtual machine resource settings.
Constructor Summary
| Constructor | Description |
|---|---|
| VirtualMachineResourceSettings() |
Creates an instance of Virtual |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
| String |
resourceType()
Get the resource |
| Map<String,String> |
tags()
Get the tags property: Gets or sets the Resource tags. |
| String |
targetAvailabilitySetId()
Get the target |
|
Target |
targetAvailabilityZone()
Get the target |
| String |
targetVmSize()
Get the target |
|
Json |
toJson(JsonWriter jsonWriter) |
| List<String> |
userManagedIdentities()
Get the user |
| void |
validate()
Validates the instance. |
|
Virtual |
withTags(Map<String,String> tags)
Set the tags property: Gets or sets the Resource tags. |
|
Virtual |
withTargetAvailabilitySetId(String targetAvailabilitySetId)
Set the target |
|
Virtual |
withTargetAvailabilityZone(TargetAvailabilityZone targetAvailabilityZone)
Set the target |
|
Virtual |
withTargetResourceGroupName(String targetResourceGroupName)
Set the target |
|
Virtual |
withTargetResourceName(String targetResourceName)
Set the target |
|
Virtual |
withTargetVmSize(String targetVmSize)
Set the target |
|
Virtual |
withUserManagedIdentities(List<String> userManagedIdentities)
Set the user |
Methods inherited from ResourceSettings
Methods inherited from java.lang.Object
Constructor Details
VirtualMachineResourceSettings
public VirtualMachineResourceSettings()
Creates an instance of VirtualMachineResourceSettings class.
Method Details
fromJson
public static VirtualMachineResourceSettings fromJson(JsonReader jsonReader)
Reads an instance of VirtualMachineResourceSettings from the JsonReader.
Parameters:
Returns:
Throws:
resourceType
public String resourceType()
Get the resourceType property: The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
Overrides:
VirtualMachineResourceSettings.resourceType()Returns:
tags
public Map<String,String> tags()
Get the tags property: Gets or sets the Resource tags.
Returns:
targetAvailabilitySetId
public String targetAvailabilitySetId()
Get the targetAvailabilitySetId property: Gets or sets the target availability set id for virtual machines not in an availability set at source.
Returns:
targetAvailabilityZone
public TargetAvailabilityZone targetAvailabilityZone()
Get the targetAvailabilityZone property: Gets or sets the target availability zone.
Returns:
targetVmSize
public String targetVmSize()
Get the targetVmSize property: Gets or sets the target virtual machine size.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
VirtualMachineResourceSettings.toJson(JsonWriter jsonWriter)Parameters:
Throws:
userManagedIdentities
public List<String> userManagedIdentities()
Get the userManagedIdentities property: Gets or sets user-managed identities.
Returns:
validate
public void validate()
Validates the instance.
Overrides:
VirtualMachineResourceSettings.validate()withTags
public VirtualMachineResourceSettings withTags(Map<String,String> tags)
Set the tags property: Gets or sets the Resource tags.
Parameters:
Returns:
withTargetAvailabilitySetId
public VirtualMachineResourceSettings withTargetAvailabilitySetId(String targetAvailabilitySetId)
Set the targetAvailabilitySetId property: Gets or sets the target availability set id for virtual machines not in an availability set at source.
Parameters:
Returns:
withTargetAvailabilityZone
public VirtualMachineResourceSettings withTargetAvailabilityZone(TargetAvailabilityZone targetAvailabilityZone)
Set the targetAvailabilityZone property: Gets or sets the target availability zone.
Parameters:
Returns:
withTargetResourceGroupName
public VirtualMachineResourceSettings withTargetResourceGroupName(String targetResourceGroupName)
Set the targetResourceGroupName property: Gets or sets the target resource group name.
Overrides:
VirtualMachineResourceSettings.withTargetResourceGroupName(String targetResourceGroupName)Parameters:
withTargetResourceName
public VirtualMachineResourceSettings withTargetResourceName(String targetResourceName)
Set the targetResourceName property: Gets or sets the target Resource name.
Overrides:
VirtualMachineResourceSettings.withTargetResourceName(String targetResourceName)Parameters:
withTargetVmSize
public VirtualMachineResourceSettings withTargetVmSize(String targetVmSize)
Set the targetVmSize property: Gets or sets the target virtual machine size.
Parameters:
Returns:
withUserManagedIdentities
public VirtualMachineResourceSettings withUserManagedIdentities(List<String> userManagedIdentities)
Set the userManagedIdentities property: Gets or sets user-managed identities.
Parameters:
Returns: