public class CreateSecurityGroupRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
CreateSecurityGroupRequest.CreateSecurityGroupRequestTag |
限定符和类型 | 字段和说明 |
---|---|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
String |
description
The description of the security group.
|
String |
ownerAccount |
Long |
ownerId |
String |
regionId
The region ID of the security group.
|
String |
resourceGroupId
The ID of the resource group to which the security group belongs.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
securityGroupName
The name of the security group.
|
String |
securityGroupType
The type of the security group.
|
Boolean |
serviceManaged
This parameter is not publicly available.
|
List<CreateSecurityGroupRequest.CreateSecurityGroupRequestTag> |
tag
The tags to add to the security group.
|
String |
vpcId
The ID of the VPC in which you want to create the security group.
|
构造器和说明 |
---|
CreateSecurityGroupRequest() |
@NameInMap(value="ClientToken") public String clientToken
The client token that is used to ensure the idempotence 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="Description") public String description
The description of the security group. The description must be 2 to 256 characters in length. It cannot start with http://
or https://
.
By default, this parameter is left empty.
example:testDescription
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="RegionId") public String regionId
The region ID of the security group. 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 to which the security group belongs.
example:rg-bp67acfmxazb4p****
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="SecurityGroupName") public String securityGroupName
The name of the security group. 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 Unicode characters under the Decimal Number category and the categories whose names contain Letter. The name can also contain colons (:), underscores (_), periods (.), and hyphens (-).
testSecurityGroupName
@NameInMap(value="SecurityGroupType") public String securityGroupType
The type of the security group. Valid values:
enterprise
@NameInMap(value="ServiceManaged") public Boolean serviceManaged
This parameter is not publicly available.
example:false
@NameInMap(value="Tag") public List<CreateSecurityGroupRequest.CreateSecurityGroupRequestTag> tag
The tags to add to the security group.
@NameInMap(value="VpcId") public String vpcId
The ID of the VPC in which you want to create the security group.
example:The VpcId parameter is required only if you want to create security groups of the VPC type. In regions that support the classic network, you can create security groups of the classic network type without the need to specify the VpcId parameter.
vpc-bp1opxu1zkhn00gzv****
public static CreateSecurityGroupRequest build(Map<String,?> map) throws Exception
Exception
public CreateSecurityGroupRequest setClientToken(String clientToken)
public String getClientToken()
public CreateSecurityGroupRequest setDescription(String description)
public String getDescription()
public CreateSecurityGroupRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public CreateSecurityGroupRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public CreateSecurityGroupRequest setRegionId(String regionId)
public String getRegionId()
public CreateSecurityGroupRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public CreateSecurityGroupRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public CreateSecurityGroupRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public CreateSecurityGroupRequest setSecurityGroupName(String securityGroupName)
public String getSecurityGroupName()
public CreateSecurityGroupRequest setSecurityGroupType(String securityGroupType)
public String getSecurityGroupType()
public CreateSecurityGroupRequest setServiceManaged(Boolean serviceManaged)
public Boolean getServiceManaged()
public CreateSecurityGroupRequest setTag(List<CreateSecurityGroupRequest.CreateSecurityGroupRequestTag> tag)
public List<CreateSecurityGroupRequest.CreateSecurityGroupRequestTag> getTag()
public CreateSecurityGroupRequest setVpcId(String vpcId)
public String getVpcId()
Copyright © 2024. All rights reserved.