File tree 4 files changed +21
-23
lines changed
src/main/java/com/amazonaws/services/lambda/runtime/events
4 files changed +21
-23
lines changed Original file line number Diff line number Diff line change 43
43
</distributionManagement >
44
44
45
45
<dependencies >
46
- <dependency >
47
- <groupId >joda-time</groupId >
48
- <artifactId >joda-time</artifactId >
49
- <version >2.6</version >
50
- </dependency >
51
46
<dependency >
52
47
<groupId >com.amazonaws</groupId >
53
48
<artifactId >aws-java-sdk-s3</artifactId >
54
49
<version >1.11.163</version >
55
50
<scope >provided</scope >
51
+ <exclusions >
52
+ <exclusion >
53
+ <groupId >joda-time</groupId >
54
+ <artifactId >joda-time</artifactId >
55
+ </exclusion >
56
+ </exclusions >
56
57
</dependency >
57
58
<dependency >
58
59
<groupId >com.amazonaws</groupId >
Original file line number Diff line number Diff line change 1
1
package com .amazonaws .services .lambda .runtime .events ;
2
2
3
- import org .joda .time .DateTime ;
4
-
5
3
import java .io .Serializable ;
4
+ import java .time .ZonedDateTime ;
6
5
import java .util .List ;
7
6
8
7
/**
@@ -270,7 +269,7 @@ public static class Record implements Serializable, Cloneable {
270
269
271
270
private String eventVersion ;
272
271
273
- private DateTime eventTime ;
272
+ private ZonedDateTime eventTime ;
274
273
275
274
private String eventTriggerName ;
276
275
@@ -346,22 +345,22 @@ public Record withEventVersion(String eventVersion) {
346
345
/**
347
346
* @return event timestamp
348
347
*/
349
- public DateTime getEventTime () {
348
+ public ZonedDateTime getEventTime () {
350
349
return this .eventTime ;
351
350
}
352
351
353
352
/**
354
353
* @param eventTime event timestamp
355
354
*/
356
- public void setEventTime (DateTime eventTime ) {
355
+ public void setEventTime (ZonedDateTime eventTime ) {
357
356
this .eventTime = eventTime ;
358
357
}
359
358
360
359
/**
361
360
* @param eventTime event timestamp
362
361
* @return Record
363
362
*/
364
- public Record withEventTime (DateTime eventTime ) {
363
+ public Record withEventTime (ZonedDateTime eventTime ) {
365
364
setEventTime (eventTime );
366
365
return this ;
367
366
}
Original file line number Diff line number Diff line change 12
12
*/
13
13
package com .amazonaws .services .lambda .runtime .events ;
14
14
15
- import org .joda .time .DateTime ;
16
-
17
15
import java .io .Serializable ;
16
+ import java .time .ZonedDateTime ;
18
17
import java .util .List ;
19
18
import java .util .Map ;
20
19
@@ -181,7 +180,7 @@ public static class SNS implements Serializable, Cloneable {
181
180
182
181
private String signature ;
183
182
184
- private DateTime timestamp ;
183
+ private ZonedDateTime timestamp ;
185
184
186
185
private String topicArn ;
187
186
@@ -421,23 +420,23 @@ public SNS withSignature(String signature) {
421
420
* Gets the message time stamp
422
421
* @return timestamp of sns message
423
422
*/
424
- public DateTime getTimestamp () {
423
+ public ZonedDateTime getTimestamp () {
425
424
return timestamp ;
426
425
}
427
426
428
427
/**
429
428
* Sets the message time stamp
430
429
* @param timestamp A Date object representing the message time stamp
431
430
*/
432
- public void setTimestamp (DateTime timestamp ) {
431
+ public void setTimestamp (ZonedDateTime timestamp ) {
433
432
this .timestamp = timestamp ;
434
433
}
435
434
436
435
/**
437
436
* @param timestamp timestamp
438
437
* @return SNS
439
438
*/
440
- public SNS withTimestamp (DateTime timestamp ) {
439
+ public SNS withTimestamp (ZonedDateTime timestamp ) {
441
440
setTimestamp (timestamp );
442
441
return this ;
443
442
}
Original file line number Diff line number Diff line change 13
13
14
14
package com .amazonaws .services .lambda .runtime .events ;
15
15
16
- import org .joda .time .DateTime ;
17
-
18
16
import java .io .Serializable ;
17
+ import java .time .ZonedDateTime ;
19
18
import java .util .List ;
20
19
import java .util .Map ;
21
20
@@ -38,7 +37,7 @@ public class ScheduledEvent implements Serializable, Cloneable {
38
37
39
38
private String id ;
40
39
41
- private DateTime time ;
40
+ private ZonedDateTime time ;
42
41
43
42
private List <String > resources ;
44
43
@@ -165,22 +164,22 @@ public ScheduledEvent withSource(String source) {
165
164
/**
166
165
* @return the timestamp for when the event is scheduled
167
166
*/
168
- public DateTime getTime () {
167
+ public ZonedDateTime getTime () {
169
168
return this .time ;
170
169
}
171
170
172
171
/**
173
172
* @param time the timestamp for when the event is scheduled
174
173
*/
175
- public void setTime (DateTime time ) {
174
+ public void setTime (ZonedDateTime time ) {
176
175
this .time = time ;
177
176
}
178
177
179
178
/**
180
179
* @param time the timestamp for when the event is scheduled
181
180
* @return ScheduledEvent
182
181
*/
183
- public ScheduledEvent withTime (DateTime time ) {
182
+ public ScheduledEvent withTime (ZonedDateTime time ) {
184
183
setTime (time );
185
184
return this ;
186
185
}
You can’t perform that action at this time.
0 commit comments