public static interface ServerLaunchConfiguration.Builder extends SdkPojo, CopyableBuilder<ServerLaunchConfiguration.Builder,ServerLaunchConfiguration>
Modifier and Type | Method and Description |
---|---|
ServerLaunchConfiguration.Builder |
associatePublicIpAddress(Boolean associatePublicIpAddress)
Indicates whether a publicly accessible IP address is created when launching the server.
|
default ServerLaunchConfiguration.Builder |
configureScript(Consumer<S3Location.Builder> configureScript)
Sets the value of the ConfigureScript property for this object.
|
ServerLaunchConfiguration.Builder |
configureScript(S3Location configureScript)
Sets the value of the ConfigureScript property for this object.
|
ServerLaunchConfiguration.Builder |
configureScriptType(ScriptType configureScriptType)
The type of configuration script.
|
ServerLaunchConfiguration.Builder |
configureScriptType(String configureScriptType)
The type of configuration script.
|
ServerLaunchConfiguration.Builder |
ec2KeyName(String ec2KeyName)
The name of the Amazon EC2 SSH key to be used for connecting to the launched server.
|
ServerLaunchConfiguration.Builder |
iamInstanceProfileName(String iamInstanceProfileName)
The name of the IAM instance profile.
|
ServerLaunchConfiguration.Builder |
instanceType(String instanceType)
The instance type to use when launching the server.
|
ServerLaunchConfiguration.Builder |
logicalId(String logicalId)
The logical ID of the server in the AWS CloudFormation template.
|
ServerLaunchConfiguration.Builder |
securityGroup(String securityGroup)
The ID of the security group that applies to the launched server.
|
default ServerLaunchConfiguration.Builder |
server(Consumer<Server.Builder> server)
The ID of the server with which the launch configuration is associated.
|
ServerLaunchConfiguration.Builder |
server(Server server)
The ID of the server with which the launch configuration is associated.
|
ServerLaunchConfiguration.Builder |
subnet(String subnet)
The ID 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)
The ID of the VPC into which the server should be launched.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
ServerLaunchConfiguration.Builder server(Server server)
The ID of the server with which the launch configuration is associated.
server
- The ID of the server with which the launch configuration is associated.default ServerLaunchConfiguration.Builder server(Consumer<Server.Builder> server)
The ID of the server with which the launch configuration is associated.
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)
The logical ID of the server in the AWS CloudFormation template.
logicalId
- The logical ID of the server in the AWS CloudFormation template.ServerLaunchConfiguration.Builder vpc(String vpc)
The ID of the VPC into which the server should be launched.
vpc
- The ID of the VPC into which the server should be launched.ServerLaunchConfiguration.Builder subnet(String subnet)
The ID of the subnet the server should be launched into.
subnet
- The ID of the subnet the server should be launched into.ServerLaunchConfiguration.Builder securityGroup(String securityGroup)
The ID of the security group that applies to the launched server.
securityGroup
- The ID of the security group that applies to the launched server.ServerLaunchConfiguration.Builder ec2KeyName(String ec2KeyName)
The name of the Amazon EC2 SSH key to be used for connecting to the launched server.
ec2KeyName
- The name of the Amazon 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)
The instance type to use when launching the server.
instanceType
- The instance type to use when launching the server.ServerLaunchConfiguration.Builder associatePublicIpAddress(Boolean associatePublicIpAddress)
Indicates whether a publicly accessible IP address is created when launching the server.
associatePublicIpAddress
- Indicates whether a publicly accessible IP address is created when launching the server.ServerLaunchConfiguration.Builder iamInstanceProfileName(String iamInstanceProfileName)
The name of the IAM instance profile.
iamInstanceProfileName
- The name of the IAM instance profile.ServerLaunchConfiguration.Builder configureScript(S3Location configureScript)
configureScript
- The new value for the ConfigureScript property for this object.default ServerLaunchConfiguration.Builder configureScript(Consumer<S3Location.Builder> configureScript)
S3Location.Builder
avoiding the need to create
one manually via S3Location.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to configureScript(S3Location)
.configureScript
- a consumer that will call methods on S3Location.Builder
configureScript(S3Location)
ServerLaunchConfiguration.Builder configureScriptType(String configureScriptType)
The type of configuration script.
configureScriptType
- The type of configuration script.ScriptType
,
ScriptType
ServerLaunchConfiguration.Builder configureScriptType(ScriptType configureScriptType)
The type of configuration script.
configureScriptType
- The type of configuration script.ScriptType
,
ScriptType