类 SesClientConfiguration

    • 构造器详细资料

      • SesClientConfiguration

        public SesClientConfiguration()
    • 方法详细资料

      • withProtocol

        public SesClientConfiguration withProtocol​(Protocol protocol)
        从类复制的说明: BceClientConfiguration
        Sets the protocol (HTTP/HTTPS) to use when connecting to BCE services, and returns the updated configuration instance.
        覆盖:
        withProtocol 在类中 BceClientConfiguration
        参数:
        protocol - the protocol (HTTP/HTTPS) to use when connecting to BCE services.
        返回:
        the updated configuration instance.
      • withUserAgent

        public SesClientConfiguration withUserAgent​(String userAgent)
        从类复制的说明: BceClientConfiguration
        Sets the User-Agent header value to use when sending requests to BCE services, and returns the updated configuration instance.

        If the specified value is null, DEFAULT_USER_AGENT is used. If the specified value does not end with DEFAULT_USER_AGENT, DEFAULT_USER_AGENT is appended.

        覆盖:
        withUserAgent 在类中 BceClientConfiguration
        参数:
        userAgent - the User-Agent header value to use when sending requests to BCE services.
        返回:
        the updated configuration instance.
      • withProxyHost

        public SesClientConfiguration withProxyHost​(String proxyHost)
        从类复制的说明: BceClientConfiguration
        Sets the optional proxy host the client will connect through, and returns the updated configuration instance.

        The client will connect through the proxy only if the host is not null and the port is positive.

        覆盖:
        withProxyHost 在类中 BceClientConfiguration
        参数:
        proxyHost - the optional proxy host the client will connect through.
        返回:
        the updated configuration instance.
      • withProxyPort

        public SesClientConfiguration withProxyPort​(int proxyPort)
        从类复制的说明: BceClientConfiguration
        Sets the optional proxy port the client will connect through, and returns the updated configuration instance.

        The client will connect through the proxy only if the host is not null and the port is positive.

        覆盖:
        withProxyPort 在类中 BceClientConfiguration
        参数:
        proxyPort - the optional proxy port the client will connect through.
        返回:
        the updated configuration instance.
      • withProxyUsername

        public SesClientConfiguration withProxyUsername​(String proxyUsername)
        从类复制的说明: BceClientConfiguration
        Sets the optional user name to use when connecting through a proxy, and returns the updated configuration instance.
        覆盖:
        withProxyUsername 在类中 BceClientConfiguration
        参数:
        proxyUsername - the optional user name to use when connecting through a proxy.
        返回:
        the updated configuration instance.
      • withProxyPassword

        public SesClientConfiguration withProxyPassword​(String proxyPassword)
        从类复制的说明: BceClientConfiguration
        Sets the optional password to use when connecting through a proxy, and returns the updated configuration instance.
        覆盖:
        withProxyPassword 在类中 BceClientConfiguration
        参数:
        proxyPassword - the optional password to use when connecting through a proxy.
        返回:
        the updated configuration instance.
      • withProxyDomain

        public SesClientConfiguration withProxyDomain​(String proxyDomain)
        从类复制的说明: BceClientConfiguration
        Sets the optional Windows domain to use when connecting through a Windows NTLM proxy, and returns the updated configuration instance.
        覆盖:
        withProxyDomain 在类中 BceClientConfiguration
        参数:
        proxyDomain - the optional Windows domain to use when connecting through a Windows NTLM proxy.
        返回:
        the updated configuration instance.
      • withProxyWorkstation

        public SesClientConfiguration withProxyWorkstation​(String proxyWorkstation)
        从类复制的说明: BceClientConfiguration
        Sets the optional Windows workstation to use when connecting through a Windows NTLM proxy, and returns the updated configuration instance.
        覆盖:
        withProxyWorkstation 在类中 BceClientConfiguration
        参数:
        proxyWorkstation - the optional Windows workstation to use when connecting through a Windows NTLM proxy.
        返回:
        the updated configuration instance.
      • withProxyPreemptiveAuthenticationEnabled

        public SesClientConfiguration withProxyPreemptiveAuthenticationEnabled​(boolean proxyPreemptiveAuthenticationEnabled)
        从类复制的说明: BceClientConfiguration
        Sets whether to enable proxy preemptive authentication, and returns the updated configuration instance. If it is true, the client will send the basic authentication response even before the proxy server gives an unauthorized response in certain situations, thus reducing the overhead of making the connection.
        覆盖:
        withProxyPreemptiveAuthenticationEnabled 在类中 BceClientConfiguration
        参数:
        proxyPreemptiveAuthenticationEnabled - whether to enable proxy preemptive authentication.
        返回:
        the updated configuration instance.
      • withSocketTimeoutInMillis

        public SesClientConfiguration withSocketTimeoutInMillis​(int socketTimeoutInMillis)
        从类复制的说明: BceClientConfiguration
        Sets the socket timeout (SO_TIMEOUT) in milliseconds, which is a maximum period inactivity between two consecutive data packets, and returns the updated configuration instance. A value of 0 means infinity, and is not recommended.
        覆盖:
        withSocketTimeoutInMillis 在类中 BceClientConfiguration
        参数:
        socketTimeoutInMillis - the socket timeout (SO_TIMEOUT) in milliseconds.
        返回:
        the updated configuration instance.
      • withConnectionTimeoutInMillis

        public SesClientConfiguration withConnectionTimeoutInMillis​(int connectionTimeoutInMillis)
        从类复制的说明: BceClientConfiguration
        Sets the connection timeout in milliseconds, and returns the updated configuration instance. A value of 0 means infinity, and is not recommended.
        覆盖:
        withConnectionTimeoutInMillis 在类中 BceClientConfiguration
        参数:
        connectionTimeoutInMillis - the connection timeout in milliseconds.
        返回:
        the updated configuration instance.
      • withSocketBufferSizeInBytes

        public SesClientConfiguration withSocketBufferSizeInBytes​(int socketBufferSizeInBytes)
        从类复制的说明: BceClientConfiguration
        Sets the optional size (in bytes) for the low level TCP socket buffer, and returns the updated configuration instance. This is an advanced option for advanced users who want to tune low level TCP parameters to try and squeeze out more performance. Ignored if not positive.
        覆盖:
        withSocketBufferSizeInBytes 在类中 BceClientConfiguration
        参数:
        socketBufferSizeInBytes - the optional size (in bytes) for the low level TCP socket buffer.
        返回:
        the updated configuration instance.
      • withRegion

        public SesClientConfiguration withRegion​(Region region)
        从类复制的说明: BceClientConfiguration
        Sets the region of service, and returns the updated configuration instance. This value is used by the client to construct the endpoint URL automatically, and is ignored if endpoint is not null.

        If the specified region is null, sets to DEFAULT_REGION.

        覆盖:
        withRegion 在类中 BceClientConfiguration
        参数:
        region - the region of service.
        返回:
        the updated configuration instance.