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