public static final class Ec2EnvironmentProps.Builder
extends java.lang.Object
Ec2EnvironmentProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Ec2EnvironmentProps |
build()
Builds the configured instance.
|
Ec2EnvironmentProps.Builder |
clonedRepositories(java.util.List<? extends CloneRepository> clonedRepositories)
Sets the value of
Ec2EnvironmentProps.getClonedRepositories() |
Ec2EnvironmentProps.Builder |
description(java.lang.String description)
Sets the value of
Ec2EnvironmentProps.getDescription() |
Ec2EnvironmentProps.Builder |
ec2EnvironmentName(java.lang.String ec2EnvironmentName)
Sets the value of
Ec2EnvironmentProps.getEc2EnvironmentName() |
Ec2EnvironmentProps.Builder |
instanceType(InstanceType instanceType)
Sets the value of
Ec2EnvironmentProps.getInstanceType() |
Ec2EnvironmentProps.Builder |
subnetSelection(SubnetSelection subnetSelection)
Sets the value of
Ec2EnvironmentProps.getSubnetSelection() |
Ec2EnvironmentProps.Builder |
vpc(IVpc vpc)
Sets the value of
Ec2EnvironmentProps.getVpc() |
public Ec2EnvironmentProps.Builder vpc(IVpc vpc)
Ec2EnvironmentProps.getVpc()
vpc
- The VPC that AWS Cloud9 will use to communicate with the Amazon Elastic Compute Cloud (Amazon EC2) instance. This parameter is required.this
public Ec2EnvironmentProps.Builder clonedRepositories(java.util.List<? extends CloneRepository> clonedRepositories)
Ec2EnvironmentProps.getClonedRepositories()
clonedRepositories
- The AWS CodeCommit repository to be cloned.this
public Ec2EnvironmentProps.Builder description(java.lang.String description)
Ec2EnvironmentProps.getDescription()
description
- Description of the environment.this
public Ec2EnvironmentProps.Builder ec2EnvironmentName(java.lang.String ec2EnvironmentName)
Ec2EnvironmentProps.getEc2EnvironmentName()
ec2EnvironmentName
- Name of the environment.this
public Ec2EnvironmentProps.Builder instanceType(InstanceType instanceType)
Ec2EnvironmentProps.getInstanceType()
instanceType
- The type of instance to connect to the environment.this
public Ec2EnvironmentProps.Builder subnetSelection(SubnetSelection subnetSelection)
Ec2EnvironmentProps.getSubnetSelection()
subnetSelection
- The subnetSelection of the VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance.this
public Ec2EnvironmentProps build()
Ec2EnvironmentProps
java.lang.NullPointerException
- if any required attribute was not provided