Class OriginBindOptions.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.OriginBindOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<OriginBindOptions>
- Enclosing interface:
OriginBindOptions
@Stability(Stable)
public static final class OriginBindOptions.Builder
extends Object
implements software.amazon.jsii.Builder<OriginBindOptions>
A builder for
OriginBindOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.distributionId
(String distributionId) Sets the value ofOriginBindOptions.getDistributionId()
Sets the value ofOriginBindOptions.getOriginId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
originId
Sets the value ofOriginBindOptions.getOriginId()
- Parameters:
originId
- The identifier of this Origin, as assigned by the Distribution this Origin has been used added to. This parameter is required.- Returns:
this
-
distributionId
Sets the value ofOriginBindOptions.getDistributionId()
- Parameters:
distributionId
- The identifier of the Distribution this Origin is used for. This is used to grant origin access permissions to the distribution for origin access control.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<OriginBindOptions>
- Returns:
- a new instance of
OriginBindOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-