类 ObjectRetentionService

java.lang.Object
cn.herodotus.engine.oss.minio.definition.service.BaseMinioService
cn.herodotus.engine.oss.minio.service.ObjectRetentionService

@Service public class ObjectRetentionService extends BaseMinioService

Description: Minio 对象保留配置

作者:
: gengwei.zheng
Date:
: 2022/6/30 21:08
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    io.minio.messages.Retention
    getObjectRetention(io.minio.GetObjectRetentionArgs getObjectRetentionArgs)
    获取对象的保留配置
    io.minio.messages.Retention
    getObjectRetention(String bucketName, String objectName)
    获取对象的保留配置
    io.minio.messages.Retention
    getObjectRetention(String bucketName, String objectName, String versionId)
    获取对象的保留配置
    io.minio.messages.Retention
    getObjectRetention(String bucketName, String objectName, String region, String versionId)
    获取对象的保留配置
    void
    setObjectRetention(io.minio.SetObjectRetentionArgs setObjectRetentionArgs)
    添加对象的保留配置,存储桶需要设置为对象锁定模式,并且没有开启版本控制,否则会报错收蠕虫保护。
    void
    setObjectRetention(String bucketName, String objectName, io.minio.messages.Retention retention)
    添加对象的保留配置,存储桶需要设置为对象锁定模式,并且没有开启版本控制,否则会报错收蠕虫保护。
    void
    setObjectRetention(String bucketName, String objectName, String versionId, io.minio.messages.Retention retention)
    添加对象的保留配置,存储桶需要设置为对象锁定模式,并且没有开启版本控制,否则会报错收蠕虫保护。
    void
    setObjectRetention(String bucketName, String objectName, String region, String versionId, io.minio.messages.Retention retention)
    添加对象的保留配置,存储桶需要设置为对象锁定模式,并且没有开启版本控制,否则会报错收蠕虫保护。

    从类继承的方法 cn.herodotus.engine.oss.minio.definition.service.BaseMinioService

    close, getMinioClient

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

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • ObjectRetentionService

      public ObjectRetentionService()
  • 方法详细资料

    • setObjectRetention

      public void setObjectRetention(String bucketName, String objectName, io.minio.messages.Retention retention)
      添加对象的保留配置,存储桶需要设置为对象锁定模式,并且没有开启版本控制,否则会报错收蠕虫保护。
      参数:
      bucketName - bucketName
      objectName - objectName
      retention - Retention
    • setObjectRetention

      public void setObjectRetention(String bucketName, String objectName, String versionId, io.minio.messages.Retention retention)
      添加对象的保留配置,存储桶需要设置为对象锁定模式,并且没有开启版本控制,否则会报错收蠕虫保护。
      参数:
      bucketName - bucketName
      objectName - objectName
      versionId - versionId
      retention - Retention
    • setObjectRetention

      public void setObjectRetention(String bucketName, String objectName, String region, String versionId, io.minio.messages.Retention retention)
      添加对象的保留配置,存储桶需要设置为对象锁定模式,并且没有开启版本控制,否则会报错收蠕虫保护。
      参数:
      bucketName - bucketName
      objectName - objectName
      region - region
      versionId - versionId
      retention - Retention
    • setObjectRetention

      public void setObjectRetention(io.minio.SetObjectRetentionArgs setObjectRetentionArgs)
      添加对象的保留配置,存储桶需要设置为对象锁定模式,并且没有开启版本控制,否则会报错收蠕虫保护。
      参数:
      setObjectRetentionArgs - SetObjectRetentionArgs
    • getObjectRetention

      public io.minio.messages.Retention getObjectRetention(String bucketName, String objectName)
      获取对象的保留配置
      参数:
      bucketName - bucketName
      objectName - objectName
    • getObjectRetention

      public io.minio.messages.Retention getObjectRetention(String bucketName, String objectName, String versionId)
      获取对象的保留配置
      参数:
      bucketName - bucketName
      objectName - objectName
      versionId - versionId
    • getObjectRetention

      public io.minio.messages.Retention getObjectRetention(String bucketName, String objectName, String region, String versionId)
      获取对象的保留配置
      参数:
      bucketName - bucketName
      objectName - objectName
      region - region
      versionId - versionId
    • getObjectRetention

      public io.minio.messages.Retention getObjectRetention(io.minio.GetObjectRetentionArgs getObjectRetentionArgs)
      获取对象的保留配置
      参数:
      getObjectRetentionArgs - GetObjectRetentionArgs
      返回:
      Retention