Class CfnStreamingDistribution.TrustedSignersProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.CfnStreamingDistribution.TrustedSignersProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStreamingDistribution.TrustedSignersProperty>
- Enclosing interface:
CfnStreamingDistribution.TrustedSignersProperty
@Stability(Stable)
public static final class CfnStreamingDistribution.TrustedSignersProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStreamingDistribution.TrustedSignersProperty>
A builder for
CfnStreamingDistribution.TrustedSignersProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionawsAccountNumbers
(List<String> awsAccountNumbers) Sets the value ofCfnStreamingDistribution.TrustedSignersProperty.getAwsAccountNumbers()
build()
Builds the configured instance.Sets the value ofCfnStreamingDistribution.TrustedSignersProperty.getEnabled()
enabled
(IResolvable enabled) Sets the value ofCfnStreamingDistribution.TrustedSignersProperty.getEnabled()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
@Stability(Stable) public CfnStreamingDistribution.TrustedSignersProperty.Builder enabled(Boolean enabled) Sets the value ofCfnStreamingDistribution.TrustedSignersProperty.getEnabled()
- Parameters:
enabled
- This field istrue
if any of the AWS accounts in the list are configured as trusted signers. This parameter is required. If not, this field isfalse
.- Returns:
this
-
enabled
@Stability(Stable) public CfnStreamingDistribution.TrustedSignersProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnStreamingDistribution.TrustedSignersProperty.getEnabled()
- Parameters:
enabled
- This field istrue
if any of the AWS accounts in the list are configured as trusted signers. This parameter is required. If not, this field isfalse
.- Returns:
this
-
awsAccountNumbers
@Stability(Stable) public CfnStreamingDistribution.TrustedSignersProperty.Builder awsAccountNumbers(List<String> awsAccountNumbers) Sets the value ofCfnStreamingDistribution.TrustedSignersProperty.getAwsAccountNumbers()
- Parameters:
awsAccountNumbers
- An AWS account number that contains active CloudFront key pairs that CloudFront can use to verify the signatures of signed URLs and signed cookies. If the AWS account that owns the key pairs is the same account that owns the CloudFront distribution, the value of this field isself
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnStreamingDistribution.TrustedSignersProperty>
- Returns:
- a new instance of
CfnStreamingDistribution.TrustedSignersProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-