
com.pulumi.azurenative.networkcloud.outputs.AdministratorConfigurationResponse 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.networkcloud.outputs;
import com.pulumi.azurenative.networkcloud.outputs.SshPublicKeyResponse;
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 AdministratorConfigurationResponse {
/**
* @return The user name for the administrator that will be applied to the operating systems that run Kubernetes nodes. If not supplied, a user name will be chosen by the service.
*
*/
private @Nullable String adminUsername;
/**
* @return The SSH configuration for the operating systems that run the nodes in the Kubernetes cluster. In some cases, specification of public keys may be required to produce a working environment.
*
*/
private @Nullable List sshPublicKeys;
private AdministratorConfigurationResponse() {}
/**
* @return The user name for the administrator that will be applied to the operating systems that run Kubernetes nodes. If not supplied, a user name will be chosen by the service.
*
*/
public Optional adminUsername() {
return Optional.ofNullable(this.adminUsername);
}
/**
* @return The SSH configuration for the operating systems that run the nodes in the Kubernetes cluster. In some cases, specification of public keys may be required to produce a working environment.
*
*/
public List sshPublicKeys() {
return this.sshPublicKeys == null ? List.of() : this.sshPublicKeys;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AdministratorConfigurationResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String adminUsername;
private @Nullable List sshPublicKeys;
public Builder() {}
public Builder(AdministratorConfigurationResponse defaults) {
Objects.requireNonNull(defaults);
this.adminUsername = defaults.adminUsername;
this.sshPublicKeys = defaults.sshPublicKeys;
}
@CustomType.Setter
public Builder adminUsername(@Nullable String adminUsername) {
this.adminUsername = adminUsername;
return this;
}
@CustomType.Setter
public Builder sshPublicKeys(@Nullable List sshPublicKeys) {
this.sshPublicKeys = sshPublicKeys;
return this;
}
public Builder sshPublicKeys(SshPublicKeyResponse... sshPublicKeys) {
return sshPublicKeys(List.of(sshPublicKeys));
}
public AdministratorConfigurationResponse build() {
final var _resultValue = new AdministratorConfigurationResponse();
_resultValue.adminUsername = adminUsername;
_resultValue.sshPublicKeys = sshPublicKeys;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy