com.pulumi.azure.containerservice.outputs.KubernetesClusterLinuxProfile Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.containerservice.outputs;
import com.pulumi.azure.containerservice.outputs.KubernetesClusterLinuxProfileSshKey;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class KubernetesClusterLinuxProfile {
/**
* @return The Admin Username for the Cluster. Changing this forces a new resource to be created.
*
*/
private String adminUsername;
/**
* @return An `ssh_key` block as defined below. Only one is currently allowed. Changing this will update the key on all node pools. More information can be found in [the documentation](https://learn.microsoft.com/en-us/azure/aks/node-access#update-ssh-key-on-an-existing-aks-cluster-preview).
*
*/
private KubernetesClusterLinuxProfileSshKey sshKey;
private KubernetesClusterLinuxProfile() {}
/**
* @return The Admin Username for the Cluster. Changing this forces a new resource to be created.
*
*/
public String adminUsername() {
return this.adminUsername;
}
/**
* @return An `ssh_key` block as defined below. Only one is currently allowed. Changing this will update the key on all node pools. More information can be found in [the documentation](https://learn.microsoft.com/en-us/azure/aks/node-access#update-ssh-key-on-an-existing-aks-cluster-preview).
*
*/
public KubernetesClusterLinuxProfileSshKey sshKey() {
return this.sshKey;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(KubernetesClusterLinuxProfile defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String adminUsername;
private KubernetesClusterLinuxProfileSshKey sshKey;
public Builder() {}
public Builder(KubernetesClusterLinuxProfile defaults) {
Objects.requireNonNull(defaults);
this.adminUsername = defaults.adminUsername;
this.sshKey = defaults.sshKey;
}
@CustomType.Setter
public Builder adminUsername(String adminUsername) {
if (adminUsername == null) {
throw new MissingRequiredPropertyException("KubernetesClusterLinuxProfile", "adminUsername");
}
this.adminUsername = adminUsername;
return this;
}
@CustomType.Setter
public Builder sshKey(KubernetesClusterLinuxProfileSshKey sshKey) {
if (sshKey == null) {
throw new MissingRequiredPropertyException("KubernetesClusterLinuxProfile", "sshKey");
}
this.sshKey = sshKey;
return this;
}
public KubernetesClusterLinuxProfile build() {
final var _resultValue = new KubernetesClusterLinuxProfile();
_resultValue.adminUsername = adminUsername;
_resultValue.sshKey = sshKey;
return _resultValue;
}
}
}