Class CfnStreamingDistribution.StreamingDistributionConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.CfnStreamingDistribution.StreamingDistributionConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStreamingDistribution.StreamingDistributionConfigProperty>
- Enclosing interface:
- CfnStreamingDistribution.StreamingDistributionConfigProperty
@Stability(Stable)
public static final class CfnStreamingDistribution.StreamingDistributionConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStreamingDistribution.StreamingDistributionConfigProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.enabled
(IResolvable enabled) logging
(IResolvable logging) priceClass
(String priceClass) s3Origin
(IResolvable s3Origin) trustedSigners
(IResolvable trustedSigners) trustedSigners
(CfnStreamingDistribution.TrustedSignersProperty trustedSigners)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
comment
@Stability(Stable) public CfnStreamingDistribution.StreamingDistributionConfigProperty.Builder comment(String comment) - Parameters:
comment
- Any comments you want to include about the streaming distribution. This parameter is required.- Returns:
this
-
enabled
@Stability(Stable) public CfnStreamingDistribution.StreamingDistributionConfigProperty.Builder enabled(Boolean enabled) - Parameters:
enabled
- Whether the streaming distribution is enabled to accept user requests for content. This parameter is required.- Returns:
this
-
enabled
@Stability(Stable) public CfnStreamingDistribution.StreamingDistributionConfigProperty.Builder enabled(IResolvable enabled) - Parameters:
enabled
- Whether the streaming distribution is enabled to accept user requests for content. This parameter is required.- Returns:
this
-
s3Origin
@Stability(Stable) public CfnStreamingDistribution.StreamingDistributionConfigProperty.Builder s3Origin(IResolvable s3Origin) - Parameters:
s3Origin
- A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution. This parameter is required.- Returns:
this
-
s3Origin
@Stability(Stable) public CfnStreamingDistribution.StreamingDistributionConfigProperty.Builder s3Origin(CfnStreamingDistribution.S3OriginProperty s3Origin) - Parameters:
s3Origin
- A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution. This parameter is required.- Returns:
this
-
trustedSigners
@Stability(Stable) public CfnStreamingDistribution.StreamingDistributionConfigProperty.Builder trustedSigners(IResolvable trustedSigners) - Parameters:
trustedSigners
- A complex type that specifies any AWS accounts that you want to permit to create signed URLs for private content. This parameter is required. If you want the distribution to use signed URLs, include this element; if you want the distribution to use public URLs, remove this element. For more information, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide .- Returns:
this
-
trustedSigners
@Stability(Stable) public CfnStreamingDistribution.StreamingDistributionConfigProperty.Builder trustedSigners(CfnStreamingDistribution.TrustedSignersProperty trustedSigners) - Parameters:
trustedSigners
- A complex type that specifies any AWS accounts that you want to permit to create signed URLs for private content. This parameter is required. If you want the distribution to use signed URLs, include this element; if you want the distribution to use public URLs, remove this element. For more information, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide .- Returns:
this
-
aliases
@Stability(Stable) public CfnStreamingDistribution.StreamingDistributionConfigProperty.Builder aliases(List<String> aliases) - Parameters:
aliases
- A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution.- Returns:
this
-
logging
@Stability(Stable) public CfnStreamingDistribution.StreamingDistributionConfigProperty.Builder logging(IResolvable logging) - Parameters:
logging
- A complex type that controls whether access logs are written for the streaming distribution.- Returns:
this
-
logging
@Stability(Stable) public CfnStreamingDistribution.StreamingDistributionConfigProperty.Builder logging(CfnStreamingDistribution.LoggingProperty logging) - Parameters:
logging
- A complex type that controls whether access logs are written for the streaming distribution.- Returns:
this
-
priceClass
@Stability(Stable) public CfnStreamingDistribution.StreamingDistributionConfigProperty.Builder priceClass(String priceClass) - Parameters:
priceClass
- A complex type that contains information about price class for this streaming distribution.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnStreamingDistribution.StreamingDistributionConfigProperty>
- Returns:
- a new instance of
CfnStreamingDistribution.StreamingDistributionConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-