com.obs.services.model

## 类 VersionOrDeleteMarker

- java.lang.Object
- - com.obs.services.model.VersionOrDeleteMarker

-     public class VersionOrDeleteMarker
      extends Object

  Versioning object information

- - ### 构造器概要

    构造器
    构造器和说明
    `VersionOrDeleteMarker(String bucketName, String key, String versionId, boolean isLatest, Date lastModified, Owner owner, String etag, long size, StorageClassEnum storageClass, boolean isDeleteMarker, boolean appendable)` Constructor

  - ### 方法概要

    所有方法 实例方法 具体方法 已过时的方法
    限定符和类型 | 方法和说明
    --- | ---
    `String` | `getBucketName()` Obtain the name of the bucket to which the versioning object belongs.
    `String` | `getEtag()` Obtain ETag of the object.
    `String` | `getKey()` Obtain the object name.
    `Date` | `getLastModified()` Obtain the last modification date of the object.
    `String` | `getObjectKey()` Obtain the object name.
    `StorageClassEnum` | `getObjectStorageClass()` Obtain the storage class of the object.
    `Owner` | `getOwner()` Obtain the owner of the object.
    `long` | `getSize()` Obtain the object size (in bytes).
    `String` | `getStorageClass()` 已过时。
    `String` | `getVersionId()` Obtain the object version ID.
    `boolean` | `isAppendable()` Identify whether an object is appendable.
    `boolean` | `isDeleteMarker()` Check whether the versioning object has been deleted.
    `boolean` | `isLatest()` Check whether the object is of the current version.
    `String` | `toString()`

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

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

- - ### 构造器详细资料

    - #### VersionOrDeleteMarker

          public VersionOrDeleteMarker(String bucketName,
                                       String key,
                                       String versionId,
                                       boolean isLatest,
                                       Date lastModified,
                                       Owner owner,
                                       String etag,
                                       long size,
                                       StorageClassEnum storageClass,
                                       boolean isDeleteMarker,
                                       boolean appendable)

      Constructor
      参数:
        `bucketName` - Bucket name
        `key` - Object name
        `versionId` - Version ID
        `isLatest` - Identifier indicating whether the object is of the current version
        `lastModified` - Last modification date
        `owner` - Owner
        `etag` - ETag of the object
        `size` - Object size (in bytes)
        `storageClass` - Storage class of the object
        `isDeleteMarker` - Whether the versioning object has been deleted
        `appendable` - Whether object is appendable

  - ### 方法详细资料

    - #### getKey

          public String getKey()

      Obtain the object name.
      返回:
        Object name

    - #### getObjectKey

          public String getObjectKey()

      Obtain the object name.
      返回:
        Object name

    - #### getVersionId

          public String getVersionId()

      Obtain the object version ID.
      返回:
        Version ID of the object

    - #### isLatest

          public boolean isLatest()

      Check whether the object is of the current version.
      返回:
        Identifier indicating whether the object is of the current version

    - #### getLastModified

          public Date getLastModified()

      Obtain the last modification date of the object.
      返回:
        Last modification date of the object

    - #### getOwner

          public Owner getOwner()

      Obtain the owner of the object.
      返回:
        Owner of the object

    - #### getStorageClass

          @Deprecated
          public String getStorageClass()

      已过时。
      Obtain the storage class of the object.
      返回:
        Storage class of the object

    - #### getObjectStorageClass

          public StorageClassEnum getObjectStorageClass()

      Obtain the storage class of the object.
      返回:
        Storage class of the object

    - #### getEtag

          public String getEtag()

      Obtain ETag of the object.
      返回:
        Object ETag

    - #### getSize

          public long getSize()

      Obtain the object size (in bytes).
      返回:
        Object size

    - #### isDeleteMarker

          public boolean isDeleteMarker()

      Check whether the versioning object has been deleted.
      返回:
        Identifier indicating whether the versioning object has been deleted

    - #### isAppendable

          public boolean isAppendable()

      Identify whether an object is appendable.
      返回:
        Identifier specifying whether the object is an appendable object

    - #### getBucketName

          public String getBucketName()

      Obtain the name of the bucket to which the versioning object belongs.
      返回:
        Name of the versioning object-residing bucket

    - #### toString

          public String toString()

      覆盖:
        `toString` 在类中 `Object`

Copyright © 2021. All rights reserved.