
com.microsoft.windowsazure.services.blob.models.ListBlobBlocksResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of microsoft-windowsazure-api
Show all versions of microsoft-windowsazure-api
API for Microsoft Windows Azure Clients
/**
* Copyright 2011 Microsoft Corporation
*
* 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.microsoft.windowsazure.services.blob.models;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import com.microsoft.windowsazure.services.core.utils.pipeline.Base64StringAdapter;
@XmlRootElement(name = "BlockList")
public class ListBlobBlocksResult {
private Date lastModified;
private String etag;
private String contentType;
private long contentLength;
private List committedBlocks = new ArrayList();
private List uncommittedBlocks = new ArrayList();
public Date getLastModified() {
return lastModified;
}
public void setLastModified(Date lastModified) {
this.lastModified = lastModified;
}
public String getEtag() {
return etag;
}
public void setEtag(String etag) {
this.etag = etag;
}
public String getContentType() {
return contentType;
}
public void setContentType(String contentType) {
this.contentType = contentType;
}
public long getContentLength() {
return contentLength;
}
public void setContentLength(long contentLength) {
this.contentLength = contentLength;
}
@XmlElementWrapper(name = "CommittedBlocks")
@XmlElement(name = "Block")
public List getCommittedBlocks() {
return committedBlocks;
}
public void setCommittedBlocks(List committedBlocks) {
this.committedBlocks = committedBlocks;
}
@XmlElementWrapper(name = "UncommittedBlocks")
@XmlElement(name = "Block")
public List getUncommittedBlocks() {
return uncommittedBlocks;
}
public void setUncommittedBlocks(List uncommittedBlocks) {
this.uncommittedBlocks = uncommittedBlocks;
}
public static class Entry {
private String blockId;
private long blockLength;
@XmlElement(name = "Name")
@XmlJavaTypeAdapter(Base64StringAdapter.class)
public String getBlockId() {
return blockId;
}
public void setBlockId(String blockId) {
this.blockId = blockId;
}
@XmlElement(name = "Size")
public long getBlockLength() {
return blockLength;
}
public void setBlockLength(long blockLength) {
this.blockLength = blockLength;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy