com.emc.storageos.model.host.BaseInitiatorParam Maven / Gradle / Ivy
/*
* Copyright (c) 2015 EMC Corporation
* All Rights Reserved
*/
package com.emc.storageos.model.host;
import com.emc.storageos.model.valid.Endpoint;
import javax.xml.bind.annotation.XmlElement;
/**
* Captures POST data for a host initiator.
*/
public class BaseInitiatorParam {
private String protocol;
private String node;
private String port;
private String name;
public BaseInitiatorParam() {
}
public BaseInitiatorParam(String protocol, String node, String port, String name) {
this.protocol = protocol;
this.node = node;
this.port = port;
this.name = name;
}
/**
* The protocols supported by the initiator which should be FC or iSCSI
*
* @valid FC = Fibre Channel
* @valid iSCSI
*/
// @EnumType(HostInterface.Protocol.class)
@XmlElement()
public String getProtocol() {
return protocol;
}
public void setProtocol(String protocol) {
this.protocol = protocol;
}
/**
* The FC (Fibre Channel) initiator WWN (World Wide Name) of the initiator node
*
* @valid none
*/
@XmlElement(name = "initiator_node")
@Endpoint(type = Endpoint.EndpointType.SAN)
public String getNode() {
return node;
}
public void setNode(String node) {
this.node = node;
}
/**
* The initiator port which can be the WWN of an FC port or the IQN or EUI of an iSCSI port
*
* @valid none
*/
@XmlElement(name = "initiator_port", required = true)
@Endpoint(type = Endpoint.EndpointType.SAN)
public String getPort() {
return port;
}
public void setPort(String port) {
this.port = port;
}
/**
* The label of the initiator
*
* @valid none
*/
@XmlElement()
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy