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 java.util.List; import com.fasterxml.jackson.annotation.JsonProperty;
The instance view of a virtual machine extension.
/** * The instance view of a virtual machine extension. */
public class VirtualMachineExtensionInstanceView {
The virtual machine extension name.
/** * The virtual machine extension name. */
@JsonProperty(value = "name") private String name;
Specifies the type of the extension; an example is "CustomScriptExtension".
/** * Specifies the type of the extension; an example is * "CustomScriptExtension". */
@JsonProperty(value = "type") private String type;
Specifies the version of the script handler.
/** * Specifies the version of the script handler. */
@JsonProperty(value = "typeHandlerVersion") private String typeHandlerVersion;
The resource status information.
/** * The resource status information. */
@JsonProperty(value = "substatuses") private List<InstanceViewStatus> substatuses;
The resource status information.
/** * The resource status information. */
@JsonProperty(value = "statuses") private List<InstanceViewStatus> statuses;
Get the virtual machine extension name.
Returns:the name value
/** * Get the virtual machine extension name. * * @return the name value */
public String name() { return this.name; }
Set the virtual machine extension name.
Params:
  • name – the name value to set
Returns:the VirtualMachineExtensionInstanceView object itself.
/** * Set the virtual machine extension name. * * @param name the name value to set * @return the VirtualMachineExtensionInstanceView object itself. */
public VirtualMachineExtensionInstanceView withName(String name) { this.name = name; return this; }
Get specifies the type of the extension; an example is "CustomScriptExtension".
Returns:the type value
/** * Get specifies the type of the extension; an example is "CustomScriptExtension". * * @return the type value */
public String type() { return this.type; }
Set specifies the type of the extension; an example is "CustomScriptExtension".
Params:
  • type – the type value to set
Returns:the VirtualMachineExtensionInstanceView object itself.
/** * Set specifies the type of the extension; an example is "CustomScriptExtension". * * @param type the type value to set * @return the VirtualMachineExtensionInstanceView object itself. */
public VirtualMachineExtensionInstanceView withType(String type) { this.type = type; return this; }
Get specifies the version of the script handler.
Returns:the typeHandlerVersion value
/** * Get specifies the version of the script handler. * * @return the typeHandlerVersion value */
public String typeHandlerVersion() { return this.typeHandlerVersion; }
Set specifies the version of the script handler.
Params:
  • typeHandlerVersion – the typeHandlerVersion value to set
Returns:the VirtualMachineExtensionInstanceView object itself.
/** * Set specifies the version of the script handler. * * @param typeHandlerVersion the typeHandlerVersion value to set * @return the VirtualMachineExtensionInstanceView object itself. */
public VirtualMachineExtensionInstanceView withTypeHandlerVersion(String typeHandlerVersion) { this.typeHandlerVersion = typeHandlerVersion; return this; }
Get the resource status information.
Returns:the substatuses value
/** * Get the resource status information. * * @return the substatuses value */
public List<InstanceViewStatus> substatuses() { return this.substatuses; }
Set the resource status information.
Params:
  • substatuses – the substatuses value to set
Returns:the VirtualMachineExtensionInstanceView object itself.
/** * Set the resource status information. * * @param substatuses the substatuses value to set * @return the VirtualMachineExtensionInstanceView object itself. */
public VirtualMachineExtensionInstanceView withSubstatuses(List<InstanceViewStatus> substatuses) { this.substatuses = substatuses; return this; }
Get the resource status information.
Returns:the statuses value
/** * Get the resource status information. * * @return the statuses value */
public List<InstanceViewStatus> statuses() { return this.statuses; }
Set the resource status information.
Params:
  • statuses – the statuses value to set
Returns:the VirtualMachineExtensionInstanceView object itself.
/** * Set the resource status information. * * @param statuses the statuses value to set * @return the VirtualMachineExtensionInstanceView object itself. */
public VirtualMachineExtensionInstanceView withStatuses(List<InstanceViewStatus> statuses) { this.statuses = statuses; return this; } }