Interface ServerLaunchConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ServerLaunchConfiguration.Builder,
,ServerLaunchConfiguration> SdkBuilder<ServerLaunchConfiguration.Builder,
,ServerLaunchConfiguration> SdkPojo
- Enclosing class:
ServerLaunchConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionassociatePublicIpAddress
(Boolean associatePublicIpAddress) Indicates whether a publicly accessible IP address is created when launching the server.configureScript
(Consumer<S3Location.Builder> configureScript) Sets the value of the ConfigureScript property for this object.configureScript
(S3Location configureScript) Sets the value of the ConfigureScript property for this object.configureScriptType
(String configureScriptType) The type of configuration script.configureScriptType
(ScriptType configureScriptType) The type of configuration script.ec2KeyName
(String ec2KeyName) The name of the Amazon EC2 SSH key to be used for connecting to the launched server.iamInstanceProfileName
(String iamInstanceProfileName) The name of the IAM instance profile.instanceType
(String instanceType) The instance type to use when launching the server.The logical ID of the server in the CloudFormation template.securityGroup
(String securityGroup) The ID of the security group that applies to the launched server.server
(Consumer<Server.Builder> server) The ID of the server with which the launch configuration is associated.The ID of the server with which the launch configuration is associated.The ID of the subnet the server should be launched into.userData
(Consumer<UserData.Builder> userData) Location of the user-data script to be executed when launching the server.Location of the user-data script to be executed when launching the server.The ID of the VPC into which the server should be launched.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
server
The ID of the server with which the launch configuration is associated.
- Parameters:
server
- The ID of the server with which the launch configuration is associated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
server
The ID of the server with which the launch configuration is associated.
This is a convenience method that creates an instance of theServer.Builder
avoiding the need to create one manually viaServer.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toserver(Server)
.- Parameters:
server
- a consumer that will call methods onServer.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
logicalId
The logical ID of the server in the CloudFormation template.
- Parameters:
logicalId
- The logical ID of the server in the CloudFormation template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpc
The ID of the VPC into which the server should be launched.
- Parameters:
vpc
- The ID of the VPC into which the server should be launched.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnet
The ID of the subnet the server should be launched into.
- Parameters:
subnet
- The ID of the subnet the server should be launched into.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroup
The ID of the security group that applies to the launched server.
- Parameters:
securityGroup
- The ID of the security group that applies to the launched server.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ec2KeyName
The name of the Amazon EC2 SSH key to be used for connecting to the launched server.
- Parameters:
ec2KeyName
- The name of the Amazon EC2 SSH key to be used for connecting to the launched server.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userData
Location of the user-data script to be executed when launching the server.
- Parameters:
userData
- Location of the user-data script to be executed when launching the server.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userData
Location of the user-data script to be executed when launching the server.
This is a convenience method that creates an instance of theUserData.Builder
avoiding the need to create one manually viaUserData.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed touserData(UserData)
.- Parameters:
userData
- a consumer that will call methods onUserData.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceType
The instance type to use when launching the server.
- Parameters:
instanceType
- The instance type to use when launching the server.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
associatePublicIpAddress
Indicates whether a publicly accessible IP address is created when launching the server.
- Parameters:
associatePublicIpAddress
- Indicates whether a publicly accessible IP address is created when launching the server.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iamInstanceProfileName
The name of the IAM instance profile.
- Parameters:
iamInstanceProfileName
- The name of the IAM instance profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configureScript
Sets the value of the ConfigureScript property for this object.- Parameters:
configureScript
- The new value for the ConfigureScript property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configureScript
default ServerLaunchConfiguration.Builder configureScript(Consumer<S3Location.Builder> configureScript) Sets the value of the ConfigureScript property for this object. This is a convenience method that creates an instance of theS3Location.Builder
avoiding the need to create one manually viaS3Location.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconfigureScript(S3Location)
.- Parameters:
configureScript
- a consumer that will call methods onS3Location.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
configureScriptType
The type of configuration script.
- Parameters:
configureScriptType
- The type of configuration script.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
configureScriptType
The type of configuration script.
- Parameters:
configureScriptType
- The type of configuration script.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-