Interface DistributionSummary.Builder

    • Method Detail

      • id

        DistributionSummary.Builder id​(String id)

        The identifier for the distribution. For example: EDFDVBD632BHDS5.

        Parameters:
        id - The identifier for the distribution. For example: EDFDVBD632BHDS5.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • arn

        DistributionSummary.Builder arn​(String arn)

        The ARN (Amazon Resource Name) for the distribution. For example: arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where 123456789012 is your Amazon Web Services account ID.

        Parameters:
        arn - The ARN (Amazon Resource Name) for the distribution. For example: arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where 123456789012 is your Amazon Web Services account ID.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • status

        DistributionSummary.Builder status​(String status)

        The current status of the distribution. When the status is Deployed, the distribution's information is propagated to all CloudFront edge locations.

        Parameters:
        status - The current status of the distribution. When the status is Deployed, the distribution's information is propagated to all CloudFront edge locations.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • lastModifiedTime

        DistributionSummary.Builder lastModifiedTime​(Instant lastModifiedTime)

        The date and time the distribution was last modified.

        Parameters:
        lastModifiedTime - The date and time the distribution was last modified.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • domainName

        DistributionSummary.Builder domainName​(String domainName)

        The domain name that corresponds to the distribution, for example, d111111abcdef8.cloudfront.net .

        Parameters:
        domainName - The domain name that corresponds to the distribution, for example, d111111abcdef8.cloudfront.net.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • aliases

        DistributionSummary.Builder aliases​(Aliases aliases)

        A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.

        Parameters:
        aliases - A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • origins

        DistributionSummary.Builder origins​(Origins origins)

        A complex type that contains information about origins for this distribution.

        Parameters:
        origins - A complex type that contains information about origins for this distribution.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • originGroups

        DistributionSummary.Builder originGroups​(OriginGroups originGroups)

        A complex type that contains information about origin groups for this distribution.

        Parameters:
        originGroups - A complex type that contains information about origin groups for this distribution.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • defaultCacheBehavior

        DistributionSummary.Builder defaultCacheBehavior​(DefaultCacheBehavior defaultCacheBehavior)

        A complex type that describes the default cache behavior if you don't specify a CacheBehavior element or if files don't match any of the values of PathPattern in CacheBehavior elements. You must create exactly one default cache behavior.

        Parameters:
        defaultCacheBehavior - A complex type that describes the default cache behavior if you don't specify a CacheBehavior element or if files don't match any of the values of PathPattern in CacheBehavior elements. You must create exactly one default cache behavior.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • cacheBehaviors

        DistributionSummary.Builder cacheBehaviors​(CacheBehaviors cacheBehaviors)

        A complex type that contains zero or more CacheBehavior elements.

        Parameters:
        cacheBehaviors - A complex type that contains zero or more CacheBehavior elements.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • customErrorResponses

        DistributionSummary.Builder customErrorResponses​(CustomErrorResponses customErrorResponses)

        A complex type that contains zero or more CustomErrorResponses elements.

        Parameters:
        customErrorResponses - A complex type that contains zero or more CustomErrorResponses elements.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • comment

        DistributionSummary.Builder comment​(String comment)

        The comment originally specified when this distribution was created.

        Parameters:
        comment - The comment originally specified when this distribution was created.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • priceClass

        DistributionSummary.Builder priceClass​(String priceClass)

        A complex type that contains information about price class for this streaming distribution.

        Parameters:
        priceClass - A complex type that contains information about price class for this streaming distribution.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        PriceClass, PriceClass
      • priceClass

        DistributionSummary.Builder priceClass​(PriceClass priceClass)

        A complex type that contains information about price class for this streaming distribution.

        Parameters:
        priceClass - A complex type that contains information about price class for this streaming distribution.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        PriceClass, PriceClass
      • enabled

        DistributionSummary.Builder enabled​(Boolean enabled)

        Whether the distribution is enabled to accept user requests for content.

        Parameters:
        enabled - Whether the distribution is enabled to accept user requests for content.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • viewerCertificate

        DistributionSummary.Builder viewerCertificate​(ViewerCertificate viewerCertificate)

        A complex type that determines the distribution's SSL/TLS configuration for communicating with viewers.

        Parameters:
        viewerCertificate - A complex type that determines the distribution's SSL/TLS configuration for communicating with viewers.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • restrictions

        DistributionSummary.Builder restrictions​(Restrictions restrictions)

        A complex type that identifies ways in which you want to restrict distribution of your content.

        Parameters:
        restrictions - A complex type that identifies ways in which you want to restrict distribution of your content.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • webACLId

        DistributionSummary.Builder webACLId​(String webACLId)

        The Web ACL Id (if any) associated with the distribution.

        Parameters:
        webACLId - The Web ACL Id (if any) associated with the distribution.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • httpVersion

        DistributionSummary.Builder httpVersion​(String httpVersion)

        Specify the maximum HTTP version that you want viewers to use to communicate with CloudFront. The default value for new web distributions is http2. Viewers that don't support HTTP/2 will automatically use an earlier version.

        Parameters:
        httpVersion - Specify the maximum HTTP version that you want viewers to use to communicate with CloudFront. The default value for new web distributions is http2. Viewers that don't support HTTP/2 will automatically use an earlier version.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        HttpVersion, HttpVersion
      • httpVersion

        DistributionSummary.Builder httpVersion​(HttpVersion httpVersion)

        Specify the maximum HTTP version that you want viewers to use to communicate with CloudFront. The default value for new web distributions is http2. Viewers that don't support HTTP/2 will automatically use an earlier version.

        Parameters:
        httpVersion - Specify the maximum HTTP version that you want viewers to use to communicate with CloudFront. The default value for new web distributions is http2. Viewers that don't support HTTP/2 will automatically use an earlier version.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        HttpVersion, HttpVersion
      • isIPV6Enabled

        DistributionSummary.Builder isIPV6Enabled​(Boolean isIPV6Enabled)

        Whether CloudFront responds to IPv6 DNS requests with an IPv6 address for your distribution.

        Parameters:
        isIPV6Enabled - Whether CloudFront responds to IPv6 DNS requests with an IPv6 address for your distribution.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • aliasICPRecordals

        DistributionSummary.Builder aliasICPRecordals​(Collection<AliasICPRecordal> aliasICPRecordals)

        Amazon Web Services services in China customers must file for an Internet Content Provider (ICP) recordal if they want to serve content publicly on an alternate domain name, also known as a CNAME, that they've added to CloudFront. AliasICPRecordal provides the ICP recordal status for CNAMEs associated with distributions.

        For more information about ICP recordals, see Signup, Accounts, and Credentials in Getting Started with Amazon Web Services services in China.

        Parameters:
        aliasICPRecordals - Amazon Web Services services in China customers must file for an Internet Content Provider (ICP) recordal if they want to serve content publicly on an alternate domain name, also known as a CNAME, that they've added to CloudFront. AliasICPRecordal provides the ICP recordal status for CNAMEs associated with distributions.

        For more information about ICP recordals, see Signup, Accounts, and Credentials in Getting Started with Amazon Web Services services in China.

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

        DistributionSummary.Builder aliasICPRecordals​(AliasICPRecordal... aliasICPRecordals)

        Amazon Web Services services in China customers must file for an Internet Content Provider (ICP) recordal if they want to serve content publicly on an alternate domain name, also known as a CNAME, that they've added to CloudFront. AliasICPRecordal provides the ICP recordal status for CNAMEs associated with distributions.

        For more information about ICP recordals, see Signup, Accounts, and Credentials in Getting Started with Amazon Web Services services in China.

        Parameters:
        aliasICPRecordals - Amazon Web Services services in China customers must file for an Internet Content Provider (ICP) recordal if they want to serve content publicly on an alternate domain name, also known as a CNAME, that they've added to CloudFront. AliasICPRecordal provides the ICP recordal status for CNAMEs associated with distributions.

        For more information about ICP recordals, see Signup, Accounts, and Credentials in Getting Started with Amazon Web Services services in China.

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

        DistributionSummary.Builder aliasICPRecordals​(Consumer<AliasICPRecordal.Builder>... aliasICPRecordals)

        Amazon Web Services services in China customers must file for an Internet Content Provider (ICP) recordal if they want to serve content publicly on an alternate domain name, also known as a CNAME, that they've added to CloudFront. AliasICPRecordal provides the ICP recordal status for CNAMEs associated with distributions.

        For more information about ICP recordals, see Signup, Accounts, and Credentials in Getting Started with Amazon Web Services services in China.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #aliasICPRecordals(List).

        Parameters:
        aliasICPRecordals - a consumer that will call methods on AliasICPRecordal.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #aliasICPRecordals(java.util.Collection)
      • staging

        DistributionSummary.Builder staging​(Boolean staging)

        Whether the primary distribution has a staging distribution enabled.

        Parameters:
        staging - Whether the primary distribution has a staging distribution enabled.
        Returns:
        Returns a reference to this object so that method calls can be chained together.