
com.pulumi.azurenative.labservices.outputs.ReferenceVmResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.labservices.outputs;
import com.pulumi.azurenative.labservices.outputs.VmStateDetailsResponse;
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 ReferenceVmResponse {
/**
* @return The password of the virtual machine. This will be set to null in GET resource API
*
*/
private @Nullable String password;
/**
* @return The username of the virtual machine
*
*/
private String userName;
/**
* @return VM resource Id for the environment
*
*/
private String vmResourceId;
/**
* @return The state details for the reference virtual machine.
*
*/
private VmStateDetailsResponse vmStateDetails;
private ReferenceVmResponse() {}
/**
* @return The password of the virtual machine. This will be set to null in GET resource API
*
*/
public Optional password() {
return Optional.ofNullable(this.password);
}
/**
* @return The username of the virtual machine
*
*/
public String userName() {
return this.userName;
}
/**
* @return VM resource Id for the environment
*
*/
public String vmResourceId() {
return this.vmResourceId;
}
/**
* @return The state details for the reference virtual machine.
*
*/
public VmStateDetailsResponse vmStateDetails() {
return this.vmStateDetails;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ReferenceVmResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String password;
private String userName;
private String vmResourceId;
private VmStateDetailsResponse vmStateDetails;
public Builder() {}
public Builder(ReferenceVmResponse defaults) {
Objects.requireNonNull(defaults);
this.password = defaults.password;
this.userName = defaults.userName;
this.vmResourceId = defaults.vmResourceId;
this.vmStateDetails = defaults.vmStateDetails;
}
@CustomType.Setter
public Builder password(@Nullable String password) {
this.password = password;
return this;
}
@CustomType.Setter
public Builder userName(String userName) {
if (userName == null) {
throw new MissingRequiredPropertyException("ReferenceVmResponse", "userName");
}
this.userName = userName;
return this;
}
@CustomType.Setter
public Builder vmResourceId(String vmResourceId) {
if (vmResourceId == null) {
throw new MissingRequiredPropertyException("ReferenceVmResponse", "vmResourceId");
}
this.vmResourceId = vmResourceId;
return this;
}
@CustomType.Setter
public Builder vmStateDetails(VmStateDetailsResponse vmStateDetails) {
if (vmStateDetails == null) {
throw new MissingRequiredPropertyException("ReferenceVmResponse", "vmStateDetails");
}
this.vmStateDetails = vmStateDetails;
return this;
}
public ReferenceVmResponse build() {
final var _resultValue = new ReferenceVmResponse();
_resultValue.password = password;
_resultValue.userName = userName;
_resultValue.vmResourceId = vmResourceId;
_resultValue.vmStateDetails = vmStateDetails;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy