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 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 the Server.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).

      Parameters:
      server - a consumer that will call methods on Server.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

      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

      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 the UserData.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).

      Parameters:
      userData - a consumer that will call methods on UserData.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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 the 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).

      Parameters:
      configureScript - a consumer that will call methods on S3Location.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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:
    • 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: