summaryrefslogtreecommitdiffstats
path: root/nova-model/src/main/java/com/woorea/openstack/nova/model/SecurityGroupRuleForCreate.java
diff options
context:
space:
mode:
Diffstat (limited to 'nova-model/src/main/java/com/woorea/openstack/nova/model/SecurityGroupRuleForCreate.java')
-rw-r--r--nova-model/src/main/java/com/woorea/openstack/nova/model/SecurityGroupRuleForCreate.java53
1 files changed, 29 insertions, 24 deletions
diff --git a/nova-model/src/main/java/com/woorea/openstack/nova/model/SecurityGroupRuleForCreate.java b/nova-model/src/main/java/com/woorea/openstack/nova/model/SecurityGroupRuleForCreate.java
index 6ddba5f..f998114 100644
--- a/nova-model/src/main/java/com/woorea/openstack/nova/model/SecurityGroupRuleForCreate.java
+++ b/nova-model/src/main/java/com/woorea/openstack/nova/model/SecurityGroupRuleForCreate.java
@@ -17,9 +17,7 @@
package com.woorea.openstack.nova.model;
import java.io.Serializable;
-
import javax.xml.bind.annotation.XmlElement;
-
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonRootName;
@@ -29,7 +27,7 @@ public class SecurityGroupRuleForCreate implements Serializable {
@JsonProperty("parent_group_id")
private String parentGroupId;
-
+
@JsonProperty("ip_protocol")
private String ipProtocol;
@@ -38,17 +36,17 @@ public class SecurityGroupRuleForCreate implements Serializable {
@JsonProperty("to_port")
private Integer toPort;
-
+
@XmlElement
private String cidr;
@JsonProperty("group_id")
private String groupId;
-
+
public SecurityGroupRuleForCreate() {
-
+
}
-
+
/**
*
* @param parentSecurityGroupId
@@ -56,16 +54,19 @@ public class SecurityGroupRuleForCreate implements Serializable {
* @param fromPort
* @param toPort
* @param cidr
- * @deprecated Ids in some installs have shown to use strings .Use {@link #SecurityGroupRuleForCreate(String, String, Integer, Integer, String)}
+ * @deprecated Ids in some installs have shown to use strings .Use
+ * {@link #SecurityGroupRuleForCreate(String, String, Integer, Integer, String)}
*/
@Deprecated
- public SecurityGroupRuleForCreate(Integer parentSecurityGroupId, String ipProtocol, Integer fromPort,Integer toPort, String cidr) {
+ public SecurityGroupRuleForCreate(Integer parentSecurityGroupId, String ipProtocol, Integer fromPort,
+ Integer toPort, String cidr) {
this.parentGroupId = String.valueOf(parentSecurityGroupId);
this.ipProtocol = ipProtocol;
this.fromPort = fromPort;
this.toPort = toPort;
this.cidr = cidr;
}
+
/**
*
* @param parentSecurityGroupId
@@ -73,26 +74,30 @@ public class SecurityGroupRuleForCreate implements Serializable {
* @param fromPort
* @param toPort
* @param cidr
- * @deprecated Ids in some installs have shown to use strings .Use {@link #SecurityGroupRuleForCreate(String, String, String, Integer, Integer)}
+ * @deprecated Ids in some installs have shown to use strings .Use
+ * {@link #SecurityGroupRuleForCreate(String, String, String, Integer, Integer)}
*/
@Deprecated
- public SecurityGroupRuleForCreate(Integer parentGroupId, String ipProtocol, Integer fromPort,Integer toPort, Integer sourceGroupId) {
+ public SecurityGroupRuleForCreate(Integer parentGroupId, String ipProtocol, Integer fromPort, Integer toPort,
+ Integer sourceGroupId) {
this.parentGroupId = String.valueOf(parentGroupId);
this.ipProtocol = ipProtocol;
this.fromPort = fromPort;
this.toPort = toPort;
this.groupId = String.valueOf(sourceGroupId);
}
-
- public SecurityGroupRuleForCreate(String parentSecurityGroupId, String ipProtocol, Integer fromPort,Integer toPort, String cidr) {
+
+ public SecurityGroupRuleForCreate(String parentSecurityGroupId, String ipProtocol, Integer fromPort, Integer toPort,
+ String cidr) {
this.parentGroupId = parentSecurityGroupId;
this.ipProtocol = ipProtocol;
this.fromPort = fromPort;
this.toPort = toPort;
this.cidr = cidr;
}
-
- public SecurityGroupRuleForCreate(String parentGroupId, String sourceGroupId, String ipProtocol, Integer fromPort,Integer toPort) {
+
+ public SecurityGroupRuleForCreate(String parentGroupId, String sourceGroupId, String ipProtocol, Integer fromPort,
+ Integer toPort) {
this.parentGroupId = parentGroupId;
this.ipProtocol = ipProtocol;
this.fromPort = fromPort;
@@ -106,8 +111,8 @@ public class SecurityGroupRuleForCreate implements Serializable {
public String getParentGroupId() {
return parentGroupId;
}
-
-
+
+
/**
* @param parentGroupId the parentGroupId to set
* @deprecated Use {@link #setParentGroupId(String)}
@@ -117,7 +122,7 @@ public class SecurityGroupRuleForCreate implements Serializable {
public void setParentGroupId(Integer parentGroupId) {
this.parentGroupId = String.valueOf(parentGroupId);
}
-
+
/**
* @param parentGroupId the parentGroupId to set
*/
@@ -197,7 +202,7 @@ public class SecurityGroupRuleForCreate implements Serializable {
public void setGroupId(Integer groupId) {
this.groupId = String.valueOf(groupId);
}
-
+
/**
* @param groupId the groupId to set
*/
@@ -205,15 +210,15 @@ public class SecurityGroupRuleForCreate implements Serializable {
this.groupId = groupId;
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
- return "SecurityGroupRuleForCreate [parentGroupId=" + parentGroupId
- + ", fromPort=" + fromPort + ", toPort=" + toPort
- + ", ipProtocol=" + ipProtocol + ", cidr=" + cidr
- + ", groupId=" + groupId + "]";
+ return "SecurityGroupRuleForCreate [parentGroupId=" + parentGroupId + ", fromPort=" + fromPort + ", toPort="
+ + toPort + ", ipProtocol=" + ipProtocol + ", cidr=" + cidr + ", groupId=" + groupId + "]";
}
}