Class CfnInstancePropsMixin.NetworkingProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lightsail.CfnInstancePropsMixin.NetworkingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstancePropsMixin.NetworkingProperty>
- Enclosing interface:
CfnInstancePropsMixin.NetworkingProperty
@Stability(Stable)
public static final class CfnInstancePropsMixin.NetworkingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInstancePropsMixin.NetworkingProperty>
A builder for
CfnInstancePropsMixin.NetworkingProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.monthlyTransfer(CfnInstancePropsMixin.MonthlyTransferProperty monthlyTransfer) Sets the value ofCfnInstancePropsMixin.NetworkingProperty.getMonthlyTransfer()monthlyTransfer(IResolvable monthlyTransfer) Sets the value ofCfnInstancePropsMixin.NetworkingProperty.getMonthlyTransfer()Sets the value ofCfnInstancePropsMixin.NetworkingProperty.getPorts()ports(IResolvable ports) Sets the value ofCfnInstancePropsMixin.NetworkingProperty.getPorts()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
monthlyTransfer
@Stability(Stable) public CfnInstancePropsMixin.NetworkingProperty.Builder monthlyTransfer(IResolvable monthlyTransfer) Sets the value ofCfnInstancePropsMixin.NetworkingProperty.getMonthlyTransfer()- Parameters:
monthlyTransfer- The monthly amount of data transfer, in GB, allocated for the instance.- Returns:
this
-
monthlyTransfer
@Stability(Stable) public CfnInstancePropsMixin.NetworkingProperty.Builder monthlyTransfer(CfnInstancePropsMixin.MonthlyTransferProperty monthlyTransfer) Sets the value ofCfnInstancePropsMixin.NetworkingProperty.getMonthlyTransfer()- Parameters:
monthlyTransfer- The monthly amount of data transfer, in GB, allocated for the instance.- Returns:
this
-
ports
Sets the value ofCfnInstancePropsMixin.NetworkingProperty.getPorts()- Parameters:
ports- An array of ports to open on the instance.- Returns:
this
-
ports
@Stability(Stable) public CfnInstancePropsMixin.NetworkingProperty.Builder ports(List<? extends Object> ports) Sets the value ofCfnInstancePropsMixin.NetworkingProperty.getPorts()- Parameters:
ports- An array of ports to open on the instance.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInstancePropsMixin.NetworkingProperty>- Returns:
- a new instance of
CfnInstancePropsMixin.NetworkingProperty - Throws:
NullPointerException- if any required attribute was not provided
-