
com.pulumi.azurenative.hybridcontainerservice.outputs.HttpProxyConfigResponseResponse 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.hybridcontainerservice.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 HttpProxyConfigResponseResponse {
/**
* @return The HTTP proxy server endpoint to use.
*
*/
private @Nullable String httpProxy;
/**
* @return The HTTPS proxy server endpoint to use.
*
*/
private @Nullable String httpsProxy;
/**
* @return The endpoints that should not go through proxy.
*
*/
private @Nullable List noProxy;
/**
* @return Alternative CA cert to use for connecting to proxy servers.
*
*/
private @Nullable String trustedCa;
/**
* @return Username to use for connecting to proxy server
*
*/
private @Nullable String username;
private HttpProxyConfigResponseResponse() {}
/**
* @return The HTTP proxy server endpoint to use.
*
*/
public Optional httpProxy() {
return Optional.ofNullable(this.httpProxy);
}
/**
* @return The HTTPS proxy server endpoint to use.
*
*/
public Optional httpsProxy() {
return Optional.ofNullable(this.httpsProxy);
}
/**
* @return The endpoints that should not go through proxy.
*
*/
public List noProxy() {
return this.noProxy == null ? List.of() : this.noProxy;
}
/**
* @return Alternative CA cert to use for connecting to proxy servers.
*
*/
public Optional trustedCa() {
return Optional.ofNullable(this.trustedCa);
}
/**
* @return Username to use for connecting to proxy server
*
*/
public Optional username() {
return Optional.ofNullable(this.username);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(HttpProxyConfigResponseResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String httpProxy;
private @Nullable String httpsProxy;
private @Nullable List noProxy;
private @Nullable String trustedCa;
private @Nullable String username;
public Builder() {}
public Builder(HttpProxyConfigResponseResponse defaults) {
Objects.requireNonNull(defaults);
this.httpProxy = defaults.httpProxy;
this.httpsProxy = defaults.httpsProxy;
this.noProxy = defaults.noProxy;
this.trustedCa = defaults.trustedCa;
this.username = defaults.username;
}
@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 noProxy(@Nullable List noProxy) {
this.noProxy = noProxy;
return this;
}
public Builder noProxy(String... noProxy) {
return noProxy(List.of(noProxy));
}
@CustomType.Setter
public Builder trustedCa(@Nullable String trustedCa) {
this.trustedCa = trustedCa;
return this;
}
@CustomType.Setter
public Builder username(@Nullable String username) {
this.username = username;
return this;
}
public HttpProxyConfigResponseResponse build() {
final var _resultValue = new HttpProxyConfigResponseResponse();
_resultValue.httpProxy = httpProxy;
_resultValue.httpsProxy = httpsProxy;
_resultValue.noProxy = noProxy;
_resultValue.trustedCa = trustedCa;
_resultValue.username = username;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy