public static final class Ec2EnvironmentProps.Builder
extends java.lang.Object
Ec2EnvironmentProps
Constructor and Description |
---|
Builder() |
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 connectionType(ConnectionType connectionType)
Ec2EnvironmentProps.getConnectionType()
connectionType
- The connection type used for connecting to an Amazon EC2 environment.
Valid values are: CONNECT_SSH (default) and CONNECT_SSM (connected through AWS Systems Manager)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