Interface AwsCloudFrontDistributionOriginItem.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsCloudFrontDistributionOriginItem.Builder,
,AwsCloudFrontDistributionOriginItem> SdkBuilder<AwsCloudFrontDistributionOriginItem.Builder,
,AwsCloudFrontDistributionOriginItem> SdkPojo
- Enclosing class:
AwsCloudFrontDistributionOriginItem
-
Method Summary
Modifier and TypeMethodDescriptioncustomOriginConfig
(Consumer<AwsCloudFrontDistributionOriginCustomOriginConfig.Builder> customOriginConfig) An origin that is not an Amazon S3 bucket, with one exception.customOriginConfig
(AwsCloudFrontDistributionOriginCustomOriginConfig customOriginConfig) An origin that is not an Amazon S3 bucket, with one exception.domainName
(String domainName) Amazon S3 origins: The DNS name of the S3 bucket from which you want CloudFront to get objects for this origin.A unique identifier for the origin or origin group.originPath
(String originPath) An optional element that causes CloudFront to request your content from a directory in your Amazon S3 bucket or your custom origin.s3OriginConfig
(Consumer<AwsCloudFrontDistributionOriginS3OriginConfig.Builder> s3OriginConfig) An origin that is an S3 bucket that is not configured with static website hosting.s3OriginConfig
(AwsCloudFrontDistributionOriginS3OriginConfig s3OriginConfig) An origin that is an S3 bucket that is not configured with static website hosting.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
domainName
Amazon S3 origins: The DNS name of the S3 bucket from which you want CloudFront to get objects for this origin.
- Parameters:
domainName
- Amazon S3 origins: The DNS name of the S3 bucket from which you want CloudFront to get objects for this origin.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
id
A unique identifier for the origin or origin group.
- Parameters:
id
- A unique identifier for the origin or origin group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
originPath
An optional element that causes CloudFront to request your content from a directory in your Amazon S3 bucket or your custom origin.
- Parameters:
originPath
- An optional element that causes CloudFront to request your content from a directory in your Amazon S3 bucket or your custom origin.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
s3OriginConfig
AwsCloudFrontDistributionOriginItem.Builder s3OriginConfig(AwsCloudFrontDistributionOriginS3OriginConfig s3OriginConfig) An origin that is an S3 bucket that is not configured with static website hosting.
- Parameters:
s3OriginConfig
- An origin that is an S3 bucket that is not configured with static website hosting.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
s3OriginConfig
default AwsCloudFrontDistributionOriginItem.Builder s3OriginConfig(Consumer<AwsCloudFrontDistributionOriginS3OriginConfig.Builder> s3OriginConfig) An origin that is an S3 bucket that is not configured with static website hosting.
This is a convenience method that creates an instance of theAwsCloudFrontDistributionOriginS3OriginConfig.Builder
avoiding the need to create one manually viaAwsCloudFrontDistributionOriginS3OriginConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tos3OriginConfig(AwsCloudFrontDistributionOriginS3OriginConfig)
.- Parameters:
s3OriginConfig
- a consumer that will call methods onAwsCloudFrontDistributionOriginS3OriginConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
customOriginConfig
AwsCloudFrontDistributionOriginItem.Builder customOriginConfig(AwsCloudFrontDistributionOriginCustomOriginConfig customOriginConfig) An origin that is not an Amazon S3 bucket, with one exception. If the Amazon S3 bucket is configured with static website hosting, use this attribute. If the Amazon S3 bucket is not configured with static website hosting, use the
S3OriginConfig
type instead.- Parameters:
customOriginConfig
- An origin that is not an Amazon S3 bucket, with one exception. If the Amazon S3 bucket is configured with static website hosting, use this attribute. If the Amazon S3 bucket is not configured with static website hosting, use theS3OriginConfig
type instead.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customOriginConfig
default AwsCloudFrontDistributionOriginItem.Builder customOriginConfig(Consumer<AwsCloudFrontDistributionOriginCustomOriginConfig.Builder> customOriginConfig) An origin that is not an Amazon S3 bucket, with one exception. If the Amazon S3 bucket is configured with static website hosting, use this attribute. If the Amazon S3 bucket is not configured with static website hosting, use the
This is a convenience method that creates an instance of theS3OriginConfig
type instead.AwsCloudFrontDistributionOriginCustomOriginConfig.Builder
avoiding the need to create one manually viaAwsCloudFrontDistributionOriginCustomOriginConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocustomOriginConfig(AwsCloudFrontDistributionOriginCustomOriginConfig)
.- Parameters:
customOriginConfig
- a consumer that will call methods onAwsCloudFrontDistributionOriginCustomOriginConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-