Class Container

    • 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 in Get 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.
      • hashCode

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

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