2 * Copyright (C) 2014 Red Hat, Inc. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.neutron.spi;
11 import java.io.Serializable;
12 import java.util.List;
13 import javax.xml.bind.annotation.XmlAccessType;
14 import javax.xml.bind.annotation.XmlAccessorType;
15 import javax.xml.bind.annotation.XmlRootElement;
18 * OpenStack Neutron v2.0 Security Group bindings.
19 * See OpenStack Network API v2.0 Reference for description of
20 * annotated attributes. The current fields are as follows:
23 * id uuid-str unique ID for the security group.
24 * name String name of the security group.
25 * tenant_id uuid-str Owner of security rule..
29 @XmlAccessorType(XmlAccessType.NONE)
30 public final class NeutronSecurityGroup extends NeutronBaseAttributes<NeutronSecurityGroup> implements Serializable {
31 private static final long serialVersionUID = 1L;
33 public NeutronSecurityGroup() {
36 public NeutronSecurityGroup extractFields(List<String> fields) {
37 NeutronSecurityGroup ans = new NeutronSecurityGroup();
38 for (String s : fields) {
45 public String toString() {
46 return "NeutronSecurityGroup{" + "securityGroupUUID='" + uuid + '\'' + ", securityGroupName='"
47 + name + '\'' + ", securityGroupTenantID='" + tenantID + '\'' + "]";
51 public void initDefaults() {
52 //TODO verify no defaults values are nessecary required.