All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.ecs20140526.models.DescribeSecurityGroupsResponseBody Maven / Gradle / Ivy

The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ecs20140526.models;

import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * 
 * {@link DescribeSecurityGroupsResponseBody} extends {@link TeaModel}
 *
 * 

DescribeSecurityGroupsResponseBody

*/ public class DescribeSecurityGroupsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.NameInMap("PageSize") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("SecurityGroups") private SecurityGroups securityGroups; @com.aliyun.core.annotation.NameInMap("TotalCount") private Integer totalCount; private DescribeSecurityGroupsResponseBody(Builder builder) { this.nextToken = builder.nextToken; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.requestId = builder.requestId; this.securityGroups = builder.securityGroups; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeSecurityGroupsResponseBody create() { return builder().build(); } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return securityGroups */ public SecurityGroups getSecurityGroups() { return this.securityGroups; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private String nextToken; private Integer pageNumber; private Integer pageSize; private String regionId; private String requestId; private SecurityGroups securityGroups; private Integer totalCount; /** *

A pagination token. If the return value of this parameter is empty when MaxResults and NextToken are used for a paged query, no next page exists.

* * example: *

e71d8a535bd9cc11

*/ public Builder nextToken(String nextToken) { this.nextToken = nextToken; return this; } /** *

The page number.

*
*

This parameter will be deprecated in the future. We recommend that you use NextToken and MaxResults for a paged query.

*
* * example: *

1

*/ public Builder pageNumber(Integer pageNumber) { this.pageNumber = pageNumber; return this; } /** *

The number of entries per page.

*
*

This parameter will be deprecated in the future. We recommend that you use NextToken and MaxResults for a paged query.

*
* * example: *

10

*/ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** *

The region ID of the security group.

* * example: *

cn-hangzhou

*/ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** *

The request ID.

* * example: *

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

*/ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** *

The information about the security groups.

*/ public Builder securityGroups(SecurityGroups securityGroups) { this.securityGroups = securityGroups; return this; } /** *

The total number of security groups returned. If MaxResults and NextToken are specified in the request, the value of this parameter is not returned.

* * example: *

20

*/ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public DescribeSecurityGroupsResponseBody build() { return new DescribeSecurityGroupsResponseBody(this); } } /** * * {@link DescribeSecurityGroupsResponseBody} extends {@link TeaModel} * *

DescribeSecurityGroupsResponseBody

*/ public static class Tag extends TeaModel { @com.aliyun.core.annotation.NameInMap("TagKey") private String tagKey; @com.aliyun.core.annotation.NameInMap("TagValue") private String tagValue; private Tag(Builder builder) { this.tagKey = builder.tagKey; this.tagValue = builder.tagValue; } public static Builder builder() { return new Builder(); } public static Tag create() { return builder().build(); } /** * @return tagKey */ public String getTagKey() { return this.tagKey; } /** * @return tagValue */ public String getTagValue() { return this.tagValue; } public static final class Builder { private String tagKey; private String tagValue; /** *

The key of the tag.

* * example: *

TestKey

*/ public Builder tagKey(String tagKey) { this.tagKey = tagKey; return this; } /** *

The value of the tag.

* * example: *

TestValue

*/ public Builder tagValue(String tagValue) { this.tagValue = tagValue; return this; } public Tag build() { return new Tag(this); } } } /** * * {@link DescribeSecurityGroupsResponseBody} extends {@link TeaModel} * *

DescribeSecurityGroupsResponseBody

*/ public static class Tags extends TeaModel { @com.aliyun.core.annotation.NameInMap("Tag") private java.util.List tag; private Tags(Builder builder) { this.tag = builder.tag; } public static Builder builder() { return new Builder(); } public static Tags create() { return builder().build(); } /** * @return tag */ public java.util.List getTag() { return this.tag; } public static final class Builder { private java.util.List tag; /** * Tag. */ public Builder tag(java.util.List tag) { this.tag = tag; return this; } public Tags build() { return new Tags(this); } } } /** * * {@link DescribeSecurityGroupsResponseBody} extends {@link TeaModel} * *

DescribeSecurityGroupsResponseBody

*/ public static class SecurityGroup extends TeaModel { @com.aliyun.core.annotation.NameInMap("AvailableInstanceAmount") private Integer availableInstanceAmount; @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("EcsCount") private Integer ecsCount; @com.aliyun.core.annotation.NameInMap("GroupToGroupRuleCount") private Integer groupToGroupRuleCount; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("RuleCount") private Integer ruleCount; @com.aliyun.core.annotation.NameInMap("SecurityGroupId") private String securityGroupId; @com.aliyun.core.annotation.NameInMap("SecurityGroupName") private String securityGroupName; @com.aliyun.core.annotation.NameInMap("SecurityGroupType") private String securityGroupType; @com.aliyun.core.annotation.NameInMap("ServiceID") private Long serviceID; @com.aliyun.core.annotation.NameInMap("ServiceManaged") private Boolean serviceManaged; @com.aliyun.core.annotation.NameInMap("Tags") private Tags tags; @com.aliyun.core.annotation.NameInMap("VpcId") private String vpcId; private SecurityGroup(Builder builder) { this.availableInstanceAmount = builder.availableInstanceAmount; this.creationTime = builder.creationTime; this.description = builder.description; this.ecsCount = builder.ecsCount; this.groupToGroupRuleCount = builder.groupToGroupRuleCount; this.resourceGroupId = builder.resourceGroupId; this.ruleCount = builder.ruleCount; this.securityGroupId = builder.securityGroupId; this.securityGroupName = builder.securityGroupName; this.securityGroupType = builder.securityGroupType; this.serviceID = builder.serviceID; this.serviceManaged = builder.serviceManaged; this.tags = builder.tags; this.vpcId = builder.vpcId; } public static Builder builder() { return new Builder(); } public static SecurityGroup create() { return builder().build(); } /** * @return availableInstanceAmount */ public Integer getAvailableInstanceAmount() { return this.availableInstanceAmount; } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return description */ public String getDescription() { return this.description; } /** * @return ecsCount */ public Integer getEcsCount() { return this.ecsCount; } /** * @return groupToGroupRuleCount */ public Integer getGroupToGroupRuleCount() { return this.groupToGroupRuleCount; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return ruleCount */ public Integer getRuleCount() { return this.ruleCount; } /** * @return securityGroupId */ public String getSecurityGroupId() { return this.securityGroupId; } /** * @return securityGroupName */ public String getSecurityGroupName() { return this.securityGroupName; } /** * @return securityGroupType */ public String getSecurityGroupType() { return this.securityGroupType; } /** * @return serviceID */ public Long getServiceID() { return this.serviceID; } /** * @return serviceManaged */ public Boolean getServiceManaged() { return this.serviceManaged; } /** * @return tags */ public Tags getTags() { return this.tags; } /** * @return vpcId */ public String getVpcId() { return this.vpcId; } public static final class Builder { private Integer availableInstanceAmount; private String creationTime; private String description; private Integer ecsCount; private Integer groupToGroupRuleCount; private String resourceGroupId; private Integer ruleCount; private String securityGroupId; private String securityGroupName; private String securityGroupType; private Long serviceID; private Boolean serviceManaged; private Tags tags; private String vpcId; /** *

The number of private IP addresses that can be added to the security group. For more information, see the "Security group capacity" section in Basic security groups and advanced security groups.

*

If you set IsQueryEcsCount to True, the return value of AvailableInstanceAmount is valid.

*
*

This parameter is deprecated. The returned quantity is provided only for reference. The actual quantity may differ from the returned quantity.

*
* * example: *

0

*/ public Builder availableInstanceAmount(Integer availableInstanceAmount) { this.availableInstanceAmount = availableInstanceAmount; return this; } /** *

The time when the security group was created. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mmZ format. The time is displayed in UTC.

* * example: *

2021-08-31T03:12:29Z

*/ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** *

The description of the security group.

* * example: *

TestDescription

*/ public Builder description(String description) { this.description = description; return this; } /** *

The number of private IP addresses that are contained in the security group. For more information, see the "Security group capacity" section in Basic security groups and advanced security groups.

*

If you set IsQueryEcsCount to True, the return value of EcsCount is valid.

*
*

This parameter is deprecated. The returned quantity is provided only for reference. The actual quantity may differ from the returned quantity.

*
* * example: *

0

*/ public Builder ecsCount(Integer ecsCount) { this.ecsCount = ecsCount; return this; } /** *

The number of rules that reference security groups in the security group.

* * example: *

5

*/ public Builder groupToGroupRuleCount(Integer groupToGroupRuleCount) { this.groupToGroupRuleCount = groupToGroupRuleCount; return this; } /** *

The ID of the resource group to which the security group belongs.

* * example: *

rg-bp67acfmxazb4p****

*/ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** *

The number of rules in the security group.

* * example: *

100

*/ public Builder ruleCount(Integer ruleCount) { this.ruleCount = ruleCount; return this; } /** *

The ID of the security group.

* * example: *

sg-bp67acfmxazb4p****

*/ public Builder securityGroupId(String securityGroupId) { this.securityGroupId = securityGroupId; return this; } /** *

The name of the security group.

* * example: *

SGTestName

*/ public Builder securityGroupName(String securityGroupName) { this.securityGroupName = securityGroupName; return this; } /** *

The type of the security group. Valid values:

*
    *
  • normal: basic security group
  • *
  • enterprise: advanced security group
  • *
* * example: *

normal

*/ public Builder securityGroupType(String securityGroupType) { this.securityGroupType = securityGroupType; return this; } /** *

The ID of the distributor to which the security group belongs.

* * example: *

12345678910

*/ public Builder serviceID(Long serviceID) { this.serviceID = serviceID; return this; } /** *

Indicates whether the user of the security group is an Alibaba Cloud service or a distributor.

* * example: *

false

*/ public Builder serviceManaged(Boolean serviceManaged) { this.serviceManaged = serviceManaged; return this; } /** *

The tags of the security group.

*/ public Builder tags(Tags tags) { this.tags = tags; return this; } /** *

The ID of the VPC to which the security group belongs.

* * example: *

vpc-bp67acfmxazb4p****

*/ public Builder vpcId(String vpcId) { this.vpcId = vpcId; return this; } public SecurityGroup build() { return new SecurityGroup(this); } } } /** * * {@link DescribeSecurityGroupsResponseBody} extends {@link TeaModel} * *

DescribeSecurityGroupsResponseBody

*/ public static class SecurityGroups extends TeaModel { @com.aliyun.core.annotation.NameInMap("SecurityGroup") private java.util.List securityGroup; private SecurityGroups(Builder builder) { this.securityGroup = builder.securityGroup; } public static Builder builder() { return new Builder(); } public static SecurityGroups create() { return builder().build(); } /** * @return securityGroup */ public java.util.List getSecurityGroup() { return this.securityGroup; } public static final class Builder { private java.util.List securityGroup; /** * SecurityGroup. */ public Builder securityGroup(java.util.List securityGroup) { this.securityGroup = securityGroup; return this; } public SecurityGroups build() { return new SecurityGroups(this); } } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy