public class AuthorizeSecurityGroupRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
AuthorizeSecurityGroupRequest.AuthorizeSecurityGroupRequestPermissions |
限定符和类型 | 字段和说明 |
---|---|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
String |
description
This parameter is deprecated.
|
String |
destCidrIp
This parameter is deprecated.
|
String |
ipProtocol
This parameter is deprecated.
|
String |
ipv6DestCidrIp
This parameter is deprecated.
|
String |
ipv6SourceCidrIp
This parameter is deprecated.
|
String |
nicType
This parameter is deprecated.
|
String |
ownerAccount |
Long |
ownerId |
List<AuthorizeSecurityGroupRequest.AuthorizeSecurityGroupRequestPermissions> |
permissions
Security group rules.
|
String |
policy
This parameter is deprecated.
|
String |
portRange
This parameter is deprecated.
|
String |
priority
This parameter is deprecated.
|
String |
regionId
The region ID of the security group.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
securityGroupId
The ID of the security group.
|
String |
sourceCidrIp
This parameter is deprecated.
|
String |
sourceGroupId
This parameter is deprecated.
|
String |
sourceGroupOwnerAccount
This parameter is deprecated.
|
Long |
sourceGroupOwnerId
This parameter is deprecated.
|
String |
sourcePortRange
This parameter is deprecated.
|
String |
sourcePrefixListId
This parameter is deprecated.
|
构造器和说明 |
---|
AuthorizeSecurityGroupRequest() |
@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 ensure that it is unique among different requests. The **ClientToken** value can only contain ASCII characters and cannot exceed 64 characters in length. For more information, see [How to ensure idempotence](~~25693~~).
@NameInMap(value="Description") public String description
This parameter is deprecated. Use `Permissions.N.Description` to specify the description of the security group rule.
@NameInMap(value="DestCidrIp") public String destCidrIp
This parameter is deprecated. Use `Permissions.N.DestCidrIp` to specify the destination IPv4 CIDR block.
@NameInMap(value="IpProtocol") public String ipProtocol
This parameter is deprecated. Use `Permissions.N.IpProtocol` to specify the transport layer protocol.
@NameInMap(value="Ipv6DestCidrIp") public String ipv6DestCidrIp
This parameter is deprecated. Use `Permissions.N.Ipv6SourceCidrIp` to specify the source IPv6 CIDR block.
@NameInMap(value="Ipv6SourceCidrIp") public String ipv6SourceCidrIp
This parameter is deprecated. Use `Permissions.N.Ipv6SourceCidrIp` to specify the source IPv6 CIDR block.
@NameInMap(value="NicType") public String nicType
This parameter is deprecated. Use `Permissions.N.NicType` to specify the NIC type.
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="Permissions") public List<AuthorizeSecurityGroupRequest.AuthorizeSecurityGroupRequestPermissions> permissions
Security group rules. Valid values of N: 1 to 100.
@NameInMap(value="Policy") public String policy
This parameter is deprecated. Use `Permissions.N.Policy` to specify whether to accept inbound access.
@NameInMap(value="PortRange") public String portRange
This parameter is deprecated. Use `Permissions.N.PortRange` to specify the range of destination ports.
@NameInMap(value="Priority") public String priority
This parameter is deprecated. Use `Permissions.N.Priority` to specify the rule priority.
@NameInMap(value="RegionId") public String regionId
The region ID of the security group. You can call the [DescribeRegions](~~25609~~) operation to query the most recent list of regions.
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="SecurityGroupId") public String securityGroupId
The ID of the security group.
@NameInMap(value="SourceCidrIp") public String sourceCidrIp
This parameter is deprecated. Use `Permissions.N.SourceCidrIp` to specify the source IPv4 CIDR block.
@NameInMap(value="SourceGroupId") public String sourceGroupId
This parameter is deprecated. Use `Permissions.N.SourceGroupId` to specify the ID of the source security group.
@NameInMap(value="SourceGroupOwnerAccount") public String sourceGroupOwnerAccount
This parameter is deprecated. Use `Permissions.N.SourceGroupOwnerAccount` to specify the Alibaba Cloud account that manages the source security group.
@NameInMap(value="SourceGroupOwnerId") public Long sourceGroupOwnerId
This parameter is deprecated. Use `Permissions.N.SourceGroupOwnerId` to specify the ID of the Alibaba Cloud account that manages the source security group.
@NameInMap(value="SourcePortRange") public String sourcePortRange
This parameter is deprecated. Use `Permissions.N.SourcePortRange` to specify the range of source ports.
@NameInMap(value="SourcePrefixListId") public String sourcePrefixListId
This parameter is deprecated. Use `Permissions.N.SourcePrefixListId`to specify the ID of the source prefix list.
public static AuthorizeSecurityGroupRequest build(Map<String,?> map) throws Exception
Exception
public AuthorizeSecurityGroupRequest setClientToken(String clientToken)
public String getClientToken()
public AuthorizeSecurityGroupRequest setDescription(String description)
public String getDescription()
public AuthorizeSecurityGroupRequest setDestCidrIp(String destCidrIp)
public String getDestCidrIp()
public AuthorizeSecurityGroupRequest setIpProtocol(String ipProtocol)
public String getIpProtocol()
public AuthorizeSecurityGroupRequest setIpv6DestCidrIp(String ipv6DestCidrIp)
public String getIpv6DestCidrIp()
public AuthorizeSecurityGroupRequest setIpv6SourceCidrIp(String ipv6SourceCidrIp)
public String getIpv6SourceCidrIp()
public AuthorizeSecurityGroupRequest setNicType(String nicType)
public String getNicType()
public AuthorizeSecurityGroupRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public AuthorizeSecurityGroupRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public AuthorizeSecurityGroupRequest setPermissions(List<AuthorizeSecurityGroupRequest.AuthorizeSecurityGroupRequestPermissions> permissions)
public List<AuthorizeSecurityGroupRequest.AuthorizeSecurityGroupRequestPermissions> getPermissions()
public AuthorizeSecurityGroupRequest setPolicy(String policy)
public String getPolicy()
public AuthorizeSecurityGroupRequest setPortRange(String portRange)
public String getPortRange()
public AuthorizeSecurityGroupRequest setPriority(String priority)
public String getPriority()
public AuthorizeSecurityGroupRequest setRegionId(String regionId)
public String getRegionId()
public AuthorizeSecurityGroupRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public AuthorizeSecurityGroupRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public AuthorizeSecurityGroupRequest setSecurityGroupId(String securityGroupId)
public String getSecurityGroupId()
public AuthorizeSecurityGroupRequest setSourceCidrIp(String sourceCidrIp)
public String getSourceCidrIp()
public AuthorizeSecurityGroupRequest setSourceGroupId(String sourceGroupId)
public String getSourceGroupId()
public AuthorizeSecurityGroupRequest setSourceGroupOwnerAccount(String sourceGroupOwnerAccount)
public String getSourceGroupOwnerAccount()
public AuthorizeSecurityGroupRequest setSourceGroupOwnerId(Long sourceGroupOwnerId)
public Long getSourceGroupOwnerId()
public AuthorizeSecurityGroupRequest setSourcePortRange(String sourcePortRange)
public String getSourcePortRange()
public AuthorizeSecurityGroupRequest setSourcePrefixListId(String sourcePrefixListId)
public String getSourcePrefixListId()
Copyright © 2023. All rights reserved.