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

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

There is a newer version: 0.3.4
Show 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 {

    @ApiProperty
    protected Event notificationOccurrenceEvent;

    public Event getNotificationOccurrenceEvent() {
        return notificationOccurrenceEvent;
    }

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

    @ApiProperty
    protected Entity resource;

    public Entity getResource() {
        return resource;
    }

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

    @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;
    }

    @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;
    }

    @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 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 filterLabel() {
            withLocalProperty("filterLabel");
            return this;
        }

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

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy