File tree 11 files changed +178
-0
lines changed
main/resources/software/amazon/awssdk/codegen/rules
test/resources/software/amazon/awssdk/codegen/poet/model
aws-core/src/main/java/software/amazon/awssdk/awscore/exception
sdk-core/src/main/java/software/amazon/awssdk/core
11 files changed +178
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,12 @@ public class SourceException extends SdkException {
23
23
24
24
@Override
25
25
SourceException build();
26
+
27
+ @Override
28
+ Builder numAttempts(Integer numAttempts);
29
+
30
+ @Override
31
+ Integer numAttempts();
26
32
}
27
33
28
34
public static class BuilderImpl extends SdkException.BuilderImpl implements Builder {
@@ -48,5 +54,16 @@ public class SourceException extends SdkException {
48
54
public SourceException build() {
49
55
return new SourceException(this);
50
56
}
57
+
58
+ @Override
59
+ public Builder numAttempts(Integer numAttempts) {
60
+ super.numAttempts(numAttempts);
61
+ return this;
62
+ }
63
+
64
+ @Override
65
+ public Integer numAttempts() {
66
+ return super.numAttempts();
67
+ }
51
68
}
52
69
}
Original file line number Diff line number Diff line change @@ -40,6 +40,12 @@ public interface Builder extends AwsServiceException.Builder {
40
40
41
41
@ Override
42
42
Builder writableStackTrace (Boolean writableStackTrace );
43
+
44
+ @ Override
45
+ Builder numAttempts (Integer numAttempts );
46
+
47
+ @ Override
48
+ Integer numAttempts ();
43
49
}
44
50
45
51
protected static class BuilderImpl extends AwsServiceException .BuilderImpl implements Builder {
@@ -86,6 +92,17 @@ public BuilderImpl writableStackTrace(Boolean writableStackTrace) {
86
92
return this ;
87
93
}
88
94
95
+ @ Override
96
+ public BuilderImpl numAttempts (Integer numAttempts ) {
97
+ this .numAttempts = numAttempts ;
98
+ return this ;
99
+ }
100
+
101
+ @ Override
102
+ public Integer numAttempts () {
103
+ return this .numAttempts ;
104
+ }
105
+
89
106
@ Override
90
107
public JsonProtocolTestsException build () {
91
108
return new JsonProtocolTestsException (this );
Original file line number Diff line number Diff line change @@ -188,6 +188,9 @@ public interface Builder extends SdkServiceException.Builder {
188
188
@ Override
189
189
Builder numAttempts (Integer numAttempts );
190
190
191
+ @ Override
192
+ Integer numAttempts ();
193
+
191
194
@ Override
192
195
Builder cause (Throwable t );
193
196
@@ -259,6 +262,11 @@ public Builder numAttempts(Integer numAttempts) {
259
262
return this ;
260
263
}
261
264
265
+ @ Override
266
+ public Integer numAttempts () {
267
+ return numAttempts ;
268
+ }
269
+
262
270
@ Override
263
271
public Builder cause (Throwable cause ) {
264
272
this .cause = cause ;
Original file line number Diff line number Diff line change @@ -58,6 +58,12 @@ public interface Builder extends SdkClientException.Builder {
58
58
@ Override
59
59
Builder writableStackTrace (Boolean writableStackTrace );
60
60
61
+ @ Override
62
+ Builder numAttempts (Integer numAttempts );
63
+
64
+ @ Override
65
+ Integer numAttempts ();
66
+
61
67
@ Override
62
68
EndpointDiscoveryFailedException build ();
63
69
}
@@ -89,6 +95,17 @@ public Builder writableStackTrace(Boolean writableStackTrace) {
89
95
return this ;
90
96
}
91
97
98
+ @ Override
99
+ public Builder numAttempts (Integer numAttempts ) {
100
+ this .numAttempts = numAttempts ;
101
+ return this ;
102
+ }
103
+
104
+ @ Override
105
+ public Integer numAttempts () {
106
+ return numAttempts ;
107
+ }
108
+
92
109
@ Override
93
110
public EndpointDiscoveryFailedException build () {
94
111
return new EndpointDiscoveryFailedException (this );
Original file line number Diff line number Diff line change @@ -59,6 +59,12 @@ public interface Builder extends SdkClientException.Builder {
59
59
60
60
@ Override
61
61
AbortedException build ();
62
+
63
+ @ Override
64
+ Builder numAttempts (Integer numAttempts );
65
+
66
+ @ Override
67
+ Integer numAttempts ();
62
68
}
63
69
64
70
protected static final class BuilderImpl extends SdkClientException .BuilderImpl implements Builder {
@@ -88,6 +94,17 @@ public Builder writableStackTrace(Boolean writableStackTrace) {
88
94
return this ;
89
95
}
90
96
97
+ @ Override
98
+ public Builder numAttempts (Integer numAttempts ) {
99
+ this .numAttempts = numAttempts ;
100
+ return this ;
101
+ }
102
+
103
+ @ Override
104
+ public Integer numAttempts () {
105
+ return numAttempts ;
106
+ }
107
+
91
108
@ Override
92
109
public AbortedException build () {
93
110
return new AbortedException (this );
Original file line number Diff line number Diff line change @@ -61,6 +61,12 @@ public interface Builder extends SdkClientException.Builder {
61
61
@ Override
62
62
Builder writableStackTrace (Boolean writableStackTrace );
63
63
64
+ @ Override
65
+ ApiCallAttemptTimeoutException .Builder numAttempts (Integer numAttempts );
66
+
67
+ @ Override
68
+ Integer numAttempts ();
69
+
64
70
@ Override
65
71
ApiCallAttemptTimeoutException build ();
66
72
}
@@ -92,6 +98,17 @@ public Builder writableStackTrace(Boolean writableStackTrace) {
92
98
return this ;
93
99
}
94
100
101
+ @ Override
102
+ public ApiCallAttemptTimeoutException .Builder numAttempts (Integer numAttempts ) {
103
+ this .numAttempts = numAttempts ;
104
+ return this ;
105
+ }
106
+
107
+ @ Override
108
+ public Integer numAttempts () {
109
+ return numAttempts ;
110
+ }
111
+
95
112
@ Override
96
113
public ApiCallAttemptTimeoutException build () {
97
114
return new ApiCallAttemptTimeoutException (this );
Original file line number Diff line number Diff line change @@ -61,6 +61,12 @@ public interface Builder extends SdkClientException.Builder {
61
61
@ Override
62
62
Builder writableStackTrace (Boolean writableStackTrace );
63
63
64
+ @ Override
65
+ Builder numAttempts (Integer numAttempts );
66
+
67
+ @ Override
68
+ Integer numAttempts ();
69
+
64
70
@ Override
65
71
ApiCallTimeoutException build ();
66
72
}
@@ -92,6 +98,17 @@ public Builder writableStackTrace(Boolean writableStackTrace) {
92
98
return this ;
93
99
}
94
100
101
+ @ Override
102
+ public Builder numAttempts (Integer numAttempts ) {
103
+ this .numAttempts = numAttempts ;
104
+ return this ;
105
+ }
106
+
107
+ @ Override
108
+ public Integer numAttempts () {
109
+ return numAttempts ;
110
+ }
111
+
95
112
@ Override
96
113
public ApiCallTimeoutException build () {
97
114
return new ApiCallTimeoutException (this );
Original file line number Diff line number Diff line change @@ -61,6 +61,12 @@ public interface Builder extends SdkClientException.Builder {
61
61
@ Override
62
62
Builder writableStackTrace (Boolean writableStackTrace );
63
63
64
+ @ Override
65
+ Builder numAttempts (Integer numAttempts );
66
+
67
+ @ Override
68
+ Integer numAttempts ();
69
+
64
70
@ Override
65
71
Crc32MismatchException build ();
66
72
}
@@ -92,6 +98,17 @@ public Builder writableStackTrace(Boolean writableStackTrace) {
92
98
return this ;
93
99
}
94
100
101
+ @ Override
102
+ public Builder numAttempts (Integer numAttempts ) {
103
+ this .numAttempts = numAttempts ;
104
+ return this ;
105
+ }
106
+
107
+ @ Override
108
+ public Integer numAttempts () {
109
+ return numAttempts ;
110
+ }
111
+
95
112
@ Override
96
113
public Crc32MismatchException build () {
97
114
return new Crc32MismatchException (this );
Original file line number Diff line number Diff line change @@ -63,6 +63,12 @@ public interface Builder extends SdkClientException.Builder {
63
63
@ Override
64
64
Builder writableStackTrace (Boolean writableStackTrace );
65
65
66
+ @ Override
67
+ Builder numAttempts (Integer numAttempts );
68
+
69
+ @ Override
70
+ Integer numAttempts ();
71
+
66
72
@ Override
67
73
NonRetryableException build ();
68
74
}
@@ -104,6 +110,17 @@ public Builder writableStackTrace(Boolean writableStackTrace) {
104
110
return this ;
105
111
}
106
112
113
+ @ Override
114
+ public Builder numAttempts (Integer numAttempts ) {
115
+ this .numAttempts = numAttempts ;
116
+ return this ;
117
+ }
118
+
119
+ @ Override
120
+ public Integer numAttempts () {
121
+ return numAttempts ;
122
+ }
123
+
107
124
@ Override
108
125
public NonRetryableException build () {
109
126
return new NonRetryableException (this );
Original file line number Diff line number Diff line change @@ -63,6 +63,12 @@ public interface Builder extends SdkClientException.Builder {
63
63
@ Override
64
64
Builder writableStackTrace (Boolean writableStackTrace );
65
65
66
+ @ Override
67
+ Builder numAttempts (Integer numAttempts );
68
+
69
+ @ Override
70
+ Integer numAttempts ();
71
+
66
72
@ Override
67
73
RetryableException build ();
68
74
}
@@ -94,6 +100,17 @@ public Builder writableStackTrace(Boolean writableStackTrace) {
94
100
return this ;
95
101
}
96
102
103
+ @ Override
104
+ public Builder numAttempts (Integer numAttempts ) {
105
+ this .numAttempts = numAttempts ;
106
+ return this ;
107
+ }
108
+
109
+ @ Override
110
+ public Integer numAttempts () {
111
+ return numAttempts ;
112
+ }
113
+
97
114
@ Override
98
115
public RetryableException build () {
99
116
return new RetryableException (this );
Original file line number Diff line number Diff line change @@ -87,6 +87,12 @@ public interface Builder extends SdkException.Builder {
87
87
88
88
@ Override
89
89
SdkClientException build ();
90
+
91
+ @ Override
92
+ Builder numAttempts (Integer numAttempts );
93
+
94
+ @ Override
95
+ Integer numAttempts ();
90
96
}
91
97
92
98
protected static class BuilderImpl extends SdkException .BuilderImpl implements Builder {
@@ -116,6 +122,17 @@ public Builder writableStackTrace(Boolean writableStackTrace) {
116
122
return this ;
117
123
}
118
124
125
+ @ Override
126
+ public Builder numAttempts (Integer numAttempts ) {
127
+ this .numAttempts = numAttempts ;
128
+ return this ;
129
+ }
130
+
131
+ @ Override
132
+ public Integer numAttempts () {
133
+ return numAttempts ;
134
+ }
135
+
119
136
@ Override
120
137
public SdkClientException build () {
121
138
return new SdkClientException (this );
You can’t perform that action at this time.
0 commit comments