Class CfnDistribution.InputOriginProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lightsail.CfnDistribution.InputOriginProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDistribution.InputOriginProperty>
- Enclosing interface:
CfnDistribution.InputOriginProperty
@Stability(Stable)
public static final class CfnDistribution.InputOriginProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDistribution.InputOriginProperty>
A builder for
CfnDistribution.InputOriginProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnDistribution.InputOriginProperty.getName()
protocolPolicy
(String protocolPolicy) Sets the value ofCfnDistribution.InputOriginProperty.getProtocolPolicy()
regionName
(String regionName) Sets the value ofCfnDistribution.InputOriginProperty.getRegionName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnDistribution.InputOriginProperty.getName()
- Parameters:
name
- The name of the origin resource.- Returns:
this
-
protocolPolicy
@Stability(Stable) public CfnDistribution.InputOriginProperty.Builder protocolPolicy(String protocolPolicy) Sets the value ofCfnDistribution.InputOriginProperty.getProtocolPolicy()
- Parameters:
protocolPolicy
- The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull content.- Returns:
this
-
regionName
Sets the value ofCfnDistribution.InputOriginProperty.getRegionName()
- Parameters:
regionName
- The AWS Region name of the origin resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDistribution.InputOriginProperty>
- Returns:
- a new instance of
CfnDistribution.InputOriginProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-