com.pulumi.azure.containerservice.outputs.KubernetesClusterHttpProxyConfig 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.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 KubernetesClusterHttpProxyConfig {
/**
* @return The proxy address to be used when communicating over HTTP.
*
*/
private @Nullable String httpProxy;
/**
* @return The proxy address to be used when communicating over HTTPS.
*
*/
private @Nullable String httpsProxy;
private @Nullable List noProxies;
/**
* @return The base64 encoded alternative CA certificate content in PEM format.
*
*/
private @Nullable String trustedCa;
private KubernetesClusterHttpProxyConfig() {}
/**
* @return The proxy address to be used when communicating over HTTP.
*
*/
public Optional httpProxy() {
return Optional.ofNullable(this.httpProxy);
}
/**
* @return The proxy address to be used when communicating over HTTPS.
*
*/
public Optional httpsProxy() {
return Optional.ofNullable(this.httpsProxy);
}
public List noProxies() {
return this.noProxies == null ? List.of() : this.noProxies;
}
/**
* @return The base64 encoded alternative CA certificate content in PEM format.
*
*/
public Optional trustedCa() {
return Optional.ofNullable(this.trustedCa);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(KubernetesClusterHttpProxyConfig defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String httpProxy;
private @Nullable String httpsProxy;
private @Nullable List noProxies;
private @Nullable String trustedCa;
public Builder() {}
public Builder(KubernetesClusterHttpProxyConfig defaults) {
Objects.requireNonNull(defaults);
this.httpProxy = defaults.httpProxy;
this.httpsProxy = defaults.httpsProxy;
this.noProxies = defaults.noProxies;
this.trustedCa = defaults.trustedCa;
}
@CustomType.Setter
public Builder httpProxy(@Nullable String httpProxy) {
this.httpProxy = httpProxy;
return this;
}
@CustomType.Setter
public Builder httpsProxy(@Nullable String httpsProxy) {
this.httpsProxy = httpsProxy;
return this;
}
@CustomType.Setter
public Builder noProxies(@Nullable List noProxies) {
this.noProxies = noProxies;
return this;
}
public Builder noProxies(String... noProxies) {
return noProxies(List.of(noProxies));
}
@CustomType.Setter
public Builder trustedCa(@Nullable String trustedCa) {
this.trustedCa = trustedCa;
return this;
}
public KubernetesClusterHttpProxyConfig build() {
final var _resultValue = new KubernetesClusterHttpProxyConfig();
_resultValue.httpProxy = httpProxy;
_resultValue.httpsProxy = httpsProxy;
_resultValue.noProxies = noProxies;
_resultValue.trustedCa = trustedCa;
return _resultValue;
}
}
}