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 ID of the region in which to create the security group.
|
String |
resourceGroupId
The ID of the resource group to which to assign the security group.
|
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 unavailable.
|
List<CreateSecurityGroupRequest.CreateSecurityGroupRequestTag> |
tag
The tags to add to the security group.
|
String |
vpcId
The ID of the VPC in which 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 value, but you must make sure that the value is unique among different requests. The **ClientToken** value can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see [How to ensure idempotence](~~25693~~).
@NameInMap(value="Description") public String description
The description of the security group. The description must be 2 to 256 characters in length. The description can contain letters and cannot start with `http://` or `https://`.
This parameter is empty by default.
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="RegionId") public String regionId
The ID of the region in which to create the security group. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list.
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group to which to assign the security group.
@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. It must start with a letter and cannot start with `http://` or `https://`. The name can contain letters, digits, colons (:), underscores (\_), and hyphens (-). This parameter is empty by default.
@NameInMap(value="SecurityGroupType") public String securityGroupType
The type of the security group. Valid values:
* normal: basic security group.
* enterprise: advanced security group. For more information, see [Advanced security groups](~~120621~~).
@NameInMap(value="ServiceManaged") public Boolean serviceManaged
This parameter is unavailable.
@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 to create the security group.
> If the specified region supports the classic network, you can create security groups of the classic network type without specifying the VpcId parameter. If the specified region does not support the classic network, you must specify the VpcId parameter to create security groups of the VPC type.
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 © 2023. All rights reserved.