public class CreateImageComponentRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
CreateImageComponentRequest.CreateImageComponentRequestTag |
限定符和类型 | 字段和说明 |
---|---|
String |
clientToken
The client token that is used to ensure the idempotency of the request.
|
String |
componentType
The type of the image component.
|
String |
componentVersion
This parameter is in invitational preview and is not publicly available.
|
String |
content
The content of the image component.
|
String |
description
The description.
|
String |
name
The name of the image component.
|
String |
ownerAccount |
Long |
ownerId |
String |
regionId
The region ID.
|
String |
resourceGroupId
The ID of the resource group.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
systemType
The type of the operating system supported by the image component.
|
List<CreateImageComponentRequest.CreateImageComponentRequestTag> |
tag
The tags.
|
构造器和说明 |
---|
CreateImageComponentRequest() |
@NameInMap(value="ClientToken") public String clientToken
The client token that is used to ensure the idempotency of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence.
example:123e4567-e89b-12d3-a456-426655440000
@NameInMap(value="ComponentType") public String componentType
The type of the image component. Only image build components are supported. Set the value to Build.
Default value: Build.
example:Build
@NameInMap(value="ComponentVersion") public String componentVersion
example:This parameter is in invitational preview and is not publicly available.
null
@NameInMap(value="Content") public String content
The content of the image component. The content consists of up to 127 commands.
example:RUN yum update -y
@NameInMap(value="Description") public String description
The description. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
example:This is description.
@NameInMap(value="Name") public String name
The name of the image component. The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with http:// or https://. The name can contain letters, digits, colons (:), underscores (_), periods (.), and hyphens (-).
example:If you do not specify
Name
, the return value ofImageComponentId
is used.
testComponent
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="RegionId") public String regionId
The region ID. You can call the DescribeRegions operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group.
example:rg-bp67acfmxazb4p****
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="SystemType") public String systemType
The type of the operating system supported by the image component. Only Linux operating systems are supported. Set the value to Linux.
Default value: Linux.
example:Linux
@NameInMap(value="Tag") public List<CreateImageComponentRequest.CreateImageComponentRequestTag> tag
The tags.
public static CreateImageComponentRequest build(Map<String,?> map) throws Exception
Exception
public CreateImageComponentRequest setClientToken(String clientToken)
public String getClientToken()
public CreateImageComponentRequest setComponentType(String componentType)
public String getComponentType()
public CreateImageComponentRequest setComponentVersion(String componentVersion)
public String getComponentVersion()
public CreateImageComponentRequest setContent(String content)
public String getContent()
public CreateImageComponentRequest setDescription(String description)
public String getDescription()
public CreateImageComponentRequest setName(String name)
public String getName()
public CreateImageComponentRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public CreateImageComponentRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public CreateImageComponentRequest setRegionId(String regionId)
public String getRegionId()
public CreateImageComponentRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public CreateImageComponentRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public CreateImageComponentRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public CreateImageComponentRequest setSystemType(String systemType)
public String getSystemType()
public CreateImageComponentRequest setTag(List<CreateImageComponentRequest.CreateImageComponentRequestTag> tag)
public List<CreateImageComponentRequest.CreateImageComponentRequestTag> getTag()
Copyright © 2024. All rights reserved.