public static final class CreateImagePipelineRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateImagePipelineRequest.Builder |
addAccount(List<Long> addAccount)
The IDs of Alibaba Cloud accounts with which you want to share the image that is created based on the image template.
|
CreateImagePipelineRequest.Builder |
baseImage(String baseImage)
The source image.
|
CreateImagePipelineRequest.Builder |
baseImageType(String baseImageType)
The type of the source image.
|
CreateImagePipelineRequest |
build() |
CreateImagePipelineRequest.Builder |
buildContent(String buildContent)
The content of the image template.
|
CreateImagePipelineRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
CreateImagePipelineRequest.Builder |
deleteInstanceOnFailure(Boolean deleteInstanceOnFailure)
Specifies whether to release the intermediate instance if the image cannot be created.
|
CreateImagePipelineRequest.Builder |
description(String description)
The description of the image template.
|
CreateImagePipelineRequest.Builder |
imageName(String imageName)
The prefix of the image name.
|
CreateImagePipelineRequest.Builder |
instanceType(String instanceType)
The instance type.
|
CreateImagePipelineRequest.Builder |
internetMaxBandwidthOut(Integer internetMaxBandwidthOut)
The size of the outbound public bandwidth of the intermediate instance.
|
CreateImagePipelineRequest.Builder |
name(String name)
The name of the image template.
|
CreateImagePipelineRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
CreateImagePipelineRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
CreateImagePipelineRequest.Builder |
regionId(String regionId)
The region ID of the image template that you want to create.
|
CreateImagePipelineRequest.Builder |
resourceGroupId(String resourceGroupId)
The ID of the resource group.
|
CreateImagePipelineRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
CreateImagePipelineRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
CreateImagePipelineRequest.Builder |
sourceRegionId(String sourceRegionId)
SourceRegionId.
|
CreateImagePipelineRequest.Builder |
systemDiskSize(Integer systemDiskSize)
The size of the system disk of the intermediate instance.
|
CreateImagePipelineRequest.Builder |
tag(List<CreateImagePipelineRequest.Tag> tag)
The tags that you want to add to the image template.
|
CreateImagePipelineRequest.Builder |
toRegionId(List<String> toRegionId)
The IDs of regions to which you want to distribute the image that is created based on the image template.
|
CreateImagePipelineRequest.Builder |
vSwitchId(String vSwitchId)
The ID of the vSwitch.
|
public CreateImagePipelineRequest.Builder sourceRegionId(String sourceRegionId)
public CreateImagePipelineRequest.Builder addAccount(List<Long> addAccount)
public CreateImagePipelineRequest.Builder baseImage(String baseImage)
* If you set the `BaseImageType` parameter to IMAGE, set the BaseImage parameter to the ID of a custom image. * If you set the `BaseImageType` parameter to IMAGE_FAMILY, set the BaseImage parameter to the name of an image family.
public CreateImagePipelineRequest.Builder baseImageType(String baseImageType)
* IMAGE: image * IMAGE_FAMILY: image family
public CreateImagePipelineRequest.Builder buildContent(String buildContent)
public CreateImagePipelineRequest.Builder clientToken(String clientToken)
public CreateImagePipelineRequest.Builder deleteInstanceOnFailure(Boolean deleteInstanceOnFailure)
* true: releases the intermediate instance if the image cannot be created. * false: does not release the intermediate instance if the image cannot be created. Default value: true. > If the intermediate instance cannot be started, the instance is automatically released.
public CreateImagePipelineRequest.Builder description(String description)
public CreateImagePipelineRequest.Builder imageName(String imageName)
The system generates the final image name that consists of the specified prefix and the ID of the build task (`ExecutionId`) in the `{ImageName}_{ExecutionId}` format.
public CreateImagePipelineRequest.Builder instanceType(String instanceType)
If you do not specify this parameter, an instance type that provides the fewest vCPUs and memory resources is selected. This configuration is subject to the resource availability of instance types. For example, the ecs.g6.large instance type is selected. If the available ecs.g6.large resources are insufficient, the ecs.g6.xlarge instance type is selected.
public CreateImagePipelineRequest.Builder internetMaxBandwidthOut(Integer internetMaxBandwidthOut)
Default value: 0.
public CreateImagePipelineRequest.Builder name(String name)
> If you do not specify the `Name` parameter, the value of the `ImagePipelineId` return parameter is used.
public CreateImagePipelineRequest.Builder ownerAccount(String ownerAccount)
public CreateImagePipelineRequest.Builder ownerId(Long ownerId)
public CreateImagePipelineRequest.Builder regionId(String regionId)
public CreateImagePipelineRequest.Builder resourceGroupId(String resourceGroupId)
public CreateImagePipelineRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateImagePipelineRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateImagePipelineRequest.Builder systemDiskSize(Integer systemDiskSize)
Default value: 40.
public CreateImagePipelineRequest.Builder tag(List<CreateImagePipelineRequest.Tag> tag)
public CreateImagePipelineRequest.Builder toRegionId(List<String> toRegionId)
If you do not specify this parameter, the image is created only in the current region.
public CreateImagePipelineRequest.Builder vSwitchId(String vSwitchId)
If you do not specify this parameter, a new virtual private cloud (VPC) and vSwitch are created by default. Make sure that the VPC quota of your account is sufficient. For more information, see [Limits](~~27750~~).
public CreateImagePipelineRequest build()
Copyright © 2023. All rights reserved.