
com.pulumi.azurenative.scvmm.outputs.MachineExtensionPropertiesResponseInstanceView Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.scvmm.outputs;
import com.pulumi.azurenative.scvmm.outputs.MachineExtensionInstanceViewResponseStatus;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class MachineExtensionPropertiesResponseInstanceView {
/**
* @return The machine extension name.
*
*/
private String name;
/**
* @return Instance view status.
*
*/
private @Nullable MachineExtensionInstanceViewResponseStatus status;
/**
* @return Specifies the type of the extension; an example is "CustomScriptExtension".
*
*/
private String type;
/**
* @return Specifies the version of the script handler.
*
*/
private String typeHandlerVersion;
private MachineExtensionPropertiesResponseInstanceView() {}
/**
* @return The machine extension name.
*
*/
public String name() {
return this.name;
}
/**
* @return Instance view status.
*
*/
public Optional status() {
return Optional.ofNullable(this.status);
}
/**
* @return Specifies the type of the extension; an example is "CustomScriptExtension".
*
*/
public String type() {
return this.type;
}
/**
* @return Specifies the version of the script handler.
*
*/
public String typeHandlerVersion() {
return this.typeHandlerVersion;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(MachineExtensionPropertiesResponseInstanceView defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String name;
private @Nullable MachineExtensionInstanceViewResponseStatus status;
private String type;
private String typeHandlerVersion;
public Builder() {}
public Builder(MachineExtensionPropertiesResponseInstanceView defaults) {
Objects.requireNonNull(defaults);
this.name = defaults.name;
this.status = defaults.status;
this.type = defaults.type;
this.typeHandlerVersion = defaults.typeHandlerVersion;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("MachineExtensionPropertiesResponseInstanceView", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder status(@Nullable MachineExtensionInstanceViewResponseStatus status) {
this.status = status;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("MachineExtensionPropertiesResponseInstanceView", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder typeHandlerVersion(String typeHandlerVersion) {
if (typeHandlerVersion == null) {
throw new MissingRequiredPropertyException("MachineExtensionPropertiesResponseInstanceView", "typeHandlerVersion");
}
this.typeHandlerVersion = typeHandlerVersion;
return this;
}
public MachineExtensionPropertiesResponseInstanceView build() {
final var _resultValue = new MachineExtensionPropertiesResponseInstanceView();
_resultValue.name = name;
_resultValue.status = status;
_resultValue.type = type;
_resultValue.typeHandlerVersion = typeHandlerVersion;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy