Interface ServerLaunchConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ServerLaunchConfiguration.Builder,ServerLaunchConfiguration>,SdkBuilder<ServerLaunchConfiguration.Builder,ServerLaunchConfiguration>,SdkPojo
- Enclosing class:
- ServerLaunchConfiguration
public static interface ServerLaunchConfiguration.Builder extends SdkPojo, CopyableBuilder<ServerLaunchConfiguration.Builder,ServerLaunchConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ServerLaunchConfiguration.BuilderassociatePublicIpAddress(Boolean associatePublicIpAddress)Indicates whether a publicly accessible IP address is created when launching the server.default ServerLaunchConfiguration.BuilderconfigureScript(Consumer<S3Location.Builder> configureScript)Sets the value of the ConfigureScript property for this object.ServerLaunchConfiguration.BuilderconfigureScript(S3Location configureScript)Sets the value of the ConfigureScript property for this object.ServerLaunchConfiguration.BuilderconfigureScriptType(String configureScriptType)The type of configuration script.ServerLaunchConfiguration.BuilderconfigureScriptType(ScriptType configureScriptType)The type of configuration script.ServerLaunchConfiguration.Builderec2KeyName(String ec2KeyName)The name of the Amazon EC2 SSH key to be used for connecting to the launched server.ServerLaunchConfiguration.BuilderiamInstanceProfileName(String iamInstanceProfileName)The name of the IAM instance profile.ServerLaunchConfiguration.BuilderinstanceType(String instanceType)The instance type to use when launching the server.ServerLaunchConfiguration.BuilderlogicalId(String logicalId)The logical ID of the server in the CloudFormation template.ServerLaunchConfiguration.BuildersecurityGroup(String securityGroup)The ID of the security group that applies to the launched server.default ServerLaunchConfiguration.Builderserver(Consumer<Server.Builder> server)The ID of the server with which the launch configuration is associated.ServerLaunchConfiguration.Builderserver(Server server)The ID of the server with which the launch configuration is associated.ServerLaunchConfiguration.Buildersubnet(String subnet)The ID of the subnet the server should be launched into.default ServerLaunchConfiguration.BuilderuserData(Consumer<UserData.Builder> userData)Location of the user-data script to be executed when launching the server.ServerLaunchConfiguration.BuilderuserData(UserData userData)Location of the user-data script to be executed when launching the server.ServerLaunchConfiguration.Buildervpc(String vpc)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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
server
ServerLaunchConfiguration.Builder server(Server 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
default ServerLaunchConfiguration.Builder server(Consumer<Server.Builder> server)
The ID of the server with which the launch configuration is associated.
This is a convenience method that creates an instance of theServer.Builderavoiding the need to create one manually viaServer.builder().When the
Consumercompletes,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:
server(Server)
-
logicalId
ServerLaunchConfiguration.Builder logicalId(String 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
ServerLaunchConfiguration.Builder vpc(String 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
ServerLaunchConfiguration.Builder subnet(String 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
ServerLaunchConfiguration.Builder securityGroup(String 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
ServerLaunchConfiguration.Builder ec2KeyName(String 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
ServerLaunchConfiguration.Builder userData(UserData 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
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 method that creates an instance of theUserData.Builderavoiding the need to create one manually viaUserData.builder().When the
Consumercompletes,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:
userData(UserData)
-
instanceType
ServerLaunchConfiguration.Builder instanceType(String 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
ServerLaunchConfiguration.Builder associatePublicIpAddress(Boolean 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
ServerLaunchConfiguration.Builder iamInstanceProfileName(String 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
ServerLaunchConfiguration.Builder configureScript(S3Location 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.Builderavoiding the need to create one manually viaS3Location.builder().When the
Consumercompletes,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:
configureScript(S3Location)
-
configureScriptType
ServerLaunchConfiguration.Builder configureScriptType(String 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:
ScriptType,ScriptType
-
configureScriptType
ServerLaunchConfiguration.Builder configureScriptType(ScriptType 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:
ScriptType,ScriptType
-
-