Class CfnStaticIpProps.Builder
java.lang.Object
software.amazon.awscdk.services.lightsail.CfnStaticIpProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStaticIpProps>
- Enclosing interface:
CfnStaticIpProps
@Stability(Stable)
public static final class CfnStaticIpProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStaticIpProps>
A builder for
CfnStaticIpProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionattachedTo
(String attachedTo) Sets the value ofCfnStaticIpProps.getAttachedTo()
build()
Builds the configured instance.staticIpName
(String staticIpName) Sets the value ofCfnStaticIpProps.getStaticIpName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
staticIpName
Sets the value ofCfnStaticIpProps.getStaticIpName()
- Parameters:
staticIpName
- The name of the static IP. This parameter is required.- Returns:
this
-
attachedTo
Sets the value ofCfnStaticIpProps.getAttachedTo()
- Parameters:
attachedTo
- The instance that the static IP is attached to.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnStaticIpProps>
- Returns:
- a new instance of
CfnStaticIpProps
- Throws:
NullPointerException
- if any required attribute was not provided
-