
com.pulumi.azurenative.vmwarecloudsimple.outputs.GuestOSCustomizationResponse 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.vmwarecloudsimple.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GuestOSCustomizationResponse {
/**
* @return List of dns servers to use
*
*/
private @Nullable List dnsServers;
/**
* @return Virtual Machine hostname
*
*/
private @Nullable String hostName;
/**
* @return Password for login
*
*/
private @Nullable String password;
/**
* @return id of customization policy
*
*/
private @Nullable String policyId;
/**
* @return Username for login
*
*/
private @Nullable String username;
private GuestOSCustomizationResponse() {}
/**
* @return List of dns servers to use
*
*/
public List dnsServers() {
return this.dnsServers == null ? List.of() : this.dnsServers;
}
/**
* @return Virtual Machine hostname
*
*/
public Optional hostName() {
return Optional.ofNullable(this.hostName);
}
/**
* @return Password for login
*
*/
public Optional password() {
return Optional.ofNullable(this.password);
}
/**
* @return id of customization policy
*
*/
public Optional policyId() {
return Optional.ofNullable(this.policyId);
}
/**
* @return Username for login
*
*/
public Optional username() {
return Optional.ofNullable(this.username);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GuestOSCustomizationResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List dnsServers;
private @Nullable String hostName;
private @Nullable String password;
private @Nullable String policyId;
private @Nullable String username;
public Builder() {}
public Builder(GuestOSCustomizationResponse defaults) {
Objects.requireNonNull(defaults);
this.dnsServers = defaults.dnsServers;
this.hostName = defaults.hostName;
this.password = defaults.password;
this.policyId = defaults.policyId;
this.username = defaults.username;
}
@CustomType.Setter
public Builder dnsServers(@Nullable List dnsServers) {
this.dnsServers = dnsServers;
return this;
}
public Builder dnsServers(String... dnsServers) {
return dnsServers(List.of(dnsServers));
}
@CustomType.Setter
public Builder hostName(@Nullable String hostName) {
this.hostName = hostName;
return this;
}
@CustomType.Setter
public Builder password(@Nullable String password) {
this.password = password;
return this;
}
@CustomType.Setter
public Builder policyId(@Nullable String policyId) {
this.policyId = policyId;
return this;
}
@CustomType.Setter
public Builder username(@Nullable String username) {
this.username = username;
return this;
}
public GuestOSCustomizationResponse build() {
final var _resultValue = new GuestOSCustomizationResponse();
_resultValue.dnsServers = dnsServers;
_resultValue.hostName = hostName;
_resultValue.password = password;
_resultValue.policyId = policyId;
_resultValue.username = username;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy