ManagedClusterHttpProxyConfig Class
- java.
lang. Object - com.
azure. resourcemanager. containerservice. models. ManagedClusterHttpProxyConfig
- com.
Implements
public final class ManagedClusterHttpProxyConfig
implements JsonSerializable<ManagedClusterHttpProxyConfig>
Cluster HTTP proxy configuration.
Constructor Summary
| Constructor | Description |
|---|---|
| ManagedClusterHttpProxyConfig() |
Creates an instance of Managed |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Boolean |
enabled()
Get the enabled property: Whether to enable HTTP proxy. |
|
static
Managed |
fromJson(JsonReader jsonReader)
Reads an instance of Managed |
| String |
httpProxy()
Get the http |
| String |
httpsProxy()
Get the https |
| List<String> |
noProxy()
Get the no |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
trustedCa()
Get the trusted |
| void |
validate()
Validates the instance. |
|
Managed |
withEnabled(Boolean enabled)
Set the enabled property: Whether to enable HTTP proxy. |
|
Managed |
withHttpProxy(String httpProxy)
Set the http |
|
Managed |
withHttpsProxy(String httpsProxy)
Set the https |
|
Managed |
withNoProxy(List<String> noProxy)
Set the no |
|
Managed |
withTrustedCa(String trustedCa)
Set the trusted |
Methods inherited from java.lang.Object
Constructor Details
ManagedClusterHttpProxyConfig
public ManagedClusterHttpProxyConfig()
Creates an instance of ManagedClusterHttpProxyConfig class.
Method Details
enabled
public Boolean enabled()
Get the enabled property: Whether to enable HTTP proxy. If disabled, the specified proxy configuration will be not be set on pods and nodes. If not specified, the default is true.
Returns:
fromJson
public static ManagedClusterHttpProxyConfig fromJson(JsonReader jsonReader)
Reads an instance of ManagedClusterHttpProxyConfig from the JsonReader.
Parameters:
Returns:
Throws:
httpProxy
public String httpProxy()
Get the httpProxy property: The HTTP proxy server endpoint to use.
Returns:
httpsProxy
public String httpsProxy()
Get the httpsProxy property: The HTTPS proxy server endpoint to use.
Returns:
noProxy
public List<String> noProxy()
Get the noProxy property: The endpoints that should not go through proxy.
Returns:
toJson
trustedCa
public String trustedCa()
Get the trustedCa property: Alternative CA cert to use for connecting to proxy servers.
Returns:
validate
public void validate()
Validates the instance.
withEnabled
public ManagedClusterHttpProxyConfig withEnabled(Boolean enabled)
Set the enabled property: Whether to enable HTTP proxy. If disabled, the specified proxy configuration will be not be set on pods and nodes. If not specified, the default is true.
Parameters:
Returns:
withHttpProxy
public ManagedClusterHttpProxyConfig withHttpProxy(String httpProxy)
Set the httpProxy property: The HTTP proxy server endpoint to use.
Parameters:
Returns:
withHttpsProxy
public ManagedClusterHttpProxyConfig withHttpsProxy(String httpsProxy)
Set the httpsProxy property: The HTTPS proxy server endpoint to use.
Parameters:
Returns:
withNoProxy
public ManagedClusterHttpProxyConfig withNoProxy(List<String> noProxy)
Set the noProxy property: The endpoints that should not go through proxy.
Parameters:
Returns:
withTrustedCa
public ManagedClusterHttpProxyConfig withTrustedCa(String trustedCa)
Set the trustedCa property: Alternative CA cert to use for connecting to proxy servers.
Parameters:
Returns: