public static final class DescribeSecurityGroupsRequest.Builder extends Object
public DescribeSecurityGroupsRequest.Builder sourceRegionId(String sourceRegionId)
public DescribeSecurityGroupsRequest.Builder dryRun(Boolean dryRun)
* true: performs a dry run. The system checks the AccessKey pair, the permissions of the RAM user, and the required parameters. If the request fails the dry run, an error message is returned. If the request passes the dry run, the DryRunOperation error code is returned. * false: performs a dry run and sends the request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed. Default value: false.
public DescribeSecurityGroupsRequest.Builder fuzzyQuery(Boolean fuzzyQuery)
public DescribeSecurityGroupsRequest.Builder isQueryEcsCount(Boolean isQueryEcsCount)
public DescribeSecurityGroupsRequest.Builder maxResults(Integer maxResults)
Maximum value: 100. Default value: 10.
public DescribeSecurityGroupsRequest.Builder networkType(String networkType)
* vpc: virtual private cloud (VPC) * classic: classic network
public DescribeSecurityGroupsRequest.Builder nextToken(String nextToken)
public DescribeSecurityGroupsRequest.Builder ownerAccount(String ownerAccount)
public DescribeSecurityGroupsRequest.Builder ownerId(Long ownerId)
public DescribeSecurityGroupsRequest.Builder pageNumber(Integer pageNumber)
Pages start from page 1. Default value: 1. > This parameter will be removed in the future. We recommend that you use the NextToken and MaxResults parameters for a paged query.
public DescribeSecurityGroupsRequest.Builder pageSize(Integer pageSize)
Maximum value: 50. Default value: 10. > This parameter will be removed in the future. We recommend that you use the NextToken and MaxResults parameters for a paged query.
public DescribeSecurityGroupsRequest.Builder regionId(String regionId)
public DescribeSecurityGroupsRequest.Builder resourceGroupId(String resourceGroupId)
> Resources in the default resource group are displayed in the response regardless of how you specify this parameter.
public DescribeSecurityGroupsRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public DescribeSecurityGroupsRequest.Builder resourceOwnerId(Long resourceOwnerId)
public DescribeSecurityGroupsRequest.Builder securityGroupId(String securityGroupId)
public DescribeSecurityGroupsRequest.Builder securityGroupIds(String securityGroupIds)
public DescribeSecurityGroupsRequest.Builder securityGroupName(String securityGroupName)
public DescribeSecurityGroupsRequest.Builder securityGroupType(String securityGroupType)
* normal: basic security group * enterprise: advanced security group > If you do not specify this parameter, basic and advanced security groups are queried.
public DescribeSecurityGroupsRequest.Builder tag(List<DescribeSecurityGroupsRequest.Tag> tag)
public DescribeSecurityGroupsRequest.Builder vpcId(String vpcId)
public DescribeSecurityGroupsRequest build()
Copyright © 2023. All rights reserved.