com.volcengine.model.imagex.v2.GetImageServiceResResultStorageRulesItem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of volc-sdk-java Show documentation
Show all versions of volc-sdk-java Show documentation
The VOLC Engine SDK for Java
package com.volcengine.model.imagex.v2;
import com.alibaba.fastjson.JSON;
/**
* GetImageServiceResResultStorageRulesItem
*/
@lombok.Data
public final class GetImageServiceResResultStorageRulesItem {
/**
* 文件前缀,例如设置为 `prefix` 后,规则将只对名称以 `prefix` 开头的存储资源生效。
*/
@com.alibaba.fastjson.annotation.JSONField(name = "Prefix")
private String prefix;
/**
* 策略类型,固定取值 `Upload`,表示按上传时间。
*/
@com.alibaba.fastjson.annotation.JSONField(name = "Event")
private String event;
/**
* 策略天数,按照 Event 事件 Day 天后执行 Action 事件,即当匹配文件的上传时间符合指定天数后,自动按照处理策略对资源进行处理。
*/
@com.alibaba.fastjson.annotation.JSONField(name = "Day")
private Integer day;
/**
* 策略命中后需要执行的操作,取值如下所示:
*
*
*
* - `DELETE`:删除文件
*
* - `IA`:文件转低频存储
*
* - `ARCHIVE`:文件转归档存储
*
* - `COLD_ARCHIVE`:文件转冷归档存储
*
*
*/
@com.alibaba.fastjson.annotation.JSONField(name = "Action")
private String action;
/**
* 是否启用策略,取值如下所示:
*
*
*
* - `true`:是
*
* - `false`:否
*/
@com.alibaba.fastjson.annotation.JSONField(name = "Enable")
private Boolean enable;
@Override
public String toString() {
return JSON.toJSONString(this);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy