All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.xlcloud.service.Subnet Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2012 AMG.lab, a Bull Group Company
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.xlcloud.service;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

/**
 * Subnet represents a set of IP addresses within a network. Instances that are
 * assigned to the same subnet (via ports) can communicate between each other
 * without any security groups configuration.
 *
 * @author Tomek Adamczewski, AMG.net,
 * @author Konrad Król, AMG.net
 */
@XmlAccessorType( XmlAccessType.FIELD )
@XmlType( name = "", propOrder = {} )
@XmlRootElement( name = "subnet" )
public class Subnet implements Serializable{
    
    /**
     * TODO Documentation serialVersionUID
     */
    private static final long serialVersionUID = -5711504882007247615L;

    public static final String DEFAULT_CIDR = "10.0.0.0/16";
    
    @XmlAttribute
    private String uuid;

    @XmlAttribute
    private String name;
    
    @XmlAttribute
    private String cidr;

    /**
     * Gets the value of {@link #cidr}.
     * @return value of {@link #cidr}
     */
    public String getCidr() {
        return cidr;
    }

    /**
     * Sets the value of {@link #cidr}.
     * @param cidr - value
     */
    public void setCidr(String cidr) {
        this.cidr = cidr;
    }
    
    /**
     * Gets the value of {@link #name}.
     * @return value of {@link #name}
     */
    public String getName() {
        return name;
    }

    /**
     * Sets the value of {@link #name}.
     * @param name - value
     */
    public void setName(String name) {
        this.name = name;
    }

    
    /**
     * Gets the value of {@link #uuid}.
     * @return value of {@link #uuid}
     */
    public String getUuid() {
        return uuid;
    }

    /**
     * Sets the value of {@link #uuid}.
     * @param uuid - value
     */
    public void setUuid(String uuid) {
        this.uuid = uuid;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy