Interface CreateLaunchTemplateVersionRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<CreateLaunchTemplateVersionRequest.Builder,CreateLaunchTemplateVersionRequest>, Ec2Request.Builder, SdkBuilder<CreateLaunchTemplateVersionRequest.Builder,CreateLaunchTemplateVersionRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
CreateLaunchTemplateVersionRequest

public static interface CreateLaunchTemplateVersionRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<CreateLaunchTemplateVersionRequest.Builder,CreateLaunchTemplateVersionRequest>
  • Method Details

    • 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

      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.
    • launchTemplateId

      CreateLaunchTemplateVersionRequest.Builder launchTemplateId(String launchTemplateId)

      The ID of the launch template.

      You must specify either the launch template ID or the launch template name, but not both.

      Parameters:
      launchTemplateId - The ID of the launch template.

      You must specify either the launch template ID or the launch template name, but not both.

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

      CreateLaunchTemplateVersionRequest.Builder launchTemplateName(String launchTemplateName)

      The name of the launch template.

      You must specify either the launch template ID or the launch template name, but not both.

      Parameters:
      launchTemplateName - The name of the launch template.

      You must specify either the launch template ID or the launch template name, but not both.

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

      CreateLaunchTemplateVersionRequest.Builder sourceVersion(String sourceVersion)

      The version of the launch template on which to base the new version. Snapshots applied to the block device mapping are ignored when creating a new version unless they are explicitly included.

      If you specify this parameter, the new version inherits the launch parameters from the source version. If you specify additional launch parameters for the new version, they overwrite any corresponding launch parameters inherited from the source version.

      If you omit this parameter, the new version contains only the launch parameters that you specify for the new version.

      Parameters:
      sourceVersion - The version of the launch template on which to base the new version. Snapshots applied to the block device mapping are ignored when creating a new version unless they are explicitly included.

      If you specify this parameter, the new version inherits the launch parameters from the source version. If you specify additional launch parameters for the new version, they overwrite any corresponding launch parameters inherited from the source version.

      If you omit this parameter, the new version contains only the launch parameters that you specify for the new version.

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

      CreateLaunchTemplateVersionRequest.Builder versionDescription(String versionDescription)

      A description for the version of the launch template.

      Parameters:
      versionDescription - A description for the version of the launch template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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.
    • launchTemplateData

      The information for the launch template.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to launchTemplateData(RequestLaunchTemplateData).

      Parameters:
      launchTemplateData - a consumer that will call methods on RequestLaunchTemplateData.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • resolveAlias

      If true, and if a Systems Manager parameter is specified for ImageId, the AMI ID is displayed in the response for imageID. For more information, see Use a Systems Manager parameter instead of an AMI ID in the Amazon Elastic Compute Cloud User Guide.

      Default: false

      Parameters:
      resolveAlias - If true, and if a Systems Manager parameter is specified for ImageId, the AMI ID is displayed in the response for imageID. For more information, see Use a Systems Manager parameter instead of an AMI ID in the Amazon Elastic Compute Cloud User Guide.

      Default: false

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

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.