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

com.softlayer.api.service.notification.occurrence.Resource Maven / Gradle / Ivy

The newest version!
package com.softlayer.api.service.notification.occurrence;

import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.notification.occurrence.Event;

/**
 * This type contains general information relating to any hardware or services that may be impacted by a SoftLayer_Notification_Occurrence_Event. 
 *
 * @see SoftLayer_Notification_Occurrence_Resource
 */
@ApiType("SoftLayer_Notification_Occurrence_Resource")
public class Resource extends Entity {

    /**
     * The associated event.
     */
    @ApiProperty
    protected Event notificationOccurrenceEvent;

    public Event getNotificationOccurrenceEvent() {
        return notificationOccurrenceEvent;
    }

    public void setNotificationOccurrenceEvent(Event notificationOccurrenceEvent) {
        this.notificationOccurrenceEvent = notificationOccurrenceEvent;
    }

    /**
     * The physical resource.
     */
    @ApiProperty
    protected Entity resource;

    public Entity getResource() {
        return resource;
    }

    public void setResource(Entity resource) {
        this.resource = resource;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected Long active;

    public Long getActive() {
        return active;
    }

    public void setActive(Long active) {
        activeSpecified = true;
        this.active = active;
    }

    protected boolean activeSpecified;

    public boolean isActiveSpecified() {
        return activeSpecified;
    }

    public void unsetActive() {
        active = null;
        activeSpecified = false;
    }

    /**
     * <<< EOT A label which gives some background as to what piece of
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String filterLabel;

    public String getFilterLabel() {
        return filterLabel;
    }

    public void setFilterLabel(String filterLabel) {
        filterLabelSpecified = true;
        this.filterLabel = filterLabel;
    }

    protected boolean filterLabelSpecified;

    public boolean isFilterLabelSpecified() {
        return filterLabelSpecified;
    }

    public void unsetFilterLabel() {
        filterLabel = null;
        filterLabelSpecified = false;
    }

    /**
     * <<< EOT The unique identifier for the associated
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long notificationOccurrenceEventId;

    public Long getNotificationOccurrenceEventId() {
        return notificationOccurrenceEventId;
    }

    public void setNotificationOccurrenceEventId(Long notificationOccurrenceEventId) {
        notificationOccurrenceEventIdSpecified = true;
        this.notificationOccurrenceEventId = notificationOccurrenceEventId;
    }

    protected boolean notificationOccurrenceEventIdSpecified;

    public boolean isNotificationOccurrenceEventIdSpecified() {
        return notificationOccurrenceEventIdSpecified;
    }

    public void unsetNotificationOccurrenceEventId() {
        notificationOccurrenceEventId = null;
        notificationOccurrenceEventIdSpecified = false;
    }

    /**
     * <<< EOT The unique identifier for the [[SoftLayer_Account]] associated with
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long resourceAccountId;

    public Long getResourceAccountId() {
        return resourceAccountId;
    }

    public void setResourceAccountId(Long resourceAccountId) {
        resourceAccountIdSpecified = true;
        this.resourceAccountId = resourceAccountId;
    }

    protected boolean resourceAccountIdSpecified;

    public boolean isResourceAccountIdSpecified() {
        return resourceAccountIdSpecified;
    }

    public void unsetResourceAccountId() {
        resourceAccountId = null;
        resourceAccountIdSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected String resourceName;

    public String getResourceName() {
        return resourceName;
    }

    public void setResourceName(String resourceName) {
        resourceNameSpecified = true;
        this.resourceName = resourceName;
    }

    protected boolean resourceNameSpecified;

    public boolean isResourceNameSpecified() {
        return resourceNameSpecified;
    }

    public void unsetResourceName() {
        resourceName = null;
        resourceNameSpecified = false;
    }

    /**
     * <<< EOT The unique identifier for the physical resource that is associated
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long resourceTableId;

    public Long getResourceTableId() {
        return resourceTableId;
    }

    public void setResourceTableId(Long resourceTableId) {
        resourceTableIdSpecified = true;
        this.resourceTableId = resourceTableId;
    }

    protected boolean resourceTableIdSpecified;

    public boolean isResourceTableIdSpecified() {
        return resourceTableIdSpecified;
    }

    public void unsetResourceTableId() {
        resourceTableId = null;
        resourceTableIdSpecified = false;
    }

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

        public Event.Mask notificationOccurrenceEvent() {
            return withSubMask("notificationOccurrenceEvent", Event.Mask.class);
        }

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

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

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

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

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

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy