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