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

com.softlayer.api.service.container.resource.metadata.ServiceResource Maven / Gradle / Ivy

There is a newer version: 0.3.4
Show newest version
package com.softlayer.api.service.container.resource.metadata;

import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.network.service.resource.Type;

/**
 * The metadata service resource container is used to store information about a single service resource. 
 *
 * @see SoftLayer_Container_Resource_Metadata_ServiceResource
 */
@ApiType("SoftLayer_Container_Resource_Metadata_ServiceResource")
public class ServiceResource extends Entity {

    /**
     * The backend IP address for this resource 
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String backendIpAddress;

    public String getBackendIpAddress() {
        return backendIpAddress;
    }

    public void setBackendIpAddress(String backendIpAddress) {
        backendIpAddressSpecified = true;
        this.backendIpAddress = backendIpAddress;
    }

    protected boolean backendIpAddressSpecified;

    public boolean isBackendIpAddressSpecified() {
        return backendIpAddressSpecified;
    }

    public void unsetBackendIpAddress() {
        backendIpAddress = null;
        backendIpAddressSpecified = false;
    }

    /**
     * The type for this resource 
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Type type;

    public Type getType() {
        return type;
    }

    public void setType(Type type) {
        typeSpecified = true;
        this.type = type;
    }

    protected boolean typeSpecified;

    public boolean isTypeSpecified() {
        return typeSpecified;
    }

    public void unsetType() {
        type = null;
        typeSpecified = false;
    }

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

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

        public com.softlayer.api.service.network.service.resource.Type.Mask type() {
            return withSubMask("type", com.softlayer.api.service.network.service.resource.Type.Mask.class);
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy