Interface CreateLaunchTemplateRequest.Builder

    • Method Detail

      • dryRun

        CreateLaunchTemplateRequest.Builder dryRun​(Boolean dryRun)

        Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

        Parameters:
        dryRun - Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • clientToken

        CreateLaunchTemplateRequest.Builder clientToken​(String clientToken)

        Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.

        Constraint: Maximum 128 ASCII characters.

        Parameters:
        clientToken - Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.

        Constraint: Maximum 128 ASCII characters.

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

        CreateLaunchTemplateRequest.Builder launchTemplateName​(String launchTemplateName)

        A name for the launch template.

        Parameters:
        launchTemplateName - A name for the launch template.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • versionDescription

        CreateLaunchTemplateRequest.Builder versionDescription​(String versionDescription)

        A description for the first version of the launch template.

        Parameters:
        versionDescription - A description for the first version of the launch template.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • launchTemplateData

        CreateLaunchTemplateRequest.Builder launchTemplateData​(RequestLaunchTemplateData launchTemplateData)

        The information for the launch template.

        Parameters:
        launchTemplateData - The information for the launch template.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tagSpecifications

        CreateLaunchTemplateRequest.Builder tagSpecifications​(Collection<TagSpecification> tagSpecifications)

        The tags to apply to the launch template on creation. To tag the launch template, the resource type must be launch-template.

        To specify the tags for the resources that are created when an instance is launched, you must use the TagSpecifications parameter in the launch template data structure.

        Parameters:
        tagSpecifications - The tags to apply to the launch template on creation. To tag the launch template, the resource type must be launch-template.

        To specify the tags for the resources that are created when an instance is launched, you must use the TagSpecifications parameter in the launch template data structure.

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

        CreateLaunchTemplateRequest.Builder tagSpecifications​(TagSpecification... tagSpecifications)

        The tags to apply to the launch template on creation. To tag the launch template, the resource type must be launch-template.

        To specify the tags for the resources that are created when an instance is launched, you must use the TagSpecifications parameter in the launch template data structure.

        Parameters:
        tagSpecifications - The tags to apply to the launch template on creation. To tag the launch template, the resource type must be launch-template.

        To specify the tags for the resources that are created when an instance is launched, you must use the TagSpecifications parameter in the launch template data structure.

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

        CreateLaunchTemplateRequest.Builder tagSpecifications​(Consumer<TagSpecification.Builder>... tagSpecifications)

        The tags to apply to the launch template on creation. To tag the launch template, the resource type must be launch-template.

        To specify the tags for the resources that are created when an instance is launched, you must use the TagSpecifications parameter in the launch template data structure.

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

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

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