Interface RequestSpotLaunchSpecification.Builder

    • Method Detail

      • securityGroupIds

        RequestSpotLaunchSpecification.Builder securityGroupIds​(Collection<String> securityGroupIds)

        The IDs of the security groups.

        Parameters:
        securityGroupIds - The IDs of the security groups.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • securityGroupIds

        RequestSpotLaunchSpecification.Builder securityGroupIds​(String... securityGroupIds)

        The IDs of the security groups.

        Parameters:
        securityGroupIds - The IDs of the security groups.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • securityGroups

        RequestSpotLaunchSpecification.Builder securityGroups​(String... securityGroups)

        Not supported.

        Parameters:
        securityGroups - Not supported.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • addressingType

        RequestSpotLaunchSpecification.Builder addressingType​(String addressingType)

        Deprecated.

        Parameters:
        addressingType - Deprecated.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • blockDeviceMappings

        RequestSpotLaunchSpecification.Builder blockDeviceMappings​(Collection<BlockDeviceMapping> blockDeviceMappings)

        The block device mapping entries. You can't specify both a snapshot ID and an encryption value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume encryption status.

        Parameters:
        blockDeviceMappings - The block device mapping entries. You can't specify both a snapshot ID and an encryption value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume encryption status.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • blockDeviceMappings

        RequestSpotLaunchSpecification.Builder blockDeviceMappings​(BlockDeviceMapping... blockDeviceMappings)

        The block device mapping entries. You can't specify both a snapshot ID and an encryption value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume encryption status.

        Parameters:
        blockDeviceMappings - The block device mapping entries. You can't specify both a snapshot ID and an encryption value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume encryption status.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • blockDeviceMappings

        RequestSpotLaunchSpecification.Builder blockDeviceMappings​(Consumer<BlockDeviceMapping.Builder>... blockDeviceMappings)

        The block device mapping entries. You can't specify both a snapshot ID and an encryption value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume encryption status.

        This is a convenience method that creates an instance of the BlockDeviceMapping.Builder avoiding the need to create one manually via BlockDeviceMapping.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #blockDeviceMappings(List).

        Parameters:
        blockDeviceMappings - a consumer that will call methods on BlockDeviceMapping.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #blockDeviceMappings(java.util.Collection)
      • ebsOptimized

        RequestSpotLaunchSpecification.Builder ebsOptimized​(Boolean ebsOptimized)

        Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.

        Default: false

        Parameters:
        ebsOptimized - Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.

        Default: false

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • imageId

        RequestSpotLaunchSpecification.Builder imageId​(String imageId)

        The ID of the AMI.

        Parameters:
        imageId - The ID of the AMI.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • instanceType

        RequestSpotLaunchSpecification.Builder instanceType​(String instanceType)

        The instance type. Only one instance type can be specified.

        Parameters:
        instanceType - The instance type. Only one instance type can be specified.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        InstanceType, InstanceType
      • instanceType

        RequestSpotLaunchSpecification.Builder instanceType​(InstanceType instanceType)

        The instance type. Only one instance type can be specified.

        Parameters:
        instanceType - The instance type. Only one instance type can be specified.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        InstanceType, InstanceType
      • kernelId

        RequestSpotLaunchSpecification.Builder kernelId​(String kernelId)

        The ID of the kernel.

        Parameters:
        kernelId - The ID of the kernel.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • keyName

        RequestSpotLaunchSpecification.Builder keyName​(String keyName)

        The name of the key pair.

        Parameters:
        keyName - The name of the key pair.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • monitoring

        RequestSpotLaunchSpecification.Builder monitoring​(RunInstancesMonitoringEnabled monitoring)

        Indicates whether basic or detailed monitoring is enabled for the instance.

        Default: Disabled

        Parameters:
        monitoring - Indicates whether basic or detailed monitoring is enabled for the instance.

        Default: Disabled

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • networkInterfaces

        RequestSpotLaunchSpecification.Builder networkInterfaces​(Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)

        The network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface.

        Parameters:
        networkInterfaces - The network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • networkInterfaces

        RequestSpotLaunchSpecification.Builder networkInterfaces​(InstanceNetworkInterfaceSpecification... networkInterfaces)

        The network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface.

        Parameters:
        networkInterfaces - The network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • placement

        RequestSpotLaunchSpecification.Builder placement​(SpotPlacement placement)

        The placement information for the instance.

        Parameters:
        placement - The placement information for the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ramdiskId

        RequestSpotLaunchSpecification.Builder ramdiskId​(String ramdiskId)

        The ID of the RAM disk.

        Parameters:
        ramdiskId - The ID of the RAM disk.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • subnetId

        RequestSpotLaunchSpecification.Builder subnetId​(String subnetId)

        The ID of the subnet in which to launch the instance.

        Parameters:
        subnetId - The ID of the subnet in which to launch the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • userData

        RequestSpotLaunchSpecification.Builder userData​(String userData)

        The base64-encoded user data that instances use when starting up. User data is limited to 16 KB.

        Parameters:
        userData - The base64-encoded user data that instances use when starting up. User data is limited to 16 KB.
        Returns:
        Returns a reference to this object so that method calls can be chained together.