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:
  • Constructor Details

  • Method Details

    • 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 in
      invalid reference
      Get Container
      commands.
      Returns:
      true if this container is publicly readable, false otherwise.
      See Also:
    • 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.
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • string

      protected com.google.common.base.MoreObjects.ToStringHelper string()
    • compareTo

      public int compareTo(Container that)
      Specified by:
      compareTo in interface Comparable<Container>
    • builder

      public static Container.Builder builder()
    • toBuilder

      public Container.Builder toBuilder()