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

com.softlayer.api.service.hardware.component.remotemanagement.Command Maven / Gradle / Ivy

There is a newer version: 0.3.4
Show newest version
package com.softlayer.api.service.hardware.component.remotemanagement;

import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.hardware.component.remotemanagement.command.Request;
import java.util.ArrayList;
import java.util.List;

/**
 * The SoftLayer_Network_Storage_Evault_Version6 contains the names of the remote management commands.  Currently, only the reboot and power commands for the remote management card exist. 
 *
 * @see SoftLayer_Hardware_Component_RemoteManagement_Command
 */
@ApiType("SoftLayer_Hardware_Component_RemoteManagement_Command")
public class Command extends Entity {

    /**
     * All requests issued for the remote management command.
     */
    @ApiProperty
    protected List requests;

    public List getRequests() {
        if (requests == null) {
            requests = new ArrayList();
        }
        return requests;
    }

    /**
     * The name of the remote management command.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String keyName;

    public String getKeyName() {
        return keyName;
    }

    public void setKeyName(String keyName) {
        keyNameSpecified = true;
        this.keyName = keyName;
    }

    protected boolean keyNameSpecified;

    public boolean isKeyNameSpecified() {
        return keyNameSpecified;
    }

    public void unsetKeyName() {
        keyName = null;
        keyNameSpecified = false;
    }

    /**
     * A count of all requests issued for the remote management command.
     */
    @ApiProperty
    protected Long requestCount;

    public Long getRequestCount() {
        return requestCount;
    }

    public void setRequestCount(Long requestCount) {
        this.requestCount = requestCount;
    }

    public static class Mask extends com.softlayer.api.service.Entity.Mask {

        public com.softlayer.api.service.hardware.component.remotemanagement.command.Request.Mask requests() {
            return withSubMask("requests", com.softlayer.api.service.hardware.component.remotemanagement.command.Request.Mask.class);
        }

        public Mask keyName() {
            withLocalProperty("keyName");
            return this;
        }

        public Mask requestCount() {
            withLocalProperty("requestCount");
            return this;
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy