Class Container
- java.lang.Object
-
- org.jclouds.openstack.swift.v1.domain.Container
-
- All Implemented Interfaces:
Comparable<Container>
public class Container extends Object implements Comparable<Container>
Represents a Container in OpenStack Object Storage.- See Also:
ContainerApi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Container.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Container.Builder
builder()
int
compareTo(Container that)
boolean
equals(Object object)
com.google.common.base.Optional<Boolean>
getAnybodyRead()
Absent except inGet Container
commands.Long
getBytesUsed()
com.google.common.collect.Multimap<String,String>
getHeaders()
Map<String,String>
getMetadata()
NOTEString
getName()
Long
getObjectCount()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
Container.Builder
toBuilder()
String
toString()
-
-
-
Constructor Detail
-
Container
@ConstructorProperties({"name","count","bytes","anybodyRead","metadata","headers"}) protected Container(String name, Long objectCount, Long bytesUsed, com.google.common.base.Optional<Boolean> anybodyRead, Map<String,String> metadata, com.google.common.collect.Multimap<String,String> headers)
-
-
Method Detail
-
getName
public String getName()
- Returns:
- The name of this container.
-
getObjectCount
public Long getObjectCount()
- Returns:
- The count of objects for this container.
-
getBytesUsed
public Long getBytesUsed()
- Returns:
- The number of bytes used by this container.
-
getAnybodyRead
public com.google.common.base.Optional<Boolean> getAnybodyRead()
Absent except inGet Container
commands.- Returns:
- true if this container is publicly readable, false otherwise.
- See Also:
CreateContainerOptions.anybodyRead()
-
getMetadata
public Map<String,String> getMetadata()
NOTE
In current swift implementations, headers keys are lower-cased. This means characters such as turkish will probably not work out well.- Returns:
- a
Map<String, String>
containing this container's metadata.
-
getHeaders
public com.google.common.collect.Multimap<String,String> getHeaders()
- Returns:
- The HTTP headers for this account.
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
compareTo
public int compareTo(Container that)
- Specified by:
compareTo
in interfaceComparable<Container>
-
builder
public static Container.Builder builder()
-
toBuilder
public Container.Builder toBuilder()
-
-