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

org.xlcloud.openstack.model.neutron.Router 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.openstack.model.neutron;

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 com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonRootName;

/**
 * @author Krzysztof Szafrański, AMG.net
 */
@XmlRootElement( name = "router" )
@XmlAccessorType( XmlAccessType.NONE )
@JsonRootName( "router" )
@JsonIgnoreProperties( ignoreUnknown = true )
public class Router implements Serializable {

    private static final long serialVersionUID = 3271104274681316318L;

    @XmlAttribute
    private Status status;
    
    @XmlAttribute( name = "external_gateway_info" )
    @JsonProperty( "external_gateway_info" )
    private RouterGateway externalGateway;
    
    @XmlAttribute
    private String name;
    
    @XmlAttribute( name = "admin_state_up" )
    @JsonProperty( "admin_state_up" )
    private boolean adminStateUp;

    @XmlAttribute( name = "tenant_id" )
    @JsonProperty( "tenant_id" )
    private String tenantId;
    
    @XmlAttribute
    private String id;

    /**
     * Gets the value of {@link #status}.
     * @return value of {@link #status}
     */
    public Status getStatus() {
        return status;
    }
    
    /**
     * Sets the value of {@link #status}.
     * @param status - value
     */
    public void setStatus(Status status) {
        this.status = status;
    }
    
    /**
     * Gets the value of {@link #externalGateway}.
     * @return value of {@link #externalGateway}
     */
    public RouterGateway getExternalGateway() {
        return externalGateway;
    }

    /**
     * Sets the value of {@link #externalGateway}.
     * @param externalGateway - value
     */
    public void setExternalGateway(RouterGateway externalGateway) {
        this.externalGateway = externalGateway;
    }
    
    /**
     * 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 #adminStateUp}.
     * @return value of {@link #adminStateUp}
     */
    public boolean isAdminStateUp() {
        return adminStateUp;
    }

    /**
     * Sets the value of {@link #adminStateUp}.
     * @param adminStateUp - value
     */
    public void setAdminStateUp(boolean adminStateUp) {
        this.adminStateUp = adminStateUp;
    }

    /**
     * Gets the value of {@link #tenantId}.
     * @return value of {@link #tenantId}
     */
    public String getTenantId() {
        return tenantId;
    }
    
    /**
     * Sets the value of {@link #tenantId}.
     * @param tenantId - value
     */
    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

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

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

    /** {@inheritDoc} */
    @Override
    public String toString() {
        return "Router [status=" + status + ", name=" + name + ", adminStateUp=" + adminStateUp + ", tenantId=" + tenantId + ", id=" + id
                + "]";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy