java.lang.Object
com.azure.resourcemanager.hybridcontainerservice.models.HttpProxyConfigResponse
com.azure.resourcemanager.hybridcontainerservice.models.HttpProxyConfig

public final class HttpProxyConfig extends HttpProxyConfigResponse
Configurations for provisioning the cluster with HTTP proxy servers.
  • Constructor Details

    • HttpProxyConfig

      public HttpProxyConfig()
      Creates an instance of HttpProxyConfig class.
  • Method Details

    • password

      public String password()
      Get the password property: Password to use for connecting to proxy server.
      Returns:
      the password value.
    • withPassword

      public HttpProxyConfig withPassword(String password)
      Set the password property: Password to use for connecting to proxy server.
      Parameters:
      password - the password value to set.
      Returns:
      the HttpProxyConfig object itself.
    • withHttpProxy

      public HttpProxyConfig withHttpProxy(String httpProxy)
      Set the httpProxy property: The HTTP proxy server endpoint to use.
      Overrides:
      withHttpProxy in class HttpProxyConfigResponse
      Parameters:
      httpProxy - the httpProxy value to set.
      Returns:
      the HttpProxyConfigResponse object itself.
    • withHttpsProxy

      public HttpProxyConfig withHttpsProxy(String httpsProxy)
      Set the httpsProxy property: The HTTPS proxy server endpoint to use.
      Overrides:
      withHttpsProxy in class HttpProxyConfigResponse
      Parameters:
      httpsProxy - the httpsProxy value to set.
      Returns:
      the HttpProxyConfigResponse object itself.
    • withNoProxy

      public HttpProxyConfig withNoProxy(List<String> noProxy)
      Set the noProxy property: The endpoints that should not go through proxy.
      Overrides:
      withNoProxy in class HttpProxyConfigResponse
      Parameters:
      noProxy - the noProxy value to set.
      Returns:
      the HttpProxyConfigResponse object itself.
    • withTrustedCa

      public HttpProxyConfig withTrustedCa(String trustedCa)
      Set the trustedCa property: Alternative CA cert to use for connecting to proxy servers.
      Overrides:
      withTrustedCa in class HttpProxyConfigResponse
      Parameters:
      trustedCa - the trustedCa value to set.
      Returns:
      the HttpProxyConfigResponse object itself.
    • withUsername

      public HttpProxyConfig withUsername(String username)
      Set the username property: Username to use for connecting to proxy server.
      Overrides:
      withUsername in class HttpProxyConfigResponse
      Parameters:
      username - the username value to set.
      Returns:
      the HttpProxyConfigResponse object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class HttpProxyConfigResponse
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.