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

com.emc.storageos.model.compute.ComputeSystemCreate 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.compute;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import org.codehaus.jackson.annotate.JsonProperty;

import com.emc.storageos.model.valid.Length;
import com.emc.storageos.model.valid.Range;
import java.net.URI;
/**
 * The input parameter for the Create Compute System API Call
 * 
 * @author Dranov,Vladislav
 * 
 */
@XmlRootElement(name = "compute_system_create")
public class ComputeSystemCreate {

    private String name;
    private String ipAddress;
    private Integer portNumber;
    private String userName;
    private String password;
    private String osInstallNetwork;
    private String systemType;
    private Boolean useSSL;
    private URI computeImageServer;

    public ComputeSystemCreate() {
    }

    @Length(min = 2, max = 128)
    @XmlElement(required = true)
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @XmlElement(name = "ip_address")
    @JsonProperty("ip_address")
    public String getIpAddress() {
        return ipAddress;
    }

    public void setIpAddress(String ipAddress) {
        this.ipAddress = ipAddress;
    }

    @XmlElement(name = "port_number")
    @Range(min = 1, max = 65535)
    @JsonProperty("port_number")
    public Integer getPortNumber() {
        return portNumber;
    }

    public void setPortNumber(Integer portNumber) {
        this.portNumber = portNumber;
    }
    
    @XmlElement(name = "compute_image_server")
    @JsonProperty("compute_image_server")
    public URI getComputeImageServer() {
		return computeImageServer;
	}

	public void setComputeImageServer(URI computeImageServer) {
		this.computeImageServer = computeImageServer;
	}

    /**
     * Specifies whether to use SSL (Secure Sockets Layer)
     * as the authentication method.
     * 
     * @valid none
     */
    @XmlElement(name = "use_ssl")
    public Boolean getUseSSL() {
        return useSSL;
    }

    public void setUseSSL(Boolean useSSL) {
        this.useSSL = useSSL;
    }

    @XmlElement(name = "user_name")
    @JsonProperty("user_name")
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @XmlElement()
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * Specifies the type of the compute system.
     * 
     * @valid ucs
     */
    @XmlElement(name = "system_type", required = true)
    @JsonProperty("system_type")
    public String getSystemType() {
        return systemType;
    }

    public void setSystemType(String systemType) {
        this.systemType = systemType;
    }

    @XmlElement(name = "os_install_network")
    @JsonProperty("os_install_network")
    public String getOsInstallNetwork() {
        return osInstallNetwork;
    }

    public void setOsInstallNetwork(String osInstallNetwork) {
        this.osInstallNetwork = osInstallNetwork;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy