org.xlcloud.openstack.model.climate.Event Maven / Gradle / Ivy
/*
* 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.climate;
import java.util.Date;
import org.xlcloud.openstack.model.climate.json.OpenStackDateDeserializer;
import org.xlcloud.openstack.model.climate.json.OpenStackDateSerializer;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
/**
* Base lease event
*
* @author Michał Kamiński, AMG.net
*/
public class Event {
@JsonProperty("id")
private String id;
@JsonProperty("event_type")
private EventType eventType;
@JsonProperty("status")
private EventStatus status;
@JsonProperty("lease_id")
private String leaseId;
@JsonProperty("created_at")
@JsonSerialize(using=OpenStackDateSerializer.class)
@JsonDeserialize(using=OpenStackDateDeserializer.class)
private Date createdAt;
@JsonProperty("updated_at")
@JsonSerialize(using=OpenStackDateSerializer.class)
@JsonDeserialize(using=OpenStackDateDeserializer.class)
private Date updatedAt;
@JsonProperty("time")
@JsonSerialize(using=OpenStackDateSerializer.class)
@JsonDeserialize(using=OpenStackDateDeserializer.class)
private Date time;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public EventType getEventType() {
return eventType;
}
public void setEventType(EventType eventType) {
this.eventType = eventType;
}
public EventStatus getStatus() {
return status;
}
public void setStatus(EventStatus status) {
this.status = status;
}
public String getLeaseId() {
return leaseId;
}
public void setLeaseId(String leaseId) {
this.leaseId = leaseId;
}
public Date getCreatedAt() {
return createdAt;
}
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
public Date getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
}
public Date getTime() {
return time;
}
public void setTime(Date time) {
this.time = time;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy