package cn.nianxx.thhotel.integrations.storage.aliyunoss.service.impl;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 阿里云 OSS 配置。Secret 只能由环境变量或部署平台注入，不得提交真实值。
 */
@Component
@ConfigurationProperties(prefix = "aliyun.oss")
public class AliyunOssProperties {

    /** OSS Endpoint。 */
    private String endpoint = "";
    /** OSS Bucket 名称。 */
    private String bucket = "";
    /** OSS AccessKey ID。 */
    private String accessKeyId = "";
    /** OSS AccessKey Secret。 */
    private String accessKeySecret = "";
    /** OSS 公开访问基础 URL。 */
    private String publicBaseUrl = "";
    /** Debug EML 对象路径前缀。 */
    private String debugEmlPrefix = "debug/eml/";

    public String getEndpoint() {
        return endpoint;
    }

    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }

    public String getBucket() {
        return bucket;
    }

    public void setBucket(String bucket) {
        this.bucket = bucket;
    }

    public String getAccessKeyId() {
        return accessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
    }

    public String getAccessKeySecret() {
        return accessKeySecret;
    }

    public void setAccessKeySecret(String accessKeySecret) {
        this.accessKeySecret = accessKeySecret;
    }

    public String getPublicBaseUrl() {
        return publicBaseUrl;
    }

    public void setPublicBaseUrl(String publicBaseUrl) {
        this.publicBaseUrl = publicBaseUrl;
    }

    public String getDebugEmlPrefix() {
        return debugEmlPrefix;
    }

    public void setDebugEmlPrefix(String debugEmlPrefix) {
        this.debugEmlPrefix = debugEmlPrefix;
    }
}
