
com.microsoft.windowsazure.services.blob.models.ListContainersResult 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.Date;
import java.util.HashMap;
import java.util.List;
import javax.xml.bind.annotation.XmlAttribute;
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.blob.implementation.MetadataAdapter;
import com.microsoft.windowsazure.services.blob.implementation.RFC1123DateAdapter;
@XmlRootElement(name = "EnumerationResults")
public class ListContainersResult {
private List containers;
private String accountName;
private String prefix;
private String marker;
private String nextMarker;
private int maxResults;
@XmlElementWrapper(name = "Containers")
@XmlElement(name = "Container")
public List getContainers() {
return containers;
}
public void setContainers(List value) {
this.containers = value;
}
@XmlAttribute(name = "AccountName")
public String getAccountName() {
return accountName;
}
public void setAccountName(String accountName) {
this.accountName = accountName;
}
@XmlElement(name = "Prefix")
public String getPrefix() {
return prefix;
}
public void setPrefix(String prefix) {
this.prefix = prefix;
}
@XmlElement(name = "Marker")
public String getMarker() {
return marker;
}
public void setMarker(String marker) {
this.marker = marker;
}
@XmlElement(name = "NextMarker")
public String getNextMarker() {
return nextMarker;
}
public void setNextMarker(String nextMarker) {
this.nextMarker = nextMarker;
}
@XmlElement(name = "MaxResults")
public int getMaxResults() {
return maxResults;
}
public void setMaxResults(int maxResults) {
this.maxResults = maxResults;
}
public static class Container {
private String name;
private String url;
private HashMap metadata = new HashMap();
private ContainerProperties properties;
@XmlElement(name = "Name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@XmlElement(name = "Url")
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
@XmlElement(name = "Properties")
public ContainerProperties getProperties() {
return properties;
}
public void setProperties(ContainerProperties properties) {
this.properties = properties;
}
@XmlElement(name = "Metadata")
@XmlJavaTypeAdapter(MetadataAdapter.class)
public HashMap getMetadata() {
return metadata;
}
public void setMetadata(HashMap metadata) {
this.metadata = metadata;
}
}
public static class ContainerProperties {
private Date lastModified;
private String etag;
@XmlElement(name = "Last-Modified")
@XmlJavaTypeAdapter(RFC1123DateAdapter.class)
public Date getLastModified() {
return lastModified;
}
public void setLastModified(Date lastModified) {
this.lastModified = lastModified;
}
@XmlElement(name = "Etag")
public String getEtag() {
return etag;
}
public void setEtag(String etag) {
this.etag = etag;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy