package im.zhaojun.zfile.module.storage.model.param;

import im.zhaojun.zfile.module.storage.annotation.StorageParamItem;
import im.zhaojun.zfile.module.storage.annotation.StorageParamSelectOption;
import im.zhaojun.zfile.module.storage.model.enums.StorageParamTypeEnum;
import lombok.Getter;

/**
 * S3 初始化参数
 *
 * @author zhaojun
 */
@Getter
public class S3Param extends S3BaseParam {

	@StorageParamItem(name = "EndPoint", order = 30)
	private String endPoint;

	@StorageParamItem(name = "地域", order = 45)
	private String region;

	@StorageParamItem(name = "域名风格", type = StorageParamTypeEnum.SELECT,
			options = { @StorageParamSelectOption(value = "path-style", label = "路径风格"),
						@StorageParamSelectOption(value = "bucket-virtual-hosting", label = "虚拟主机风格") },
			linkName = "查看 S3 API 说明文档", link = "https://docs.aws.amazon.com/zh_cn/AmazonS3/latest/userguide/VirtualHosting.html#path-style-access",
			order = 55)
	private String pathStyle;

}