/**
* 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.
*/
public class VirtualMachineExtensionInstanceView {
/**
* The virtual machine extension name.
*/
@JsonProperty(value = "name")
private String name;
/**
* The full type of the extension handler which includes both publisher and
* type.
*/
@JsonProperty(value = "type")
private String type;
/**
* The type version of the extension handler.
*/
@JsonProperty(value = "typeHandlerVersion")
private String typeHandlerVersion;
/**
* The resource status information.
*/
@JsonProperty(value = "substatuses")
private List<InstanceViewStatus> substatuses;
/**
* The resource status information.
*/
@JsonProperty(value = "statuses")
private List<InstanceViewStatus> statuses;
/**
* Get the name value.
*
* @return the name value
*/
public String name() {
return this.name;
}
/**
* Set the name value.
*
* @param name the name value to set
* @return the VirtualMachineExtensionInstanceView object itself.
*/
public VirtualMachineExtensionInstanceView withName(String name) {
this.name = name;
return this;
}
/**
* Get the type value.
*
* @return the type value
*/
public String type() {
return this.type;
}
/**
* Set the type value.
*
* @param type the type value to set
* @return the VirtualMachineExtensionInstanceView object itself.
*/
public VirtualMachineExtensionInstanceView withType(String type) {
this.type = type;
return this;
}
/**
* Get the typeHandlerVersion value.
*
* @return the typeHandlerVersion value
*/
public String typeHandlerVersion() {
return this.typeHandlerVersion;
}
/**
* Set the typeHandlerVersion value.
*
* @param typeHandlerVersion the typeHandlerVersion value to set
* @return the VirtualMachineExtensionInstanceView object itself.
*/
public VirtualMachineExtensionInstanceView withTypeHandlerVersion(String typeHandlerVersion) {
this.typeHandlerVersion = typeHandlerVersion;
return this;
}
/**
* Get the substatuses value.
*
* @return the substatuses value
*/
public List<InstanceViewStatus> substatuses() {
return this.substatuses;
}
/**
* Set the substatuses value.
*
* @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 statuses value.
*
* @return the statuses value
*/
public List<InstanceViewStatus> statuses() {
return this.statuses;
}
/**
* Set the statuses value.
*
* @param statuses the statuses value to set
* @return the VirtualMachineExtensionInstanceView object itself.
*/
public VirtualMachineExtensionInstanceView withStatuses(List<InstanceViewStatus> statuses) {
this.statuses = statuses;
return this;
}
}