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