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

com.softlayer.api.service.hardware.server.Partition Maven / Gradle / Ivy

The newest version!
package com.softlayer.api.service.hardware.server;

import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.Hardware;
import com.softlayer.api.service.hardware.server.partition.network.Attribute;
import java.util.ArrayList;
import java.util.List;

/**
 * @see SoftLayer_Hardware_Server_Partition
 */
@ApiType("SoftLayer_Hardware_Server_Partition")
public class Partition extends Entity {

    @ApiProperty
    protected Hardware hardware;

    public Hardware getHardware() {
        return hardware;
    }

    public void setHardware(Hardware hardware) {
        this.hardware = hardware;
    }

    @ApiProperty
    protected List networkComponentAttributes;

    public List getNetworkComponentAttributes() {
        if (networkComponentAttributes == null) {
            networkComponentAttributes = new ArrayList();
        }
        return networkComponentAttributes;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected Long hardwareId;

    public Long getHardwareId() {
        return hardwareId;
    }

    public void setHardwareId(Long hardwareId) {
        hardwareIdSpecified = true;
        this.hardwareId = hardwareId;
    }

    protected boolean hardwareIdSpecified;

    public boolean isHardwareIdSpecified() {
        return hardwareIdSpecified;
    }

    public void unsetHardwareId() {
        hardwareId = null;
        hardwareIdSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected String hostname;

    public String getHostname() {
        return hostname;
    }

    public void setHostname(String hostname) {
        hostnameSpecified = true;
        this.hostname = hostname;
    }

    protected boolean hostnameSpecified;

    public boolean isHostnameSpecified() {
        return hostnameSpecified;
    }

    public void unsetHostname() {
        hostname = null;
        hostnameSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected String macAddress;

    public String getMacAddress() {
        return macAddress;
    }

    public void setMacAddress(String macAddress) {
        macAddressSpecified = true;
        this.macAddress = macAddress;
    }

    protected boolean macAddressSpecified;

    public boolean isMacAddressSpecified() {
        return macAddressSpecified;
    }

    public void unsetMacAddress() {
        macAddress = null;
        macAddressSpecified = false;
    }

    /**
     * A count of 
     */
    @ApiProperty
    protected Long networkComponentAttributeCount;

    public Long getNetworkComponentAttributeCount() {
        return networkComponentAttributeCount;
    }

    public void setNetworkComponentAttributeCount(Long networkComponentAttributeCount) {
        this.networkComponentAttributeCount = networkComponentAttributeCount;
    }

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

        public com.softlayer.api.service.Hardware.Mask hardware() {
            return withSubMask("hardware", com.softlayer.api.service.Hardware.Mask.class);
        }

        public com.softlayer.api.service.hardware.server.partition.network.Attribute.Mask networkComponentAttributes() {
            return withSubMask("networkComponentAttributes", com.softlayer.api.service.hardware.server.partition.network.Attribute.Mask.class);
        }

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

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

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy