Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.compute; import com.fasterxml.jackson.annotation.JsonProperty;
Capture Virtual Machine parameters.
/** * Capture Virtual Machine parameters. */
public class VirtualMachineCaptureParameters {
The captured virtual hard disk's name prefix.
/** * The captured virtual hard disk's name prefix. */
@JsonProperty(value = "vhdPrefix", required = true) private String vhdPrefix;
The destination container name.
/** * The destination container name. */
@JsonProperty(value = "destinationContainerName", required = true) private String destinationContainerName;
Specifies whether to overwrite the destination virtual hard disk, in case of conflict.
/** * Specifies whether to overwrite the destination virtual hard disk, in * case of conflict. */
@JsonProperty(value = "overwriteVhds", required = true) private boolean overwriteVhds;
Get the captured virtual hard disk's name prefix.
Returns:the vhdPrefix value
/** * Get the captured virtual hard disk's name prefix. * * @return the vhdPrefix value */
public String vhdPrefix() { return this.vhdPrefix; }
Set the captured virtual hard disk's name prefix.
Params:
  • vhdPrefix – the vhdPrefix value to set
Returns:the VirtualMachineCaptureParameters object itself.
/** * Set the captured virtual hard disk's name prefix. * * @param vhdPrefix the vhdPrefix value to set * @return the VirtualMachineCaptureParameters object itself. */
public VirtualMachineCaptureParameters withVhdPrefix(String vhdPrefix) { this.vhdPrefix = vhdPrefix; return this; }
Get the destination container name.
Returns:the destinationContainerName value
/** * Get the destination container name. * * @return the destinationContainerName value */
public String destinationContainerName() { return this.destinationContainerName; }
Set the destination container name.
Params:
  • destinationContainerName – the destinationContainerName value to set
Returns:the VirtualMachineCaptureParameters object itself.
/** * Set the destination container name. * * @param destinationContainerName the destinationContainerName value to set * @return the VirtualMachineCaptureParameters object itself. */
public VirtualMachineCaptureParameters withDestinationContainerName(String destinationContainerName) { this.destinationContainerName = destinationContainerName; return this; }
Get specifies whether to overwrite the destination virtual hard disk, in case of conflict.
Returns:the overwriteVhds value
/** * Get specifies whether to overwrite the destination virtual hard disk, in case of conflict. * * @return the overwriteVhds value */
public boolean overwriteVhds() { return this.overwriteVhds; }
Set specifies whether to overwrite the destination virtual hard disk, in case of conflict.
Params:
  • overwriteVhds – the overwriteVhds value to set
Returns:the VirtualMachineCaptureParameters object itself.
/** * Set specifies whether to overwrite the destination virtual hard disk, in case of conflict. * * @param overwriteVhds the overwriteVhds value to set * @return the VirtualMachineCaptureParameters object itself. */
public VirtualMachineCaptureParameters withOverwriteVhds(boolean overwriteVhds) { this.overwriteVhds = overwriteVhds; return this; } }