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

org.ovirt.engine.sdk4.internal.containers.EventContainer Maven / Gradle / Ivy

There is a newer version: 4.5.1
Show newest version
/*
Copyright (c) 2015 Red Hat, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package org.ovirt.engine.sdk4.internal.containers;

import java.lang.String;
import java.math.BigInteger;
import java.util.Date;
import org.ovirt.engine.sdk4.types.Cluster;
import org.ovirt.engine.sdk4.types.DataCenter;
import org.ovirt.engine.sdk4.types.Event;
import org.ovirt.engine.sdk4.types.Host;
import org.ovirt.engine.sdk4.types.LogSeverity;
import org.ovirt.engine.sdk4.types.StorageDomain;
import org.ovirt.engine.sdk4.types.Template;
import org.ovirt.engine.sdk4.types.User;
import org.ovirt.engine.sdk4.types.Vm;

public class EventContainer extends IdentifiedContainer implements Event {
    private BigInteger code;
    private String correlationId;
    private String customData;
    private BigInteger customId;
    private BigInteger floodRate;
    private String origin;
    private LogSeverity severity;
    private Date time;
    private Cluster cluster;
    private DataCenter dataCenter;
    private Host host;
    private StorageDomain storageDomain;
    private Template template;
    private User user;
    private Vm vm;
    
    public BigInteger code() {
        return code;
    }
    
    public void code(BigInteger newCode) {
        code = newCode;
    }
    
    public boolean codePresent() {
        return code != null;
    }
    
    public String correlationId() {
        return correlationId;
    }
    
    public void correlationId(String newCorrelationId) {
        correlationId = newCorrelationId;
    }
    
    public boolean correlationIdPresent() {
        return correlationId != null;
    }
    
    public String customData() {
        return customData;
    }
    
    public void customData(String newCustomData) {
        customData = newCustomData;
    }
    
    public boolean customDataPresent() {
        return customData != null;
    }
    
    public BigInteger customId() {
        return customId;
    }
    
    public void customId(BigInteger newCustomId) {
        customId = newCustomId;
    }
    
    public boolean customIdPresent() {
        return customId != null;
    }
    
    public BigInteger floodRate() {
        return floodRate;
    }
    
    public void floodRate(BigInteger newFloodRate) {
        floodRate = newFloodRate;
    }
    
    public boolean floodRatePresent() {
        return floodRate != null;
    }
    
    public String origin() {
        return origin;
    }
    
    public void origin(String newOrigin) {
        origin = newOrigin;
    }
    
    public boolean originPresent() {
        return origin != null;
    }
    
    public LogSeverity severity() {
        return severity;
    }
    
    public void severity(LogSeverity newSeverity) {
        severity = newSeverity;
    }
    
    public boolean severityPresent() {
        return severity != null;
    }
    
    public Date time() {
        if (time == null) {
            return null;
        }
        else {
            return new Date(time.getTime());
        }
    }
    
    public void time(Date newTime) {
        if (newTime == null) {
            time = null;
        }
        else {
            time = new Date(newTime.getTime());
        }
    }
    
    public boolean timePresent() {
        return time != null;
    }
    
    public Cluster cluster() {
        return cluster;
    }
    
    public void cluster(Cluster newCluster) {
        cluster = newCluster;
    }
    
    public boolean clusterPresent() {
        return cluster != null;
    }
    
    public DataCenter dataCenter() {
        return dataCenter;
    }
    
    public void dataCenter(DataCenter newDataCenter) {
        dataCenter = newDataCenter;
    }
    
    public boolean dataCenterPresent() {
        return dataCenter != null;
    }
    
    public Host host() {
        return host;
    }
    
    public void host(Host newHost) {
        host = newHost;
    }
    
    public boolean hostPresent() {
        return host != null;
    }
    
    public StorageDomain storageDomain() {
        return storageDomain;
    }
    
    public void storageDomain(StorageDomain newStorageDomain) {
        storageDomain = newStorageDomain;
    }
    
    public boolean storageDomainPresent() {
        return storageDomain != null;
    }
    
    public Template template() {
        return template;
    }
    
    public void template(Template newTemplate) {
        template = newTemplate;
    }
    
    public boolean templatePresent() {
        return template != null;
    }
    
    public User user() {
        return user;
    }
    
    public void user(User newUser) {
        user = newUser;
    }
    
    public boolean userPresent() {
        return user != null;
    }
    
    public Vm vm() {
        return vm;
    }
    
    public void vm(Vm newVm) {
        vm = newVm;
    }
    
    public boolean vmPresent() {
        return vm != null;
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy