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

org.xlcloud.openstack.model.ceilometer.Sample Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2012 AMG.lab, a Bull Group Company
 * 
 * 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.xlcloud.openstack.model.ceilometer;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import javax.xml.bind.annotation.XmlAttribute;

import org.apache.commons.lang.builder.ToStringBuilder;

/**
 * @author Andrzej Stasiak, AMG.net
 *
 */
public class Sample {

    @XmlAttribute
    private String counter_name;

    @XmlAttribute
    private String counter_type;

    @XmlAttribute
    private String counter_unit;

    @XmlAttribute
    private String counter_volume;

    @XmlAttribute
    private String message_id;

    @XmlAttribute
    private String project_id;

    @XmlAttribute
    private String resource_id;

    @XmlAttribute
    private Map resource_metadata;

    @XmlAttribute
    private String source;

    @XmlAttribute
    private Date timestamp;

    @XmlAttribute
    private String user_id;

    /**
     * @return the counter_name
     */
    public String getCounter_name() {
        return counter_name;
    }

    /**
     * @param counter_name the counter_name to set
     */
    public void setCounter_name(String counter_name) {
        this.counter_name = counter_name;
    }

    /**
     * @return the counter_type
     */
    public String getCounter_type() {
        return counter_type;
    }

    /**
     * @param counter_type the counter_type to set
     */
    public void setCounter_type(String counter_type) {
        this.counter_type = counter_type;
    }

    /**
     * @return the counter_unit
     */
    public String getCounter_unit() {
        return counter_unit;
    }

    /**
     * @param counter_unit the counter_unit to set
     */
    public void setCounter_unit(String counter_unit) {
        this.counter_unit = counter_unit;
    }

    /**
     * @return the counter_volume
     */
    public String getCounter_volume() {
        return counter_volume;
    }

    /**
     * @param counter_volume the counter_volume to set
     */
    public void setCounter_volume(String counter_volume) {
        this.counter_volume = counter_volume;
    }

    /**
     * @return the message_id
     */
    public String getMessage_id() {
        return message_id;
    }

    /**
     * @param message_id the message_id to set
     */
    public void setMessage_id(String message_id) {
        this.message_id = message_id;
    }

    /**
     * @return the project_id
     */
    public String getProject_id() {
        return project_id;
    }

    /**
     * @param project_id the project_id to set
     */
    public void setProject_id(String project_id) {
        this.project_id = project_id;
    }

    /**
     * @return the resource_id
     */
    public String getResource_id() {
        return resource_id;
    }

    /**
     * @param resource_id the resource_id to set
     */
    public void setResource_id(String resource_id) {
        this.resource_id = resource_id;
    }

    /**
     * @return the resource_metadata
     */
    public Map getResource_metadata() {
        if(resource_metadata==null) {
            resource_metadata = new HashMap<>();
        }
        return resource_metadata;
    }

    /**
     * @param resource_metadata the resource_metadata to set
     */
    public void setResource_metadata(Map resource_metadata) {
        this.resource_metadata = resource_metadata;
    }

    /**
     * @return the source
     */
    public String getSource() {
        return source;
    }

    /**
     * @param source the source to set
     */
    public void setSource(String source) {
        this.source = source;
    }

    /**
     * @return the timestamp
     */
    public Date getTimestamp() {
        return timestamp;
    }

    /**
     * @param timestamp the timestamp to set
     */
    public void setTimestamp(Date timestamp) {
        this.timestamp = timestamp;
    }

    /**
     * @return the user_id
     */
    public String getUser_id() {
        return user_id;
    }

    /**
     * @param user_id the user_id to set
     */
    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }
    
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy