Class VpcOriginProps.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.VpcOriginProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VpcOriginProps>
- Enclosing interface:
VpcOriginProps
@Stability(Stable)
public static final class VpcOriginProps.Builder
extends Object
implements software.amazon.jsii.Builder<VpcOriginProps>
A builder for
VpcOriginProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.endpoint(VpcOriginEndpoint endpoint) Sets the value ofVpcOriginProps.getEndpoint()Sets the value ofVpcOriginOptions.getHttpPort()Sets the value ofVpcOriginOptions.getHttpsPort()originSslProtocols(List<? extends OriginSslPolicy> originSslProtocols) Sets the value ofVpcOriginOptions.getOriginSslProtocols()protocolPolicy(OriginProtocolPolicy protocolPolicy) Sets the value ofVpcOriginOptions.getProtocolPolicy()vpcOriginName(String vpcOriginName) Sets the value ofVpcOriginOptions.getVpcOriginName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
endpoint
Sets the value ofVpcOriginProps.getEndpoint()- Parameters:
endpoint- The VPC origin endpoint. This parameter is required.- Returns:
this
-
httpPort
Sets the value ofVpcOriginOptions.getHttpPort()- Parameters:
httpPort- The HTTP port for the CloudFront VPC origin endpoint configuration.- Returns:
this
-
httpsPort
Sets the value ofVpcOriginOptions.getHttpsPort()- Parameters:
httpsPort- The HTTPS port of the CloudFront VPC origin endpoint configuration.- Returns:
this
-
originSslProtocols
@Stability(Stable) public VpcOriginProps.Builder originSslProtocols(List<? extends OriginSslPolicy> originSslProtocols) Sets the value ofVpcOriginOptions.getOriginSslProtocols()- Parameters:
originSslProtocols- A list that contains allowed SSL/TLS protocols for this distribution.- Returns:
this
-
protocolPolicy
@Stability(Stable) public VpcOriginProps.Builder protocolPolicy(OriginProtocolPolicy protocolPolicy) Sets the value ofVpcOriginOptions.getProtocolPolicy()- Parameters:
protocolPolicy- The origin protocol policy for the CloudFront VPC origin endpoint configuration.- Returns:
this
-
vpcOriginName
Sets the value ofVpcOriginOptions.getVpcOriginName()- Parameters:
vpcOriginName- The name of the CloudFront VPC origin endpoint configuration.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VpcOriginProps>- Returns:
- a new instance of
VpcOriginProps - Throws:
NullPointerException- if any required attribute was not provided
-