Class ManagedClusterHttpProxyConfig
java.lang.Object
com.azure.resourcemanager.containerservice.models.ManagedClusterHttpProxyConfig
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedClusterHttpProxyConfig>
public final class ManagedClusterHttpProxyConfig
extends Object
implements com.azure.json.JsonSerializable<ManagedClusterHttpProxyConfig>
Cluster HTTP proxy configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedClusterHttpProxyConfig class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedClusterHttpProxyConfig from the JsonReader.Get the httpProxy property: The HTTP proxy server endpoint to use.Get the httpsProxy property: The HTTPS proxy server endpoint to use.noProxy()Get the noProxy property: The endpoints that should not go through proxy.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the trustedCa property: Alternative CA cert to use for connecting to proxy servers.voidvalidate()Validates the instance.withHttpProxy(String httpProxy) Set the httpProxy property: The HTTP proxy server endpoint to use.withHttpsProxy(String httpsProxy) Set the httpsProxy property: The HTTPS proxy server endpoint to use.withNoProxy(List<String> noProxy) Set the noProxy property: The endpoints that should not go through proxy.withTrustedCa(String trustedCa) Set the trustedCa property: Alternative CA cert to use for connecting to proxy servers.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ManagedClusterHttpProxyConfig
public ManagedClusterHttpProxyConfig()Creates an instance of ManagedClusterHttpProxyConfig class.
-
-
Method Details
-
httpProxy
Get the httpProxy property: The HTTP proxy server endpoint to use.- Returns:
- the httpProxy value.
-
withHttpProxy
Set the httpProxy property: The HTTP proxy server endpoint to use.- Parameters:
httpProxy- the httpProxy value to set.- Returns:
- the ManagedClusterHttpProxyConfig object itself.
-
httpsProxy
Get the httpsProxy property: The HTTPS proxy server endpoint to use.- Returns:
- the httpsProxy value.
-
withHttpsProxy
Set the httpsProxy property: The HTTPS proxy server endpoint to use.- Parameters:
httpsProxy- the httpsProxy value to set.- Returns:
- the ManagedClusterHttpProxyConfig object itself.
-
noProxy
Get the noProxy property: The endpoints that should not go through proxy.- Returns:
- the noProxy value.
-
withNoProxy
Set the noProxy property: The endpoints that should not go through proxy.- Parameters:
noProxy- the noProxy value to set.- Returns:
- the ManagedClusterHttpProxyConfig object itself.
-
trustedCa
Get the trustedCa property: Alternative CA cert to use for connecting to proxy servers.- Returns:
- the trustedCa value.
-
withTrustedCa
Set the trustedCa property: Alternative CA cert to use for connecting to proxy servers.- Parameters:
trustedCa- the trustedCa value to set.- Returns:
- the ManagedClusterHttpProxyConfig object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ManagedClusterHttpProxyConfig>- Throws:
IOException
-
fromJson
public static ManagedClusterHttpProxyConfig fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ManagedClusterHttpProxyConfig from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ManagedClusterHttpProxyConfig if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ManagedClusterHttpProxyConfig.
-