com.pulumi.azure.workloadssap.inputs.ThreeTierVirtualInstanceThreeTierConfigurationCentralServerConfigurationVirtualMachineConfigurationOsProfileArgs 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.azure.workloadssap.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class ThreeTierVirtualInstanceThreeTierConfigurationCentralServerConfigurationVirtualMachineConfigurationOsProfileArgs extends com.pulumi.resources.ResourceArgs {
public static final ThreeTierVirtualInstanceThreeTierConfigurationCentralServerConfigurationVirtualMachineConfigurationOsProfileArgs Empty = new ThreeTierVirtualInstanceThreeTierConfigurationCentralServerConfigurationVirtualMachineConfigurationOsProfileArgs();
/**
* The name of the administrator account. Changing this forces a new resource to be created.
*
*/
@Import(name="adminUsername", required=true)
private Output adminUsername;
/**
* @return The name of the administrator account. Changing this forces a new resource to be created.
*
*/
public Output adminUsername() {
return this.adminUsername;
}
/**
* The SSH public key that is used to authenticate with the Virtual Machine. Changing this forces a new resource to be created.
*
*/
@Import(name="sshPrivateKey", required=true)
private Output sshPrivateKey;
/**
* @return The SSH public key that is used to authenticate with the Virtual Machine. Changing this forces a new resource to be created.
*
*/
public Output sshPrivateKey() {
return this.sshPrivateKey;
}
/**
* The SSH private key that is used to authenticate with the Virtual Machine. Changing this forces a new resource to be created.
*
*/
@Import(name="sshPublicKey", required=true)
private Output sshPublicKey;
/**
* @return The SSH private key that is used to authenticate with the Virtual Machine. Changing this forces a new resource to be created.
*
*/
public Output sshPublicKey() {
return this.sshPublicKey;
}
private ThreeTierVirtualInstanceThreeTierConfigurationCentralServerConfigurationVirtualMachineConfigurationOsProfileArgs() {}
private ThreeTierVirtualInstanceThreeTierConfigurationCentralServerConfigurationVirtualMachineConfigurationOsProfileArgs(ThreeTierVirtualInstanceThreeTierConfigurationCentralServerConfigurationVirtualMachineConfigurationOsProfileArgs $) {
this.adminUsername = $.adminUsername;
this.sshPrivateKey = $.sshPrivateKey;
this.sshPublicKey = $.sshPublicKey;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ThreeTierVirtualInstanceThreeTierConfigurationCentralServerConfigurationVirtualMachineConfigurationOsProfileArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ThreeTierVirtualInstanceThreeTierConfigurationCentralServerConfigurationVirtualMachineConfigurationOsProfileArgs $;
public Builder() {
$ = new ThreeTierVirtualInstanceThreeTierConfigurationCentralServerConfigurationVirtualMachineConfigurationOsProfileArgs();
}
public Builder(ThreeTierVirtualInstanceThreeTierConfigurationCentralServerConfigurationVirtualMachineConfigurationOsProfileArgs defaults) {
$ = new ThreeTierVirtualInstanceThreeTierConfigurationCentralServerConfigurationVirtualMachineConfigurationOsProfileArgs(Objects.requireNonNull(defaults));
}
/**
* @param adminUsername The name of the administrator account. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder adminUsername(Output adminUsername) {
$.adminUsername = adminUsername;
return this;
}
/**
* @param adminUsername The name of the administrator account. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder adminUsername(String adminUsername) {
return adminUsername(Output.of(adminUsername));
}
/**
* @param sshPrivateKey The SSH public key that is used to authenticate with the Virtual Machine. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder sshPrivateKey(Output sshPrivateKey) {
$.sshPrivateKey = sshPrivateKey;
return this;
}
/**
* @param sshPrivateKey The SSH public key that is used to authenticate with the Virtual Machine. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder sshPrivateKey(String sshPrivateKey) {
return sshPrivateKey(Output.of(sshPrivateKey));
}
/**
* @param sshPublicKey The SSH private key that is used to authenticate with the Virtual Machine. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder sshPublicKey(Output sshPublicKey) {
$.sshPublicKey = sshPublicKey;
return this;
}
/**
* @param sshPublicKey The SSH private key that is used to authenticate with the Virtual Machine. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder sshPublicKey(String sshPublicKey) {
return sshPublicKey(Output.of(sshPublicKey));
}
public ThreeTierVirtualInstanceThreeTierConfigurationCentralServerConfigurationVirtualMachineConfigurationOsProfileArgs build() {
if ($.adminUsername == null) {
throw new MissingRequiredPropertyException("ThreeTierVirtualInstanceThreeTierConfigurationCentralServerConfigurationVirtualMachineConfigurationOsProfileArgs", "adminUsername");
}
if ($.sshPrivateKey == null) {
throw new MissingRequiredPropertyException("ThreeTierVirtualInstanceThreeTierConfigurationCentralServerConfigurationVirtualMachineConfigurationOsProfileArgs", "sshPrivateKey");
}
if ($.sshPublicKey == null) {
throw new MissingRequiredPropertyException("ThreeTierVirtualInstanceThreeTierConfigurationCentralServerConfigurationVirtualMachineConfigurationOsProfileArgs", "sshPublicKey");
}
return $;
}
}
}