32
32
@ Builder (setterPrefix = "with" )
33
33
@ NoArgsConstructor
34
34
@ AllArgsConstructor
35
- public class CloudFrontEvent implements Serializable , Cloneable {
35
+ public class CloudFrontEvent implements Serializable {
36
36
37
37
private static final long serialVersionUID = -7169297388214516660L ;
38
38
@@ -47,23 +47,14 @@ public class CloudFrontEvent implements Serializable, Cloneable {
47
47
@ Builder (setterPrefix = "with" )
48
48
@ NoArgsConstructor
49
49
@ AllArgsConstructor
50
- public static class Header implements Serializable , Cloneable {
50
+ public static class Header implements Serializable {
51
51
52
52
private static final long serialVersionUID = 7041042740552686996L ;
53
53
54
54
private String key ;
55
55
56
56
private String value ;
57
57
58
- @ Override
59
- public Header clone () {
60
- try {
61
- return (Header ) super .clone ();
62
- } catch (CloneNotSupportedException e ) {
63
- throw new IllegalStateException ("Got a CloneNotSupportedException from Object.clone()" , e );
64
- }
65
- }
66
-
67
58
}
68
59
69
60
/**
@@ -74,21 +65,12 @@ public Header clone() {
74
65
@ Builder (setterPrefix = "with" )
75
66
@ NoArgsConstructor
76
67
@ AllArgsConstructor
77
- public static class Config implements Serializable , Cloneable {
68
+ public static class Config implements Serializable {
78
69
79
70
private static final long serialVersionUID = -286083903805870299L ;
80
71
81
72
private String distributionId ;
82
73
83
- @ Override
84
- public Config clone () {
85
- try {
86
- return (Config ) super .clone ();
87
- } catch (CloneNotSupportedException e ) {
88
- throw new IllegalStateException ("Got a CloneNotSupportedException from Object.clone()" , e );
89
- }
90
- }
91
-
92
74
}
93
75
94
76
/**
@@ -99,7 +81,7 @@ public Config clone() {
99
81
@ Builder (setterPrefix = "with" )
100
82
@ NoArgsConstructor
101
83
@ AllArgsConstructor
102
- public static class Request implements Serializable , Cloneable {
84
+ public static class Request implements Serializable {
103
85
104
86
private static final long serialVersionUID = 3245036101075464149L ;
105
87
@@ -113,14 +95,6 @@ public static class Request implements Serializable, Cloneable {
113
95
114
96
private Map <String , List <Header >> headers ;
115
97
116
- @ Override
117
- public Request clone () {
118
- try {
119
- return (Request ) super .clone ();
120
- } catch (CloneNotSupportedException e ) {
121
- throw new IllegalStateException ("Got a CloneNotSupportedException from Object.clone()" , e );
122
- }
123
- }
124
98
}
125
99
126
100
/**
@@ -131,7 +105,7 @@ public Request clone() {
131
105
@ Builder (setterPrefix = "with" )
132
106
@ NoArgsConstructor
133
107
@ AllArgsConstructor
134
- public static class Response implements Serializable , Cloneable {
108
+ public static class Response implements Serializable {
135
109
136
110
private static final long serialVersionUID = -3711565862079053710L ;
137
111
@@ -143,15 +117,6 @@ public static class Response implements Serializable, Cloneable {
143
117
144
118
private Map <String , List <Header >> headers ;
145
119
146
- @ Override
147
- public Response clone () {
148
- try {
149
- return (Response ) super .clone ();
150
- } catch (CloneNotSupportedException e ) {
151
- throw new IllegalStateException ("Got a CloneNotSupportedException from Object.clone()" , e );
152
- }
153
- }
154
-
155
120
}
156
121
157
122
/**
@@ -162,7 +127,7 @@ public Response clone() {
162
127
@ Builder (setterPrefix = "with" )
163
128
@ NoArgsConstructor
164
129
@ AllArgsConstructor
165
- public static class CF implements Serializable , Cloneable {
130
+ public static class CF implements Serializable {
166
131
167
132
private static final long serialVersionUID = -5940167419180448832L ;
168
133
@@ -172,15 +137,6 @@ public static class CF implements Serializable, Cloneable {
172
137
173
138
private Response response ;
174
139
175
- @ Override
176
- public CF clone () {
177
- try {
178
- return (CF ) super .clone ();
179
- } catch (CloneNotSupportedException e ) {
180
- throw new IllegalStateException ("Got a CloneNotSupportedException from Object.clone()" , e );
181
- }
182
- }
183
-
184
140
}
185
141
186
142
/**
@@ -191,29 +147,11 @@ public CF clone() {
191
147
@ Builder (setterPrefix = "with" )
192
148
@ NoArgsConstructor
193
149
@ AllArgsConstructor
194
- public static class Record implements Serializable , Cloneable {
150
+ public static class Record implements Serializable {
195
151
196
152
private static final long serialVersionUID = -6114551370798889850L ;
197
153
198
154
private CF cf ;
199
155
200
- @ Override
201
- public Record clone () {
202
- try {
203
- return (Record ) super .clone ();
204
- } catch (CloneNotSupportedException e ) {
205
- throw new IllegalStateException ("Got a CloneNotSupportedException from Object.clone()" , e );
206
- }
207
- }
208
-
209
- }
210
-
211
- @ Override
212
- public CloudFrontEvent clone () {
213
- try {
214
- return (CloudFrontEvent ) super .clone ();
215
- } catch (CloneNotSupportedException e ) {
216
- throw new IllegalStateException ("Got a CloneNotSupportedException from Object.clone()" , e );
217
- }
218
156
}
219
157
}
0 commit comments