com.aliyun.ens20171110.models.DescribeSecurityGroupAttributeResponseBody Maven / Gradle / Ivy
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.ens20171110.models;
import com.aliyun.tea.*;
public class DescribeSecurityGroupAttributeResponseBody extends TeaModel {
/**
* The description of the security group.
*
* example:
* testDescription1
*/
@NameInMap("Description")
public String description;
/**
* Details about the rules.
*/
@NameInMap("Permissions")
public DescribeSecurityGroupAttributeResponseBodyPermissions permissions;
/**
* The request ID.
*
* example:
* 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E
*/
@NameInMap("RequestId")
public String requestId;
/**
* The ID of the destination security group.
*
* example:
* sg-bp1gxw6bznjjvhu3****
*/
@NameInMap("SecurityGroupId")
public String securityGroupId;
/**
* The name of the destination security group.
*
* example:
* testSecurityGroupName2
*/
@NameInMap("SecurityGroupName")
public String securityGroupName;
public static DescribeSecurityGroupAttributeResponseBody build(java.util.Map map) throws Exception {
DescribeSecurityGroupAttributeResponseBody self = new DescribeSecurityGroupAttributeResponseBody();
return TeaModel.build(map, self);
}
public DescribeSecurityGroupAttributeResponseBody setDescription(String description) {
this.description = description;
return this;
}
public String getDescription() {
return this.description;
}
public DescribeSecurityGroupAttributeResponseBody setPermissions(DescribeSecurityGroupAttributeResponseBodyPermissions permissions) {
this.permissions = permissions;
return this;
}
public DescribeSecurityGroupAttributeResponseBodyPermissions getPermissions() {
return this.permissions;
}
public DescribeSecurityGroupAttributeResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public DescribeSecurityGroupAttributeResponseBody setSecurityGroupId(String securityGroupId) {
this.securityGroupId = securityGroupId;
return this;
}
public String getSecurityGroupId() {
return this.securityGroupId;
}
public DescribeSecurityGroupAttributeResponseBody setSecurityGroupName(String securityGroupName) {
this.securityGroupName = securityGroupName;
return this;
}
public String getSecurityGroupName() {
return this.securityGroupName;
}
public static class DescribeSecurityGroupAttributeResponseBodyPermissionsPermission extends TeaModel {
/**
* The time at which the security group rule was created. The time is displayed in UTC.
*
* example:
* 2018-12-12T07:28:38Z
*/
@NameInMap("CreationTime")
public String creationTime;
/**
* The description.
*
* example:
* testDescription1
*/
@NameInMap("Description")
public String description;
/**
* The range of destination IP addresses for outbound access control.
*
* example:
* 0.0.0.0/0
*/
@NameInMap("DestCidrIp")
public String destCidrIp;
/**
* The direction in which the security group rule is applied.
*
* example:
* ingress
*/
@NameInMap("Direction")
public String direction;
/**
* The transport layer protocol.
*
* example:
* TCP
*/
@NameInMap("IpProtocol")
public String ipProtocol;
/**
* The policy.
*
* example:
* Accept
*/
@NameInMap("Policy")
public String policy;
/**
* The source port range.
*
* example:
* 80/80
*/
@NameInMap("PortRange")
public String portRange;
/**
* The priority of the rule.
*
* example:
* 1
*/
@NameInMap("Priority")
public Integer priority;
/**
* The range of source IP addresses for inbound access control.
*
* example:
* 0.0.0.0/0
*/
@NameInMap("SourceCidrIp")
public String sourceCidrIp;
/**
* The source port number range for the security group.
*
* example:
* 22/22
*/
@NameInMap("SourcePortRange")
public String sourcePortRange;
public static DescribeSecurityGroupAttributeResponseBodyPermissionsPermission build(java.util.Map map) throws Exception {
DescribeSecurityGroupAttributeResponseBodyPermissionsPermission self = new DescribeSecurityGroupAttributeResponseBodyPermissionsPermission();
return TeaModel.build(map, self);
}
public DescribeSecurityGroupAttributeResponseBodyPermissionsPermission setCreationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
public String getCreationTime() {
return this.creationTime;
}
public DescribeSecurityGroupAttributeResponseBodyPermissionsPermission setDescription(String description) {
this.description = description;
return this;
}
public String getDescription() {
return this.description;
}
public DescribeSecurityGroupAttributeResponseBodyPermissionsPermission setDestCidrIp(String destCidrIp) {
this.destCidrIp = destCidrIp;
return this;
}
public String getDestCidrIp() {
return this.destCidrIp;
}
public DescribeSecurityGroupAttributeResponseBodyPermissionsPermission setDirection(String direction) {
this.direction = direction;
return this;
}
public String getDirection() {
return this.direction;
}
public DescribeSecurityGroupAttributeResponseBodyPermissionsPermission setIpProtocol(String ipProtocol) {
this.ipProtocol = ipProtocol;
return this;
}
public String getIpProtocol() {
return this.ipProtocol;
}
public DescribeSecurityGroupAttributeResponseBodyPermissionsPermission setPolicy(String policy) {
this.policy = policy;
return this;
}
public String getPolicy() {
return this.policy;
}
public DescribeSecurityGroupAttributeResponseBodyPermissionsPermission setPortRange(String portRange) {
this.portRange = portRange;
return this;
}
public String getPortRange() {
return this.portRange;
}
public DescribeSecurityGroupAttributeResponseBodyPermissionsPermission setPriority(Integer priority) {
this.priority = priority;
return this;
}
public Integer getPriority() {
return this.priority;
}
public DescribeSecurityGroupAttributeResponseBodyPermissionsPermission setSourceCidrIp(String sourceCidrIp) {
this.sourceCidrIp = sourceCidrIp;
return this;
}
public String getSourceCidrIp() {
return this.sourceCidrIp;
}
public DescribeSecurityGroupAttributeResponseBodyPermissionsPermission setSourcePortRange(String sourcePortRange) {
this.sourcePortRange = sourcePortRange;
return this;
}
public String getSourcePortRange() {
return this.sourcePortRange;
}
}
public static class DescribeSecurityGroupAttributeResponseBodyPermissions extends TeaModel {
@NameInMap("Permission")
public java.util.List permission;
public static DescribeSecurityGroupAttributeResponseBodyPermissions build(java.util.Map map) throws Exception {
DescribeSecurityGroupAttributeResponseBodyPermissions self = new DescribeSecurityGroupAttributeResponseBodyPermissions();
return TeaModel.build(map, self);
}
public DescribeSecurityGroupAttributeResponseBodyPermissions setPermission(java.util.List permission) {
this.permission = permission;
return this;
}
public java.util.List getPermission() {
return this.permission;
}
}
}