All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.gitee.summer9102.develop.alibaba.oss.AliOssProperties Maven / Gradle / Ivy

The newest version!
package com.gitee.summer9102.develop.alibaba.oss;

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

@ConfigurationProperties(prefix = "ali.oss")
public class AliOssProperties {
    /**
     * 是否启用
     */
    private boolean enabled = false;
    private String regionId = "cn-hangzhou";
    private String accessKeyId;
    private String accessKeySecret;
    private String endpoint;
    private String bucketName;
    /**
     * cdn映射域名
     */
    private String hostName;
    /**
     * bucket下文件夹路径
     */
    private String filePath;
    private String stsRoleArn;
    private Long stsTokenDurationSeconds = 3600L;

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public String getRegionId() {
        return regionId;
    }

    public void setRegionId(String regionId) {
        this.regionId = regionId;
    }

    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 getEndpoint() {
        return endpoint;
    }

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

    public String getBucketName() {
        return bucketName;
    }

    public void setBucketName(String bucketName) {
        this.bucketName = bucketName;
    }

    public String getHostName() {
        return hostName;
    }

    public void setHostName(String hostName) {
        this.hostName = hostName;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getStsRoleArn() {
        return stsRoleArn;
    }

    public void setStsRoleArn(String stsRoleArn) {
        this.stsRoleArn = stsRoleArn;
    }

    public Long getStsTokenDurationSeconds() {
        return stsTokenDurationSeconds;
    }

    public void setStsTokenDurationSeconds(Long stsTokenDurationSeconds) {
        this.stsTokenDurationSeconds = stsTokenDurationSeconds;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy