Interface CreateDistributionRequest.Builder

    • Method Detail

      • 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

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

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

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

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

        CreateDistributionRequest.Builder bundleId​(String 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, IpAddressType
      • 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:
        IpAddressType, IpAddressType
      • tags

        CreateDistributionRequest.Builder tags​(Collection<Tag> 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

        CreateDistributionRequest.Builder tags​(Tag... 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

        CreateDistributionRequest.Builder tags​(Consumer<Tag.Builder>... 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).

        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:
        #tags(java.util.Collection)