Class CfnDistributionTenantProps.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.CfnDistributionTenantProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDistributionTenantProps>
- Enclosing interface:
CfnDistributionTenantProps
@Stability(Stable)
public static final class CfnDistributionTenantProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDistributionTenantProps>
A builder for
CfnDistributionTenantProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.connectionGroupId
(String connectionGroupId) Sets the value ofCfnDistributionTenantProps.getConnectionGroupId()
customizations
(IResolvable customizations) Sets the value ofCfnDistributionTenantProps.getCustomizations()
customizations
(CfnDistributionTenant.CustomizationsProperty customizations) Sets the value ofCfnDistributionTenantProps.getCustomizations()
distributionId
(String distributionId) Sets the value ofCfnDistributionTenantProps.getDistributionId()
Sets the value ofCfnDistributionTenantProps.getDomains()
Sets the value ofCfnDistributionTenantProps.getEnabled()
enabled
(IResolvable enabled) Sets the value ofCfnDistributionTenantProps.getEnabled()
managedCertificateRequest
(IResolvable managedCertificateRequest) Sets the value ofCfnDistributionTenantProps.getManagedCertificateRequest()
managedCertificateRequest
(CfnDistributionTenant.ManagedCertificateRequestProperty managedCertificateRequest) Sets the value ofCfnDistributionTenantProps.getManagedCertificateRequest()
Sets the value ofCfnDistributionTenantProps.getName()
parameters
(List<? extends Object> parameters) Sets the value ofCfnDistributionTenantProps.getParameters()
parameters
(IResolvable parameters) Sets the value ofCfnDistributionTenantProps.getParameters()
Sets the value ofCfnDistributionTenantProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
distributionId
Sets the value ofCfnDistributionTenantProps.getDistributionId()
- Parameters:
distributionId
- The ID of the multi-tenant distribution. This parameter is required.- Returns:
this
-
domains
Sets the value ofCfnDistributionTenantProps.getDomains()
- Parameters:
domains
- The domains associated with the distribution tenant. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnDistributionTenantProps.getName()
- Parameters:
name
- The name of the distribution tenant. This parameter is required.- Returns:
this
-
connectionGroupId
@Stability(Stable) public CfnDistributionTenantProps.Builder connectionGroupId(String connectionGroupId) Sets the value ofCfnDistributionTenantProps.getConnectionGroupId()
- Parameters:
connectionGroupId
- The ID of the connection group for the distribution tenant. If you don't specify a connection group, CloudFront uses the default connection group.- Returns:
this
-
customizations
@Stability(Stable) public CfnDistributionTenantProps.Builder customizations(IResolvable customizations) Sets the value ofCfnDistributionTenantProps.getCustomizations()
- Parameters:
customizations
- Customizations for the distribution tenant. For each distribution tenant, you can specify the geographic restrictions, and the Amazon Resource Names (ARNs) for the ACM certificate and AWS WAF web ACL. These are specific values that you can override or disable from the multi-tenant distribution that was used to create the distribution tenant.- Returns:
this
-
customizations
@Stability(Stable) public CfnDistributionTenantProps.Builder customizations(CfnDistributionTenant.CustomizationsProperty customizations) Sets the value ofCfnDistributionTenantProps.getCustomizations()
- Parameters:
customizations
- Customizations for the distribution tenant. For each distribution tenant, you can specify the geographic restrictions, and the Amazon Resource Names (ARNs) for the ACM certificate and AWS WAF web ACL. These are specific values that you can override or disable from the multi-tenant distribution that was used to create the distribution tenant.- Returns:
this
-
enabled
Sets the value ofCfnDistributionTenantProps.getEnabled()
- Parameters:
enabled
- Indicates whether the distribution tenant is in an enabled state. If disabled, the distribution tenant won't serve traffic.- Returns:
this
-
enabled
Sets the value ofCfnDistributionTenantProps.getEnabled()
- Parameters:
enabled
- Indicates whether the distribution tenant is in an enabled state. If disabled, the distribution tenant won't serve traffic.- Returns:
this
-
managedCertificateRequest
@Stability(Stable) public CfnDistributionTenantProps.Builder managedCertificateRequest(IResolvable managedCertificateRequest) Sets the value ofCfnDistributionTenantProps.getManagedCertificateRequest()
- Parameters:
managedCertificateRequest
- An object that represents the request for the Amazon CloudFront managed ACM certificate.- Returns:
this
-
managedCertificateRequest
@Stability(Stable) public CfnDistributionTenantProps.Builder managedCertificateRequest(CfnDistributionTenant.ManagedCertificateRequestProperty managedCertificateRequest) Sets the value ofCfnDistributionTenantProps.getManagedCertificateRequest()
- Parameters:
managedCertificateRequest
- An object that represents the request for the Amazon CloudFront managed ACM certificate.- Returns:
this
-
parameters
Sets the value ofCfnDistributionTenantProps.getParameters()
- Parameters:
parameters
- A list of parameter values to add to the resource. A parameter is specified as a key-value pair. A valid parameter value must exist for any parameter that is marked as required in the multi-tenant distribution.- Returns:
this
-
parameters
@Stability(Stable) public CfnDistributionTenantProps.Builder parameters(List<? extends Object> parameters) Sets the value ofCfnDistributionTenantProps.getParameters()
- Parameters:
parameters
- A list of parameter values to add to the resource. A parameter is specified as a key-value pair. A valid parameter value must exist for any parameter that is marked as required in the multi-tenant distribution.- Returns:
this
-
tags
Sets the value ofCfnDistributionTenantProps.getTags()
- Parameters:
tags
- A complex type that contains zero or moreTag
elements.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDistributionTenantProps>
- Returns:
- a new instance of
CfnDistributionTenantProps
- Throws:
NullPointerException
- if any required attribute was not provided
-