Interface UpdateDistributionRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<UpdateDistributionRequest.Builder,UpdateDistributionRequest>, LightsailRequest.Builder, SdkBuilder<UpdateDistributionRequest.Builder,UpdateDistributionRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
UpdateDistributionRequest

public static interface UpdateDistributionRequest.Builder extends LightsailRequest.Builder, SdkPojo, CopyableBuilder<UpdateDistributionRequest.Builder,UpdateDistributionRequest>
  • Method Details

    • 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

      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.
    • 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.

      This is a convenience method that creates an instance of the InputOrigin.Builder avoiding the need to create one manually via InputOrigin.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to origin(InputOrigin).

      Parameters:
      origin - a consumer that will call methods on InputOrigin.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.
    • defaultCacheBehavior

      default UpdateDistributionRequest.Builder defaultCacheBehavior(Consumer<CacheBehavior.Builder> defaultCacheBehavior)

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

      This is a convenience method that creates an instance of the CacheBehavior.Builder avoiding the need to create one manually via CacheBehavior.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to defaultCacheBehavior(CacheBehavior).

      Parameters:
      defaultCacheBehavior - a consumer that will call methods on CacheBehavior.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.
    • cacheBehaviorSettings

      default UpdateDistributionRequest.Builder cacheBehaviorSettings(Consumer<CacheSettings.Builder> 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.

      This is a convenience method that creates an instance of the CacheSettings.Builder avoiding the need to create one manually via CacheSettings.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to cacheBehaviorSettings(CacheSettings).

      Parameters:
      cacheBehaviorSettings - a consumer that will call methods on CacheSettings.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.
    • cacheBehaviors

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

      This is a convenience method that creates an instance of the CacheBehaviorPerPath.Builder avoiding the need to create one manually via CacheBehaviorPerPath.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to cacheBehaviors(List<CacheBehaviorPerPath>).

      Parameters:
      cacheBehaviors - a consumer that will call methods on CacheBehaviorPerPath.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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:
    • viewerMinimumTlsProtocolVersion

      UpdateDistributionRequest.Builder viewerMinimumTlsProtocolVersion(ViewerMinimumTlsProtocolVersionEnum 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:
    • 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.
    • overrideConfiguration

      UpdateDistributionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.