Class EIPReference.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.EIPReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EIPReference>
- Enclosing interface:
EIPReference
@Stability(Stable)
public static final class EIPReference.Builder
extends Object
implements software.amazon.jsii.Builder<EIPReference>
A builder for
EIPReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocationId
(String allocationId) Sets the value ofEIPReference.getAllocationId()
build()
Builds the configured instance.Sets the value ofEIPReference.getPublicIp()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allocationId
Sets the value ofEIPReference.getAllocationId()
- Parameters:
allocationId
- The AllocationId of the EIP resource. This parameter is required.- Returns:
this
-
publicIp
Sets the value ofEIPReference.getPublicIp()
- Parameters:
publicIp
- The PublicIp of the EIP resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EIPReference>
- Returns:
- a new instance of
EIPReference
- Throws:
NullPointerException
- if any required attribute was not provided
-