Class DistributionTenantReference.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.DistributionTenantReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DistributionTenantReference>
- Enclosing interface:
DistributionTenantReference
@Stability(Stable)
public static final class DistributionTenantReference.Builder
extends Object
implements software.amazon.jsii.Builder<DistributionTenantReference>
A builder for
DistributionTenantReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.distributionTenantArn
(String distributionTenantArn) Sets the value ofDistributionTenantReference.getDistributionTenantArn()
distributionTenantId
(String distributionTenantId) Sets the value ofDistributionTenantReference.getDistributionTenantId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
distributionTenantArn
@Stability(Stable) public DistributionTenantReference.Builder distributionTenantArn(String distributionTenantArn) Sets the value ofDistributionTenantReference.getDistributionTenantArn()
- Parameters:
distributionTenantArn
- The ARN of the DistributionTenant resource. This parameter is required.- Returns:
this
-
distributionTenantId
@Stability(Stable) public DistributionTenantReference.Builder distributionTenantId(String distributionTenantId) Sets the value ofDistributionTenantReference.getDistributionTenantId()
- Parameters:
distributionTenantId
- The Id of the DistributionTenant resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<DistributionTenantReference>
- Returns:
- a new instance of
DistributionTenantReference
- Throws:
NullPointerException
- if any required attribute was not provided
-