package com.woorea.openstack.quantum.model;

import java.io.Serializable;
import java.util.List;

import org.codehaus.jackson.annotate.JsonProperty;
import org.codehaus.jackson.map.annotate.JsonRootName;

@JsonRootName("subnet")

public class SubnetForCreate implements Serializable{
	
	private String name;
	@JsonProperty("network_id")
	private String networkid;
	@JsonProperty("ip_version")
	private int ipVersion;
	private String cidr;
	@JsonProperty("allocation_pools")
	private List<Pool> list;
	
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @return the id
	 */
	public String getNetworkId() {
		return networkid;
	}
	
	/**
	 * @param id the id to set
	 */
	public void setNetworkId(String id) {
		this.networkid = id;
	}
	
	
	/**
	 * @return the ipVersion
	 */
	public int getIpVersion() {
		return ipVersion;
	}

	/**
	 * @param ipVersion the ipVersion to set
	 */
	public void setIpVersion(int ipVersion) {
		this.ipVersion = ipVersion;
	}

	/**
	 * @return the cidr
	 */
	public String getCidr() {
		return cidr;
	}
	
	/**
	 * @param cidr the cidr to set
	 */
	public void setCidr(String cidr) {
		this.cidr = cidr;
	}
	
	/**
	 * @return the list
	 */
	public List<Pool> getList() {
		return list;
	}
	
	/**
	 * @param list the list to set
	 */
	public void setList(List<Pool> list) {
		this.list = list;
	}

	
	
	
}

@@ -349,25 +349,25 @@
 ring network
-i
+I
 d;%0A%09@JsonPro
@@ -750,17 +750,17 @@
  network
-i
+I
 d;%0A%09%7D%0A%09%0A
@@ -850,17 +850,17 @@
 .network
-i
+I
 d = id;%0A

Fix name of networkId field so that it matches its getter/setter