checkstyle: enable JavadocParagraph
[neutron.git] / neutron-spi / src / main / java / org / opendaylight / neutron / spi / NeutronSecurityGroup.java
1 /*
2  * Copyright (C) 2014 Red Hat, Inc.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.neutron.spi;
10
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;
16
17 /**
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:
21  *
22  * <p>
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..
26  */
27
28 @XmlRootElement
29 @XmlAccessorType(XmlAccessType.NONE)
30 public final class NeutronSecurityGroup extends NeutronBaseAttributes<NeutronSecurityGroup> implements Serializable {
31     private static final long serialVersionUID = 1L;
32
33     public NeutronSecurityGroup() {
34     }
35
36     public NeutronSecurityGroup extractFields(List<String> fields) {
37         NeutronSecurityGroup ans = new NeutronSecurityGroup();
38         for (String s : fields) {
39             extractField(s, ans);
40         }
41         return ans;
42     }
43
44     @Override
45     public String toString() {
46         return "NeutronSecurityGroup{" + "securityGroupUUID='" + uuid + '\'' + ", securityGroupName='"
47                 + name + '\'' + ", securityGroupTenantID='" + tenantID + '\'' + "]";
48     }
49
50     @Override
51     public void initDefaults() {
52         //TODO verify no defaults values are nessecary required.
53     }
54 }