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

com.emc.storageos.model.host.IpInterfaceList Maven / Gradle / Ivy

There is a newer version: 3.5.0.0
Show newest version
/*
 * Copyright (c) 2015 EMC Corporation
 * All Rights Reserved
 */
package com.emc.storageos.model.host;

import com.emc.storageos.model.NamedRelatedResourceRep;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;
import java.util.List;

/**
 * Response for getting a list of host ip interfaces
 */
@XmlRootElement(name = "ip_interfaces")
public class IpInterfaceList {
    private List ipInterfaces;

    public IpInterfaceList() {
    }

    public IpInterfaceList(List ipInterfaces) {
        this.ipInterfaces = ipInterfaces;
    }

    /**
     * List of IPv4 or IPv6 interfaces of a host that exists in ViPR.
     * 
     * @valid none
     */
    @XmlElement(name = "ip_interface")
    public List getIpInterfaces() {
        if (ipInterfaces == null) {
            ipInterfaces = new ArrayList();
        }
        return ipInterfaces;
    }

    public void setIpInterfaces(List ipInterfaces) {
        this.ipInterfaces = ipInterfaces;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy