Interface CreateDistributionRequest.Builder

  • Method Details

    • distributionName

      CreateDistributionRequest.Builder distributionName(String distributionName)

      The name for the distribution.

      Parameters:
      distributionName - The name for the distribution.
      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

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

      CreateDistributionRequest.Builder cacheBehaviorSettings(CacheSettings cacheBehaviorSettings)

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

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

      default CreateDistributionRequest.Builder cacheBehaviorSettings(Consumer<CacheSettings.Builder> cacheBehaviorSettings)

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

      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

      CreateDistributionRequest.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:
    • bundleId

      The bundle ID to use for the distribution.

      A distribution bundle describes the specifications of your distribution, such as the monthly cost and monthly network transfer quota.

      Use the GetDistributionBundles action to get a list of distribution bundle IDs that you can specify.

      Parameters:
      bundleId - The bundle ID to use for the distribution.

      A distribution bundle describes the specifications of your distribution, such as the monthly cost and monthly network transfer quota.

      Use the GetDistributionBundles action to get a list of distribution bundle IDs that you can specify.

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

      CreateDistributionRequest.Builder ipAddressType(String ipAddressType)

      The IP address type for the distribution.

      The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.

      The default value is dualstack.

      Parameters:
      ipAddressType - The IP address type for the distribution.

      The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.

      The default value is dualstack.

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

      CreateDistributionRequest.Builder ipAddressType(IpAddressType ipAddressType)

      The IP address type for the distribution.

      The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.

      The default value is dualstack.

      Parameters:
      ipAddressType - The IP address type for the distribution.

      The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.

      The default value is dualstack.

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

      The tag keys and optional values to add to the distribution during create.

      Use the TagResource action to tag a resource after it's created.

      Parameters:
      tags - The tag keys and optional values to add to the distribution during create.

      Use the TagResource action to tag a resource after it's created.

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

      The tag keys and optional values to add to the distribution during create.

      Use the TagResource action to tag a resource after it's created.

      Parameters:
      tags - The tag keys and optional values to add to the distribution during create.

      Use the TagResource action to tag a resource after it's created.

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

      The tag keys and optional values to add to the distribution during create.

      Use the TagResource action to tag a resource after it's created.

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

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

      Parameters:
      tags - a consumer that will call methods on Tag.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • certificateName

      CreateDistributionRequest.Builder certificateName(String certificateName)

      The name of the SSL/TLS certificate that you want to attach to the 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.

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

      CreateDistributionRequest.Builder viewerMinimumTlsProtocolVersion(String viewerMinimumTlsProtocolVersion)

      The minimum TLS protocol version for the SSL/TLS certificate.

      Parameters:
      viewerMinimumTlsProtocolVersion - The minimum TLS protocol version for the SSL/TLS certificate.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • viewerMinimumTlsProtocolVersion

      CreateDistributionRequest.Builder viewerMinimumTlsProtocolVersion(ViewerMinimumTlsProtocolVersionEnum viewerMinimumTlsProtocolVersion)

      The minimum TLS protocol version for the SSL/TLS certificate.

      Parameters:
      viewerMinimumTlsProtocolVersion - The minimum TLS protocol version for the SSL/TLS certificate.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

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