If you think the Android project android-rackspacecloud listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*//www.java2s.com
* 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 net.elasticgrid.rackspace.cloudservers;
import java.io.Serializable;
import java.util.Date;
/**
* Image: collection of files used to create or rebuild a server.
*
* @author Jerome Bernard
*/publicclass Image implements Serializable {
privatefinalInteger id;
privatefinal String name;
privatefinalInteger serverId;
privatefinal Date updated;
privatefinal Date created;
privatefinalInteger progress;
privatefinal Status status;
public Image(Integer id, String name, Integer serverId, Date updated, Date created, Integer progress, Status status) {
this.id = id;
this.name = name;
this.serverId = serverId;
this.updated = updated;
this.created = created;
this.progress = progress;
this.status = status;
}
publicInteger getId() {
return id;
}
public String getName() {
return name;
}
publicInteger getServerId() {
return serverId;
}
public Date getUpdated() {
return updated;
}
public Date getCreated() {
return created;
}
publicInteger getProgress() {
return progress;
}
public Status getStatus() {
return status;
}
@Override
public String toString() {
final StringBuilder sb = new StringBuilder();
sb.append("Image");
sb.append("{id=").append(id);
sb.append(", name='").append(name).append('\'');
sb.append(", serverId=").append(serverId);
sb.append(", updated=").append(updated);
sb.append(", created=").append(created);
sb.append(", progress=").append(progress);
sb.append(", status=").append(status);
sb.append('}');
return sb.toString();
}
enum Status implements Serializable {
UNKNOWN, ACTIVE, SAVING, PREPARING, QUEUED, FAILED
}
}