Interface UpdateDistributionRequest.Builder

    • Method Detail

      • distributionName

        UpdateDistributionRequest.Builder distributionName​(String distributionName)

        The name of the distribution to update.

        Use the GetDistributions action to get a list of distribution names that you can specify.

        Parameters:
        distributionName - The name of the distribution to update.

        Use the GetDistributions action to get a list of distribution names that you can specify.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • origin

        UpdateDistributionRequest.Builder origin​(InputOrigin origin)

        An object that describes the origin resource for the distribution, such as a Lightsail instance, bucket, or load balancer.

        The distribution pulls, caches, and serves content from the origin.

        Parameters:
        origin - An object that describes the origin resource for the distribution, such as a Lightsail instance, bucket, or load balancer.

        The distribution pulls, caches, and serves content from the origin.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • defaultCacheBehavior

        UpdateDistributionRequest.Builder defaultCacheBehavior​(CacheBehavior defaultCacheBehavior)

        An object that describes the default cache behavior for the distribution.

        Parameters:
        defaultCacheBehavior - An object that describes the default cache behavior for the distribution.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • cacheBehaviorSettings

        UpdateDistributionRequest.Builder cacheBehaviorSettings​(CacheSettings cacheBehaviorSettings)

        An object that describes the cache behavior settings for the distribution.

        The cacheBehaviorSettings specified in your UpdateDistributionRequest will replace your distribution's existing settings.

        Parameters:
        cacheBehaviorSettings - An object that describes the cache behavior settings for the distribution.

        The cacheBehaviorSettings specified in your UpdateDistributionRequest will replace your distribution's existing settings.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • cacheBehaviors

        UpdateDistributionRequest.Builder cacheBehaviors​(Collection<CacheBehaviorPerPath> cacheBehaviors)

        An array of objects that describe the per-path cache behavior for the distribution.

        Parameters:
        cacheBehaviors - An array of objects that describe the per-path cache behavior for the distribution.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • cacheBehaviors

        UpdateDistributionRequest.Builder cacheBehaviors​(CacheBehaviorPerPath... cacheBehaviors)

        An array of objects that describe the per-path cache behavior for the distribution.

        Parameters:
        cacheBehaviors - An array of objects that describe the per-path cache behavior for the distribution.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • isEnabled

        UpdateDistributionRequest.Builder isEnabled​(Boolean isEnabled)

        Indicates whether to enable the distribution.

        Parameters:
        isEnabled - Indicates whether to enable the distribution.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • viewerMinimumTlsProtocolVersion

        UpdateDistributionRequest.Builder viewerMinimumTlsProtocolVersion​(String viewerMinimumTlsProtocolVersion)

        Use this parameter to update the minimum TLS protocol version for the SSL/TLS certificate that's attached to the distribution.

        Parameters:
        viewerMinimumTlsProtocolVersion - Use this parameter to update the minimum TLS protocol version for the SSL/TLS certificate that's attached to the distribution.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ViewerMinimumTlsProtocolVersionEnum, ViewerMinimumTlsProtocolVersionEnum
      • certificateName

        UpdateDistributionRequest.Builder certificateName​(String certificateName)

        The name of the SSL/TLS certificate that you want to attach to the distribution.

        Only certificates with a status of ISSUED can be attached to a distribution.

        Use the GetCertificates action to get a list of certificate names that you can specify.

        Parameters:
        certificateName - The name of the SSL/TLS certificate that you want to attach to the distribution.

        Only certificates with a status of ISSUED can be attached to a distribution.

        Use the GetCertificates action to get a list of certificate names that you can specify.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • useDefaultCertificate

        UpdateDistributionRequest.Builder useDefaultCertificate​(Boolean useDefaultCertificate)

        Indicates whether the default SSL/TLS certificate is attached to the distribution. The default value is true. When true, the distribution uses the default domain name such as d111111abcdef8.cloudfront.net.

        Set this value to false to attach a new certificate to the distribution.

        Parameters:
        useDefaultCertificate - Indicates whether the default SSL/TLS certificate is attached to the distribution. The default value is true. When true, the distribution uses the default domain name such as d111111abcdef8.cloudfront.net.

        Set this value to false to attach a new certificate to the distribution.

        Returns:
        Returns a reference to this object so that method calls can be chained together.