/*
* Copyright 2010 Cloud.com, 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 com.cloud.bridge.service.core.ec2;
import java.util.Calendar;
import com.cloud.bridge.util.EC2RestAuth;
public class EC2Snapshot {
private String id;
private String name;
private String volumeId;
private int volumeSize; // in gigs
private String type;
private String account;
private Calendar created;
public EC2Snapshot() {
id = null;
name = null;
volumeId = null;
volumeSize = 0;
type = null;
account = null;
created = null;
}
public void setId( String id ) {
this.id = id;
}
public String getId() {
return this.id;
}
public void setName( String name ) {
this.name = name;
}
public String getName() {
return this.name;
}
public void setVolumeId( String volumeId ) {
this.volumeId = volumeId;
}
public String getVolumeId() {
return this.volumeId;
}
public void setVolumeSize( int volumeSize ) {
this.volumeSize = volumeSize;
}
public int getVolumeSize() {
return this.volumeSize;
}
public void setType( String type ) {
this.type = type;
}
public String getType() {
return this.type;
}
public void setAccount( String account ) {
this.account = account;
}
public String getAccount() {
return this.account;
}
public void setCreated( String created ) {
this.created = EC2RestAuth.parseDateString( created );
}
public Calendar getCreated() {
return this.created;
}
}