Class CfnOriginRequestPolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.CfnOriginRequestPolicyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnOriginRequestPolicyProps>
- Enclosing interface:
CfnOriginRequestPolicyProps
@Stability(Stable)
public static final class CfnOriginRequestPolicyProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnOriginRequestPolicyProps>
A builder for
CfnOriginRequestPolicyProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.originRequestPolicyConfig
(IResolvable originRequestPolicyConfig) Sets the value ofCfnOriginRequestPolicyProps.getOriginRequestPolicyConfig()
originRequestPolicyConfig
(CfnOriginRequestPolicy.OriginRequestPolicyConfigProperty originRequestPolicyConfig) Sets the value ofCfnOriginRequestPolicyProps.getOriginRequestPolicyConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
originRequestPolicyConfig
@Stability(Stable) public CfnOriginRequestPolicyProps.Builder originRequestPolicyConfig(IResolvable originRequestPolicyConfig) Sets the value ofCfnOriginRequestPolicyProps.getOriginRequestPolicyConfig()
- Parameters:
originRequestPolicyConfig
- The origin request policy configuration. This parameter is required.- Returns:
this
-
originRequestPolicyConfig
@Stability(Stable) public CfnOriginRequestPolicyProps.Builder originRequestPolicyConfig(CfnOriginRequestPolicy.OriginRequestPolicyConfigProperty originRequestPolicyConfig) Sets the value ofCfnOriginRequestPolicyProps.getOriginRequestPolicyConfig()
- Parameters:
originRequestPolicyConfig
- The origin request policy configuration. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnOriginRequestPolicyProps>
- Returns:
- a new instance of
CfnOriginRequestPolicyProps
- Throws:
NullPointerException
- if any required attribute was not provided
-