Interface DistributionSummary.Builder

All Superinterfaces:
Buildable, CopyableBuilder<DistributionSummary.Builder,DistributionSummary>, SdkBuilder<DistributionSummary.Builder,DistributionSummary>, SdkPojo
Enclosing class:
DistributionSummary

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

    • 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

      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

      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

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

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

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

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

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

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

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

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

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

      default DistributionSummary.Builder originGroups(Consumer<OriginGroups.Builder> originGroups)

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

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

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

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

      default DistributionSummary.Builder defaultCacheBehavior(Consumer<DefaultCacheBehavior.Builder> 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.

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

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

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

      default DistributionSummary.Builder cacheBehaviors(Consumer<CacheBehaviors.Builder> cacheBehaviors)

      A complex type that contains zero or more CacheBehavior elements.

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

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

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

      default DistributionSummary.Builder customErrorResponses(Consumer<CustomErrorResponses.Builder> customErrorResponses)

      A complex type that contains zero or more CustomErrorResponses elements.

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

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

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

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

      default DistributionSummary.Builder viewerCertificate(Consumer<ViewerCertificate.Builder> viewerCertificate)

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

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

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

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

      default DistributionSummary.Builder restrictions(Consumer<Restrictions.Builder> restrictions)

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

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

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

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

      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:
    • 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<AliasICPRecordal>).

      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:
    • staging

      A Boolean that indicates whether this is a staging distribution. When this value is true, this is a staging distribution. When this value is false, this is not a staging distribution.

      Parameters:
      staging - A Boolean that indicates whether this is a staging distribution. When this value is true, this is a staging distribution. When this value is false, this is not a staging distribution.
      Returns:
      Returns a reference to this object so that method calls can be chained together.