c876ae3930122b55830d13b0aa85aed1c8937568
[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 javax.xml.bind.annotation.XmlAccessType;
13 import javax.xml.bind.annotation.XmlAccessorType;
14 import javax.xml.bind.annotation.XmlRootElement;
15
16 /**
17  * OpenStack Neutron v2.0 Security Group bindings.
18  * See OpenStack Network API v2.0 Reference for description of
19  * annotated attributes. The current fields are as follows:
20  *
21  * <p>
22  * id                   uuid-str unique ID for the security group.
23  * name                 String name of the security group.
24  * tenant_id            uuid-str Owner of security rule..
25  */
26
27 @XmlRootElement
28 @XmlAccessorType(XmlAccessType.NONE)
29 public final class NeutronSecurityGroup extends NeutronBaseAttributes<NeutronSecurityGroup> implements Serializable {
30     private static final long serialVersionUID = 1L;
31
32     public NeutronSecurityGroup() {
33     }
34
35     @Override
36     public String toString() {
37         return "NeutronSecurityGroup{" + "securityGroupUUID='" + uuid + '\'' + ", securityGroupName='"
38                 + name + '\'' + ", securityGroupTenantID='" + tenantID + '\'' + "]";
39     }
40 }