Class CfnStaticIp.Builder

java.lang.Object
software.amazon.awscdk.services.lightsail.CfnStaticIp.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStaticIp>
Enclosing class:
CfnStaticIp

@Stability(Stable) public static final class CfnStaticIp.Builder extends Object implements software.amazon.jsii.Builder<CfnStaticIp>
A fluent builder for CfnStaticIp.
  • Method Details

    • create

      @Stability(Stable) public static CfnStaticIp.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnStaticIp.Builder.
    • staticIpName

      @Stability(Stable) public CfnStaticIp.Builder staticIpName(String staticIpName)
      The name of the static IP.

      Parameters:
      staticIpName - The name of the static IP. This parameter is required.
      Returns:
      this
    • attachedTo

      @Stability(Stable) public CfnStaticIp.Builder attachedTo(String attachedTo)
      The instance that the static IP is attached to.

      Parameters:
      attachedTo - The instance that the static IP is attached to. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnStaticIp build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnStaticIp>
      Returns:
      a newly built instance of CfnStaticIp.