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

com.softlayer.api.service.layout.profile.Containers Maven / Gradle / Ivy

The newest version!
package com.softlayer.api.service.layout.profile;

import com.softlayer.api.ApiClient;
import com.softlayer.api.ResponseHandler;
import com.softlayer.api.annotation.ApiMethod;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.layout.Container;
import com.softlayer.api.service.layout.Profile;
import java.util.GregorianCalendar;
import java.util.concurrent.Future;

/**
 * @see SoftLayer_Layout_Profile_Containers
 */
@ApiType("SoftLayer_Layout_Profile_Containers")
public class Containers extends Entity {

    /**
     * The container to be contained
     */
    @ApiProperty
    protected Container layoutContainerType;

    public Container getLayoutContainerType() {
        return layoutContainerType;
    }

    public void setLayoutContainerType(Container layoutContainerType) {
        this.layoutContainerType = layoutContainerType;
    }

    /**
     * The profile containing this container
     */
    @ApiProperty
    protected Profile layoutProfile;

    public Profile getLayoutProfile() {
        return layoutProfile;
    }

    public void setLayoutProfile(Profile layoutProfile) {
        this.layoutProfile = layoutProfile;
    }

    /**
     * Timestamp of when the reference was created
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected GregorianCalendar createDate;

    public GregorianCalendar getCreateDate() {
        return createDate;
    }

    public void setCreateDate(GregorianCalendar createDate) {
        createDateSpecified = true;
        this.createDate = createDate;
    }

    protected boolean createDateSpecified;

    public boolean isCreateDateSpecified() {
        return createDateSpecified;
    }

    public void unsetCreateDate() {
        createDate = null;
        createDateSpecified = false;
    }

    /**
     * The internal identifier of the container reference
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long id;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        idSpecified = true;
        this.id = id;
    }

    protected boolean idSpecified;

    public boolean isIdSpecified() {
        return idSpecified;
    }

    public void unsetId() {
        id = null;
        idSpecified = false;
    }

    /**
     * The id of the referenced [[SoftLayer_Layout_Container]]
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long layoutContainerId;

    public Long getLayoutContainerId() {
        return layoutContainerId;
    }

    public void setLayoutContainerId(Long layoutContainerId) {
        layoutContainerIdSpecified = true;
        this.layoutContainerId = layoutContainerId;
    }

    protected boolean layoutContainerIdSpecified;

    public boolean isLayoutContainerIdSpecified() {
        return layoutContainerIdSpecified;
    }

    public void unsetLayoutContainerId() {
        layoutContainerId = null;
        layoutContainerIdSpecified = false;
    }

    /**
     * The id of the referenced [[SoftLayer_Layout_Profile]]
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long layoutProfileId;

    public Long getLayoutProfileId() {
        return layoutProfileId;
    }

    public void setLayoutProfileId(Long layoutProfileId) {
        layoutProfileIdSpecified = true;
        this.layoutProfileId = layoutProfileId;
    }

    protected boolean layoutProfileIdSpecified;

    public boolean isLayoutProfileIdSpecified() {
        return layoutProfileIdSpecified;
    }

    public void unsetLayoutProfileId() {
        layoutProfileId = null;
        layoutProfileIdSpecified = false;
    }

    /**
     * Timestamp of when the reference was last updated
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected GregorianCalendar modifyDate;

    public GregorianCalendar getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(GregorianCalendar modifyDate) {
        modifyDateSpecified = true;
        this.modifyDate = modifyDate;
    }

    protected boolean modifyDateSpecified;

    public boolean isModifyDateSpecified() {
        return modifyDateSpecified;
    }

    public void unsetModifyDate() {
        modifyDate = null;
        modifyDateSpecified = false;
    }

    public Service asService(ApiClient client) {
        return service(client, id);
    }

    public static Service service(ApiClient client) {
        return client.createService(Service.class, null);
    }

    public static Service service(ApiClient client, Long id) {
        return client.createService(Service.class, id == null ? null : id.toString());
    }

    /**
     * @see SoftLayer_Layout_Profile_Containers
     */
    @com.softlayer.api.annotation.ApiService("SoftLayer_Layout_Profile_Containers")
    public static interface Service extends com.softlayer.api.Service {

        public ServiceAsync asAsync();
        public Mask withNewMask();
        public Mask withMask();
        public void setMask(Mask mask);

        /**
         * @see SoftLayer_Layout_Profile_Containers::createObject
         */
        @ApiMethod
        public Boolean createObject(Containers templateObject);

        /**
         * @see SoftLayer_Layout_Profile_Containers::editObject
         */
        @ApiMethod(instanceRequired = true)
        public Boolean editObject(Containers templateObject);

        /**
         * @see SoftLayer_Layout_Profile_Containers::getObject
         */
        @ApiMethod(instanceRequired = true)
        public Containers getObject();

        /**
         * The container to be contained
         *
         * @see SoftLayer_Layout_Profile_Containers::getLayoutContainerType
         */
        @ApiMethod(instanceRequired = true)
        public Container getLayoutContainerType();

        /**
         * The profile containing this container
         *
         * @see SoftLayer_Layout_Profile_Containers::getLayoutProfile
         */
        @ApiMethod(instanceRequired = true)
        public Profile getLayoutProfile();

    }

    public static interface ServiceAsync extends com.softlayer.api.ServiceAsync {

        public Mask withNewMask();
        public Mask withMask();
        public void setMask(Mask mask);

        /**
         * Async version of {@link Service#createObject}
         */
        public Future createObject(Containers templateObject);

        public Future createObject(Containers templateObject, ResponseHandler callback);

        /**
         * Async version of {@link Service#editObject}
         */
        public Future editObject(Containers templateObject);

        public Future editObject(Containers templateObject, ResponseHandler callback);

        /**
         * Async version of {@link Service#getObject}
         */
        public Future getObject();

        public Future getObject(ResponseHandler callback);

        /**
         * Async version of {@link Service#getLayoutContainerType}
         */
        public Future getLayoutContainerType();

        /**
         * Async callback version of {@link Service#getLayoutContainerType}
         */
        public Future getLayoutContainerType(ResponseHandler callback);

        /**
         * Async version of {@link Service#getLayoutProfile}
         */
        public Future getLayoutProfile();

        /**
         * Async callback version of {@link Service#getLayoutProfile}
         */
        public Future getLayoutProfile(ResponseHandler callback);

    }

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

        public com.softlayer.api.service.layout.Container.Mask layoutContainerType() {
            return withSubMask("layoutContainerType", com.softlayer.api.service.layout.Container.Mask.class);
        }

        public com.softlayer.api.service.layout.Profile.Mask layoutProfile() {
            return withSubMask("layoutProfile", com.softlayer.api.service.layout.Profile.Mask.class);
        }

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

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

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

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy