File tree 2 files changed +58
-7
lines changed
src/main/java/software/amazon/encryption/s3
2 files changed +58
-7
lines changed Original file line number Diff line number Diff line change 56
56
<dependency >
57
57
<groupId >software.amazon.awssdk</groupId >
58
58
<artifactId >bom</artifactId >
59
- <version >2.29.29 </version >
59
+ <version >2.30.38 </version >
60
60
<optional >true</optional >
61
61
<type >pom</type >
62
62
<scope >import</scope >
68
68
<dependency >
69
69
<groupId >software.amazon.awssdk</groupId >
70
70
<artifactId >s3</artifactId >
71
- <version >2.29.29 </version >
71
+ <version >2.30.38 </version >
72
72
</dependency >
73
73
74
74
<dependency >
75
75
<groupId >software.amazon.awssdk</groupId >
76
76
<artifactId >kms</artifactId >
77
- <version >2.29.29 </version >
77
+ <version >2.30.38 </version >
78
78
</dependency >
79
79
80
80
<!-- Used when enableMultipartPutObject is configured -->
81
81
<dependency >
82
82
<groupId >software.amazon.awssdk.crt</groupId >
83
83
<artifactId >aws-crt</artifactId >
84
84
<optional >true</optional >
85
- <version >0.33.5 </version >
85
+ <version >0.36.3 </version >
86
86
</dependency >
87
87
88
88
<dependency >
163
163
<dependency >
164
164
<groupId >software.amazon.awssdk</groupId >
165
165
<artifactId >sts</artifactId >
166
- <version >2.29.29 </version >
166
+ <version >2.30.38 </version >
167
167
<optional >true</optional >
168
168
<scope >test</scope >
169
169
</dependency >
Original file line number Diff line number Diff line change 6
6
7
7
public class S3EncryptionClientException extends SdkClientException {
8
8
9
+ private S3EncryptionClientException (Builder b ) {
10
+ super (b );
11
+ }
12
+
9
13
public S3EncryptionClientException (String message ) {
10
- super (SdkClientException .builder ()
14
+ super (S3EncryptionClientException .builder ()
11
15
.message (message ));
12
16
}
13
17
14
18
public S3EncryptionClientException (String message , Throwable cause ) {
15
- super (SdkClientException .builder ()
19
+ super (S3EncryptionClientException .builder ()
16
20
.message (message )
17
21
.cause (cause ));
18
22
}
23
+
24
+ @ Override
25
+ public Builder toBuilder () {
26
+ return new BuilderImpl (this );
27
+ }
28
+
29
+ public static Builder builder () {
30
+ return new BuilderImpl ();
31
+ }
32
+
33
+ public interface Builder extends SdkClientException .Builder {
34
+ @ Override
35
+ Builder message (String message );
36
+
37
+ @ Override
38
+ Builder cause (Throwable cause );
39
+
40
+ @ Override
41
+ S3EncryptionClientException build ();
42
+ }
43
+
44
+ protected static final class BuilderImpl extends SdkClientException .BuilderImpl implements Builder {
45
+
46
+ protected BuilderImpl () {
47
+ }
48
+
49
+ protected BuilderImpl (S3EncryptionClientException ex ) {
50
+ super (ex );
51
+ }
52
+
53
+ @ Override
54
+ public Builder message (String message ) {
55
+ this .message = message ;
56
+ return this ;
57
+ }
58
+
59
+ @ Override
60
+ public Builder cause (Throwable cause ) {
61
+ this .cause = cause ;
62
+ return this ;
63
+ }
64
+
65
+ @ Override
66
+ public S3EncryptionClientException build () {
67
+ return new S3EncryptionClientException (this );
68
+ }
69
+ }
19
70
}
You can’t perform that action at this time.
0 commit comments