com.taotao.boot.oss.tencent.TencentProperties Maven / Gradle / Ivy
/*
* Copyright (c) 2020-2030, Shuigedeng ([email protected] & https://blog.taotaocloud.top/).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.taotao.boot.oss.tencent;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
/**
* 腾讯云服务Properties
*
* @author shuigedeng
* @version 2022.03
* @since 2020/10/26 09:39
*/
@RefreshScope
@ConfigurationProperties(prefix = TencentProperties.PREFIX)
public class TencentProperties {
public static final String PREFIX = "taotao.boot.oss.platform.qcloud";
/** 腾讯云绑定的域名 */
private String domain;
/** 腾讯云AppId */
private Integer appId;
/** 腾讯云SecretId */
private String secretId;
/** 腾讯云SecretKey */
private String secretKey;
/** 腾讯云BucketName */
private String bucketName;
/** 腾讯云COS所属地区 */
private String region;
public String getDomain() {
return domain;
}
public void setDomain(String domain) {
this.domain = domain;
}
public Integer getAppId() {
return appId;
}
public void setAppId(Integer appId) {
this.appId = appId;
}
public String getSecretId() {
return secretId;
}
public void setSecretId(String secretId) {
this.secretId = secretId;
}
public String getSecretKey() {
return secretKey;
}
public void setSecretKey(String secretKey) {
this.secretKey = secretKey;
}
public String getBucketName() {
return bucketName;
}
public void setBucketName(String bucketName) {
this.bucketName = bucketName;
}
public String getRegion() {
return region;
}
public void setRegion(String region) {
this.region = region;
}
}