package com.qianwen.core.oss.props; import com.qianwen.core.tool.support.Kv; import org.springframework.boot.context.properties.ConfigurationProperties; @ConfigurationProperties(prefix = "oss") /* loaded from: blade-starter-oss-9.3.0.0-SNAPSHOT.jar:org/springblade/core/oss/props/OssProperties.class */ public class OssProperties { private Boolean enabled; private String name; private String endpoint; private String appId; private String region; private String accessKey; private String secretKey; private Kv args; private Boolean tenantMode = false; private String bucketName = "bladex"; public void setEnabled(final Boolean enabled) { this.enabled = enabled; } public void setName(final String name) { this.name = name; } public void setTenantMode(final Boolean tenantMode) { this.tenantMode = tenantMode; } public void setEndpoint(final String endpoint) { this.endpoint = endpoint; } public void setAppId(final String appId) { this.appId = appId; } public void setRegion(final String region) { this.region = region; } public void setAccessKey(final String accessKey) { this.accessKey = accessKey; } public void setSecretKey(final String secretKey) { this.secretKey = secretKey; } public void setBucketName(final String bucketName) { this.bucketName = bucketName; } public void setArgs(final Kv args) { this.args = args; } public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof OssProperties) { OssProperties other = (OssProperties) o; if (other.canEqual(this)) { Object this$enabled = getEnabled(); Object other$enabled = other.getEnabled(); if (this$enabled == null) { if (other$enabled != null) { return false; } } else if (!this$enabled.equals(other$enabled)) { return false; } Object this$tenantMode = getTenantMode(); Object other$tenantMode = other.getTenantMode(); if (this$tenantMode == null) { if (other$tenantMode != null) { return false; } } else if (!this$tenantMode.equals(other$tenantMode)) { return false; } Object this$name = getName(); Object other$name = other.getName(); if (this$name == null) { if (other$name != null) { return false; } } else if (!this$name.equals(other$name)) { return false; } Object this$endpoint = getEndpoint(); Object other$endpoint = other.getEndpoint(); if (this$endpoint == null) { if (other$endpoint != null) { return false; } } else if (!this$endpoint.equals(other$endpoint)) { return false; } Object this$appId = getAppId(); Object other$appId = other.getAppId(); if (this$appId == null) { if (other$appId != null) { return false; } } else if (!this$appId.equals(other$appId)) { return false; } Object this$region = getRegion(); Object other$region = other.getRegion(); if (this$region == null) { if (other$region != null) { return false; } } else if (!this$region.equals(other$region)) { return false; } Object this$accessKey = getAccessKey(); Object other$accessKey = other.getAccessKey(); if (this$accessKey == null) { if (other$accessKey != null) { return false; } } else if (!this$accessKey.equals(other$accessKey)) { return false; } Object this$secretKey = getSecretKey(); Object other$secretKey = other.getSecretKey(); if (this$secretKey == null) { if (other$secretKey != null) { return false; } } else if (!this$secretKey.equals(other$secretKey)) { return false; } Object this$bucketName = getBucketName(); Object other$bucketName = other.getBucketName(); if (this$bucketName == null) { if (other$bucketName != null) { return false; } } else if (!this$bucketName.equals(other$bucketName)) { return false; } Object this$args = getArgs(); Object other$args = other.getArgs(); return this$args == null ? other$args == null : this$args.equals(other$args); } return false; } return false; } protected boolean canEqual(final Object other) { return other instanceof OssProperties; } public int hashCode() { Object $enabled = getEnabled(); int result = (1 * 59) + ($enabled == null ? 43 : $enabled.hashCode()); Object $tenantMode = getTenantMode(); int result2 = (result * 59) + ($tenantMode == null ? 43 : $tenantMode.hashCode()); Object $name = getName(); int result3 = (result2 * 59) + ($name == null ? 43 : $name.hashCode()); Object $endpoint = getEndpoint(); int result4 = (result3 * 59) + ($endpoint == null ? 43 : $endpoint.hashCode()); Object $appId = getAppId(); int result5 = (result4 * 59) + ($appId == null ? 43 : $appId.hashCode()); Object $region = getRegion(); int result6 = (result5 * 59) + ($region == null ? 43 : $region.hashCode()); Object $accessKey = getAccessKey(); int result7 = (result6 * 59) + ($accessKey == null ? 43 : $accessKey.hashCode()); Object $secretKey = getSecretKey(); int result8 = (result7 * 59) + ($secretKey == null ? 43 : $secretKey.hashCode()); Object $bucketName = getBucketName(); int result9 = (result8 * 59) + ($bucketName == null ? 43 : $bucketName.hashCode()); Object $args = getArgs(); return (result9 * 59) + ($args == null ? 43 : $args.hashCode()); } public String toString() { return "OssProperties(enabled=" + getEnabled() + ", name=" + getName() + ", tenantMode=" + getTenantMode() + ", endpoint=" + getEndpoint() + ", appId=" + getAppId() + ", region=" + getRegion() + ", accessKey=" + getAccessKey() + ", secretKey=" + getSecretKey() + ", bucketName=" + getBucketName() + ", args=" + getArgs() + ")"; } public Boolean getEnabled() { return this.enabled; } public String getName() { return this.name; } public Boolean getTenantMode() { return this.tenantMode; } public String getEndpoint() { return this.endpoint; } public String getAppId() { return this.appId; } public String getRegion() { return this.region; } public String getAccessKey() { return this.accessKey; } public String getSecretKey() { return this.secretKey; } public String getBucketName() { return this.bucketName; } public Kv getArgs() { return this.args; } }