yangys
2024-03-28 13ada1093cb8de6e31a718d2222429ded70133c8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
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;
    }
}