com.aliyun.oss.model

## 类 OSSVersionSummary

- java.lang.Object
- - com.aliyun.oss.model.OSSVersionSummary

- 所有已实现的接口:
    Serializable

      public class OSSVersionSummary
      extends Object
      implements Serializable

  Contains the summary of a version stored in an OSS bucket. This object doesn't contain the version's full metadata or any of its contents.
  另请参阅:
    `OSSObject`, `OSSObjectSummary`, 序列化表格

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `protected String` | `bucketName` The name of the bucket in which this version is stored

  - ### 构造器概要

    构造器
    构造器和说明
    `OSSVersionSummary()`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `String` | `getBucketName()` Gets the name of the OSS bucket in which this version is stored.
    `String` | `getETag()` Gets the hex encoded hash of this version's contents as computed by OSS.
    `String` | `getKey()` Gets the key under which this version is stored in OSS.
    `Date` | `getLastModified()` Gets the date according to OSS at which this version was last modified.
    `Owner` | `getOwner()` Gets the owner of this version.
    `long` | `getSize()` Gets the size of this version in bytes.
    `String` | `getStorageClass()` Gets the storage class used by OSS for this version.
    `String` | `getVersionId()` Gets the version ID which uniquely identifies this version of an object.
    `boolean` | `isDeleteMarker()` Returns whether or not this version represents a delete marker.
    `boolean` | `isLatest()` Returns whether or not this version is the latest version for the associated object.
    `void` | `setBucketName(String bucketName)` Sets the name of the OSS bucket in which this version is stored.
    `void` | `setETag(String eTag)` Sets the hex encoded hash of this version's contents as computed by OSS.
    `void` | `setIsDeleteMarker(boolean isDeleteMarker)` Intended for internal use only in the OSS client code.
    `void` | `setIsLatest(boolean isLatest)` For internal use only.
    `void` | `setKey(String key)` Sets the key under which this version is stored in OSS.
    `void` | `setLastModified(Date lastModified)` Sets the date according to OSS at which this version was last modified.
    `void` | `setOwner(Owner owner)` For internal use only.
    `void` | `setSize(long size)` Sets the size of this version in bytes.
    `void` | `setStorageClass(String storageClass)` Sets the storage class used by OSS for this version.
    `void` | `setVersionId(String id)` Sets the version ID which uniquely identifies this version of an object.

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 字段详细资料

    - #### bucketName

          protected String bucketName

      The name of the bucket in which this version is stored

  - ### 构造器详细资料

    - #### OSSVersionSummary

          public OSSVersionSummary()

  - ### 方法详细资料

    - #### getBucketName

          public String getBucketName()

      Gets the name of the OSS bucket in which this version is stored.
      返回:
        The name of the OSS bucket in which this version is stored.
      另请参阅:
        `setBucketName(String)`

    - #### setBucketName

          public void setBucketName(String bucketName)

      Sets the name of the OSS bucket in which this version is stored.
      参数:
        `bucketName` - The name of the OSS bucket in which this version is stored.
      另请参阅:
        `getBucketName()`

    - #### getKey

          public String getKey()

      Gets the key under which this version is stored in OSS.
      返回:
        The key under which this version is stored in OSS.
      另请参阅:
        `setKey(String)`

    - #### setKey

          public void setKey(String key)

      Sets the key under which this version is stored in OSS.
      参数:
        `key` - The key under which this version is stored in OSS.
      另请参阅:
        `getKey()`

    - #### getVersionId

          public String getVersionId()

      Gets the version ID which uniquely identifies this version of an object.

      Objects created before versioning was enabled or when versioning is suspended will be given the default/null version ID (see `OSSConstants.NULL_VERSION_ID`). Note that the `OSSConstants.NULL_VERSION_ID` is a valid version ID and is not the same as not having a version ID.

      返回:
        The version ID which uniquely identifies this version of an object.
      另请参阅:
        `setVersionId(String)`

    - #### setVersionId

          public void setVersionId(String id)

      Sets the version ID which uniquely identifies this version of an object.
      参数:
        `id` - The version ID which uniquely identifies this version of an object.
      另请参阅:
        `getVersionId()`

    - #### isLatest

          public boolean isLatest()

      Returns whether or not this version is the latest version for the associated object.
      返回:
        The value `true` if this version is the latest version for the associated object; returns the value `false` if otherwise.

    - #### setIsLatest

          public void setIsLatest(boolean isLatest)

      For internal use only. Sets whether this version is the latest version for the associated object. This method is intended to be used only by the client internals and developers shouldn't need to use it.
      参数:
        `isLatest` - True if this version represents the latest version for the associated object in OSS.

    - #### getLastModified

          public Date getLastModified()

      Gets the date according to OSS at which this version was last modified.
      返回:
        The date according to OSS at which this version was last modified.
      另请参阅:
        `setLastModified(Date)`

    - #### setLastModified

          public void setLastModified(Date lastModified)

      Sets the date according to OSS at which this version was last modified.
      参数:
        `lastModified` - The date according to OSS at which this version was last modified.
      另请参阅:
        `getLastModified()`

    - #### getOwner

          public Owner getOwner()

      Gets the owner of this version. Returns `null` if the requester doesn't have permission for this version or owns the bucket in which it resides.
      返回:
        The owner of this version. Returns `null` if the requester doesn't have permission to see object ownership for this version.
      另请参阅:
        `setOwner(Owner)`

    - #### setOwner

          public void setOwner(Owner owner)

      For internal use only. Sets the owner of this version. This method is intended to be used only by the client internals and developers shouldn't need to use it.
      参数:
        `owner` - The owner of this version.
      另请参阅:
        `getOwner()`

    - #### isDeleteMarker

          public boolean isDeleteMarker()

      Returns whether or not this version represents a delete marker.

      Delete markers are special types of versions that have no data associated with them. When deleting a versioned object in OSS without specifying an explicit version ID, a new delete marker is created as the latest version of that object to mark that the object was deleted. This occurs even though the previous versions still exist in OSS.

      Delete markers have no data associated with them and therefore have no associated ACL, size or storage class. Only requesters with read access to a bucket can learn of their existence by listing the versions in a bucket.

      返回:
        The value `true` if this version represents a delete marker. Returns the value `false` if otherwise.

    - #### setIsDeleteMarker

          public void setIsDeleteMarker(boolean isDeleteMarker)

      Intended for internal use only in the OSS client code. Sets the value of the `isDeleteMarker` property to record if this is a delete marker or not.
      参数:
        `isDeleteMarker` - Specify `true`if this version summary represents a delete marker, otherwise `false`if it is a regular version summary.````

    - #### getETag

          public String getETag()

      Gets the hex encoded hash of this version's contents as computed by OSS.
      返回:
        The hex encoded hash of this version's contents as computed by OSS.
      另请参阅:
        `setETag(String)`

    - #### setETag

          public void setETag(String eTag)

      Sets the hex encoded hash of this version's contents as computed by OSS.
      参数:
        `eTag` - The hex encoded hash of this version's contents as computed by OSS.
      另请参阅:
        `getETag()`

    - #### getStorageClass

          public String getStorageClass()

      Gets the storage class used by OSS for this version.
      返回:
        The storage class used by OSS for this version.
      另请参阅:
        `setStorageClass(String)`

    - #### setStorageClass

          public void setStorageClass(String storageClass)

      Sets the storage class used by OSS for this version.
      参数:
        `storageClass` - The storage class used by OSS for this version.
      另请参阅:
        `getStorageClass()`

    - #### getSize

          public long getSize()

      Gets the size of this version in bytes.
      返回:
        The size of this version in bytes.
      另请参阅:
        `setSize(long)`

    - #### setSize

          public void setSize(long size)

      Sets the size of this version in bytes.
      参数:
        `size` - The size of this version in bytes.
      另请参阅:
        `getSize()`

Copyright © 2020. All Rights Reserved.