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