Class CfnVpcOrigin.VpcOriginEndpointConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.CfnVpcOrigin.VpcOriginEndpointConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVpcOrigin.VpcOriginEndpointConfigProperty>
- Enclosing interface:
CfnVpcOrigin.VpcOriginEndpointConfigProperty
@Stability(Stable)
public static final class CfnVpcOrigin.VpcOriginEndpointConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVpcOrigin.VpcOriginEndpointConfigProperty>
A builder for
CfnVpcOrigin.VpcOriginEndpointConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnVpcOrigin.VpcOriginEndpointConfigProperty.getArn()build()Builds the configured instance.Sets the value ofCfnVpcOrigin.VpcOriginEndpointConfigProperty.getHttpPort()Sets the value ofCfnVpcOrigin.VpcOriginEndpointConfigProperty.getHttpsPort()Sets the value ofCfnVpcOrigin.VpcOriginEndpointConfigProperty.getName()originProtocolPolicy(String originProtocolPolicy) Sets the value ofCfnVpcOrigin.VpcOriginEndpointConfigProperty.getOriginProtocolPolicy()originSslProtocols(List<String> originSslProtocols) Sets the value ofCfnVpcOrigin.VpcOriginEndpointConfigProperty.getOriginSslProtocols()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
arn
Sets the value ofCfnVpcOrigin.VpcOriginEndpointConfigProperty.getArn()- Parameters:
arn- The ARN of the CloudFront VPC origin endpoint configuration. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnVpcOrigin.VpcOriginEndpointConfigProperty.getName()- Parameters:
name- The name of the CloudFront VPC origin endpoint configuration. This parameter is required.- Returns:
this
-
httpPort
@Stability(Stable) public CfnVpcOrigin.VpcOriginEndpointConfigProperty.Builder httpPort(Number httpPort) Sets the value ofCfnVpcOrigin.VpcOriginEndpointConfigProperty.getHttpPort()- Parameters:
httpPort- The HTTP port for the CloudFront VPC origin endpoint configuration. The default value is80.- Returns:
this
-
httpsPort
@Stability(Stable) public CfnVpcOrigin.VpcOriginEndpointConfigProperty.Builder httpsPort(Number httpsPort) Sets the value ofCfnVpcOrigin.VpcOriginEndpointConfigProperty.getHttpsPort()- Parameters:
httpsPort- The HTTPS port of the CloudFront VPC origin endpoint configuration. The default value is443.- Returns:
this
-
originProtocolPolicy
@Stability(Stable) public CfnVpcOrigin.VpcOriginEndpointConfigProperty.Builder originProtocolPolicy(String originProtocolPolicy) Sets the value ofCfnVpcOrigin.VpcOriginEndpointConfigProperty.getOriginProtocolPolicy()- Parameters:
originProtocolPolicy- The origin protocol policy for the CloudFront VPC origin endpoint configuration.- Returns:
this
-
originSslProtocols
@Stability(Stable) public CfnVpcOrigin.VpcOriginEndpointConfigProperty.Builder originSslProtocols(List<String> originSslProtocols) Sets the value ofCfnVpcOrigin.VpcOriginEndpointConfigProperty.getOriginSslProtocols()- Parameters:
originSslProtocols- Specifies the minimum SSL/TLS protocol that CloudFront uses when connecting to your origin over HTTPS. Valid values includeSSLv3,TLSv1,TLSv1.1, andTLSv1.2.For more information, see Minimum Origin SSL Protocol in the Amazon CloudFront Developer Guide .
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVpcOrigin.VpcOriginEndpointConfigProperty>- Returns:
- a new instance of
CfnVpcOrigin.VpcOriginEndpointConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-