public static interface ServerLaunchConfiguration.Builder extends SdkPojo, CopyableBuilder<ServerLaunchConfiguration.Builder,ServerLaunchConfiguration>
Modifier and Type | Method and Description |
---|---|
ServerLaunchConfiguration.Builder |
associatePublicIpAddress(Boolean associatePublicIpAddress)
If true, a publicly accessible IP address is created when launching the server.
|
ServerLaunchConfiguration.Builder |
ec2KeyName(String ec2KeyName)
Name of the EC2 SSH Key to be used for connecting to the launched server.
|
ServerLaunchConfiguration.Builder |
instanceType(String instanceType)
Instance type to be used for launching the server.
|
ServerLaunchConfiguration.Builder |
logicalId(String logicalId)
Logical ID of the server in the Amazon CloudFormation template.
|
ServerLaunchConfiguration.Builder |
securityGroup(String securityGroup)
Identifier of the security group that applies to the launched server.
|
default ServerLaunchConfiguration.Builder |
server(Consumer<Server.Builder> server)
Identifier of the server the launch configuration is associated with.
|
ServerLaunchConfiguration.Builder |
server(Server server)
Identifier of the server the launch configuration is associated with.
|
ServerLaunchConfiguration.Builder |
subnet(String subnet)
Identifier of the subnet the server should be launched into.
|
default ServerLaunchConfiguration.Builder |
userData(Consumer<UserData.Builder> userData)
Location of the user-data script to be executed when launching the server.
|
ServerLaunchConfiguration.Builder |
userData(UserData userData)
Location of the user-data script to be executed when launching the server.
|
ServerLaunchConfiguration.Builder |
vpc(String vpc)
Identifier of the VPC the server should be launched into.
|
copy
applyMutation, build
ServerLaunchConfiguration.Builder server(Server server)
Identifier of the server the launch configuration is associated with.
server
- Identifier of the server the launch configuration is associated with.default ServerLaunchConfiguration.Builder server(Consumer<Server.Builder> server)
Identifier of the server the launch configuration is associated with.
This is a convenience that creates an instance of theServer.Builder
avoiding the need to create one
manually via Server.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to server(Server)
.server
- a consumer that will call methods on Server.Builder
server(Server)
ServerLaunchConfiguration.Builder logicalId(String logicalId)
Logical ID of the server in the Amazon CloudFormation template.
logicalId
- Logical ID of the server in the Amazon CloudFormation template.ServerLaunchConfiguration.Builder vpc(String vpc)
Identifier of the VPC the server should be launched into.
vpc
- Identifier of the VPC the server should be launched into.ServerLaunchConfiguration.Builder subnet(String subnet)
Identifier of the subnet the server should be launched into.
subnet
- Identifier of the subnet the server should be launched into.ServerLaunchConfiguration.Builder securityGroup(String securityGroup)
Identifier of the security group that applies to the launched server.
securityGroup
- Identifier of the security group that applies to the launched server.ServerLaunchConfiguration.Builder ec2KeyName(String ec2KeyName)
Name of the EC2 SSH Key to be used for connecting to the launched server.
ec2KeyName
- Name of the EC2 SSH Key to be used for connecting to the launched server.ServerLaunchConfiguration.Builder userData(UserData userData)
Location of the user-data script to be executed when launching the server.
userData
- Location of the user-data script to be executed when launching the server.default ServerLaunchConfiguration.Builder userData(Consumer<UserData.Builder> userData)
Location of the user-data script to be executed when launching the server.
This is a convenience that creates an instance of theUserData.Builder
avoiding the need to create
one manually via UserData.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to userData(UserData)
.userData
- a consumer that will call methods on UserData.Builder
userData(UserData)
ServerLaunchConfiguration.Builder instanceType(String instanceType)
Instance type to be used for launching the server.
instanceType
- Instance type to be used for launching the server.ServerLaunchConfiguration.Builder associatePublicIpAddress(Boolean associatePublicIpAddress)
If true, a publicly accessible IP address is created when launching the server.
associatePublicIpAddress
- If true, a publicly accessible IP address is created when launching the server.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.