From 9c2c1eaf1a5cc70c187f06b9ec1a8c1fcc278693 Mon Sep 17 00:00:00 2001 From: Igor Stepanov Date: Sun, 3 Feb 2019 11:37:49 +0200 Subject: [PATCH 1/3] GH-72: Configure 'maven-compiler-plugin' to use Java 8 --- aws-lambda-java-events/pom.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/aws-lambda-java-events/pom.xml b/aws-lambda-java-events/pom.xml index f66124c2..80be8b2a 100644 --- a/aws-lambda-java-events/pom.xml +++ b/aws-lambda-java-events/pom.xml @@ -29,6 +29,12 @@ + + 1.8 + ${java.version} + ${java.version} + + sonatype-nexus-staging From 8fed235a16be7fd14032bcd4d697c20783428007 Mon Sep 17 00:00:00 2001 From: Igor Stepanov Date: Sun, 3 Feb 2019 11:47:27 +0200 Subject: [PATCH 2/3] GH-72: Replace 'joda-time' with 'java.time.ZonedDateTime' --- aws-lambda-java-events/pom.xml | 11 ++++++----- .../lambda/runtime/events/CodeCommitEvent.java | 11 +++++------ .../services/lambda/runtime/events/SNSEvent.java | 11 +++++------ .../lambda/runtime/events/ScheduledEvent.java | 11 +++++------ 4 files changed, 21 insertions(+), 23 deletions(-) diff --git a/aws-lambda-java-events/pom.xml b/aws-lambda-java-events/pom.xml index 80be8b2a..e2722e48 100644 --- a/aws-lambda-java-events/pom.xml +++ b/aws-lambda-java-events/pom.xml @@ -43,16 +43,17 @@ - - joda-time - joda-time - 2.6 - com.amazonaws aws-java-sdk-s3 1.11.163 provided + + + joda-time + joda-time + + com.amazonaws diff --git a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/CodeCommitEvent.java b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/CodeCommitEvent.java index cd12ffdc..24dffcde 100644 --- a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/CodeCommitEvent.java +++ b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/CodeCommitEvent.java @@ -1,8 +1,7 @@ package com.amazonaws.services.lambda.runtime.events; -import org.joda.time.DateTime; - import java.io.Serializable; +import java.time.ZonedDateTime; import java.util.List; /** @@ -270,7 +269,7 @@ public static class Record implements Serializable, Cloneable { private String eventVersion; - private DateTime eventTime; + private ZonedDateTime eventTime; private String eventTriggerName; @@ -346,14 +345,14 @@ public Record withEventVersion(String eventVersion) { /** * @return event timestamp */ - public DateTime getEventTime() { + public ZonedDateTime getEventTime() { return this.eventTime; } /** * @param eventTime event timestamp */ - public void setEventTime(DateTime eventTime) { + public void setEventTime(ZonedDateTime eventTime) { this.eventTime = eventTime; } @@ -361,7 +360,7 @@ public void setEventTime(DateTime eventTime) { * @param eventTime event timestamp * @return Record */ - public Record withEventTime(DateTime eventTime) { + public Record withEventTime(ZonedDateTime eventTime) { setEventTime(eventTime); return this; } diff --git a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/SNSEvent.java b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/SNSEvent.java index 0649581c..dc909a4a 100644 --- a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/SNSEvent.java +++ b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/SNSEvent.java @@ -12,9 +12,8 @@ */ package com.amazonaws.services.lambda.runtime.events; -import org.joda.time.DateTime; - import java.io.Serializable; +import java.time.ZonedDateTime; import java.util.List; import java.util.Map; @@ -181,7 +180,7 @@ public static class SNS implements Serializable, Cloneable { private String signature; - private DateTime timestamp; + private ZonedDateTime timestamp; private String topicArn; @@ -421,7 +420,7 @@ public SNS withSignature(String signature) { * Gets the message time stamp * @return timestamp of sns message */ - public DateTime getTimestamp() { + public ZonedDateTime getTimestamp() { return timestamp; } @@ -429,7 +428,7 @@ public DateTime getTimestamp() { * Sets the message time stamp * @param timestamp A Date object representing the message time stamp */ - public void setTimestamp(DateTime timestamp) { + public void setTimestamp(ZonedDateTime timestamp) { this.timestamp = timestamp; } @@ -437,7 +436,7 @@ public void setTimestamp(DateTime timestamp) { * @param timestamp timestamp * @return SNS */ - public SNS withTimestamp(DateTime timestamp) { + public SNS withTimestamp(ZonedDateTime timestamp) { setTimestamp(timestamp); return this; } diff --git a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/ScheduledEvent.java b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/ScheduledEvent.java index 5908c39c..ba18e702 100644 --- a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/ScheduledEvent.java +++ b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/ScheduledEvent.java @@ -13,9 +13,8 @@ package com.amazonaws.services.lambda.runtime.events; -import org.joda.time.DateTime; - import java.io.Serializable; +import java.time.ZonedDateTime; import java.util.List; import java.util.Map; @@ -38,7 +37,7 @@ public class ScheduledEvent implements Serializable, Cloneable { private String id; - private DateTime time; + private ZonedDateTime time; private List resources; @@ -165,14 +164,14 @@ public ScheduledEvent withSource(String source) { /** * @return the timestamp for when the event is scheduled */ - public DateTime getTime() { + public ZonedDateTime getTime() { return this.time; } /** * @param time the timestamp for when the event is scheduled */ - public void setTime(DateTime time) { + public void setTime(ZonedDateTime time) { this.time = time; } @@ -180,7 +179,7 @@ public void setTime(DateTime time) { * @param time the timestamp for when the event is scheduled * @return ScheduledEvent */ - public ScheduledEvent withTime(DateTime time) { + public ScheduledEvent withTime(ZonedDateTime time) { setTime(time); return this; } From 592cb32918f36408fcda2b86c5f96fac21c50b62 Mon Sep 17 00:00:00 2001 From: Igor Stepanov Date: Sun, 3 Feb 2019 11:56:47 +0200 Subject: [PATCH 3/3] GH-72: Fix license headers and remove extra spaces --- .../events/APIGatewayProxyRequestEvent.java | 15 +++++++++++++- .../events/APIGatewayProxyResponseEvent.java | 17 ++++++++++++++-- .../runtime/events/CloudFrontEvent.java | 13 ++++++++++++ .../runtime/events/CloudWatchLogsEvent.java | 2 +- .../runtime/events/CodeCommitEvent.java | 12 +++++++++++ .../lambda/runtime/events/CognitoEvent.java | 2 +- .../lambda/runtime/events/ConfigEvent.java | 20 +++++++++---------- .../lambda/runtime/events/DynamodbEvent.java | 15 ++++++++++++-- .../lambda/runtime/events/IoTButtonEvent.java | 13 ++++++++++++ ...lyticsFirehoseInputPreprocessingEvent.java | 3 ++- ...isAnalyticsInputPreprocessingResponse.java | 2 +- .../KinesisAnalyticsOutputDeliveryEvent.java | 3 ++- ...inesisAnalyticsOutputDeliveryResponse.java | 3 ++- ...alyticsStreamsInputPreprocessingEvent.java | 3 ++- .../lambda/runtime/events/KinesisEvent.java | 15 ++++++++++++-- .../runtime/events/KinesisFirehoseEvent.java | 2 +- .../lambda/runtime/events/LexEvent.java | 2 +- .../lambda/runtime/events/S3Event.java | 13 +++++++++++- .../lambda/runtime/events/SNSEvent.java | 3 ++- .../lambda/runtime/events/SQSEvent.java | 11 +++++++++- .../lambda/runtime/events/ScheduledEvent.java | 18 ++++++++--------- 21 files changed, 149 insertions(+), 38 deletions(-) diff --git a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/APIGatewayProxyRequestEvent.java b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/APIGatewayProxyRequestEvent.java index 71ea238d..a5657876 100644 --- a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/APIGatewayProxyRequestEvent.java +++ b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/APIGatewayProxyRequestEvent.java @@ -1,3 +1,16 @@ +/* + * Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with + * the License. A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions + * and limitations under the License. + */ + package com.amazonaws.services.lambda.runtime.events; import java.io.Serializable; @@ -1118,7 +1131,7 @@ public APIGatewayProxyRequestEvent withIsBase64Encoded(Boolean isBase64Encoded) this.setIsBase64Encoded(isBase64Encoded); return this; } - + /** * Returns a string representation of this object; useful for testing and debugging. * diff --git a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/APIGatewayProxyResponseEvent.java b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/APIGatewayProxyResponseEvent.java index 7a3581b0..12291f49 100644 --- a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/APIGatewayProxyResponseEvent.java +++ b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/APIGatewayProxyResponseEvent.java @@ -1,3 +1,16 @@ +/* + * Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with + * the License. A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions + * and limitations under the License. + */ + package com.amazonaws.services.lambda.runtime.events; import java.io.Serializable; @@ -9,11 +22,11 @@ public class APIGatewayProxyResponseEvent implements Serializable, Cloneable { private static final long serialVersionUID = 2263167344670024172L; - + private Integer statusCode; private Map headers; - + private String body; /** diff --git a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/CloudFrontEvent.java b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/CloudFrontEvent.java index 59257ce7..5a20f0bc 100644 --- a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/CloudFrontEvent.java +++ b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/CloudFrontEvent.java @@ -1,3 +1,16 @@ +/* + * Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with + * the License. A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions + * and limitations under the License. + */ + package com.amazonaws.services.lambda.runtime.events; import java.io.Serializable; diff --git a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/CloudWatchLogsEvent.java b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/CloudWatchLogsEvent.java index 1eea0b8e..1bba3950 100644 --- a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/CloudWatchLogsEvent.java +++ b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/CloudWatchLogsEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at diff --git a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/CodeCommitEvent.java b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/CodeCommitEvent.java index 24dffcde..04eb3190 100644 --- a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/CodeCommitEvent.java +++ b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/CodeCommitEvent.java @@ -1,3 +1,15 @@ +/* + * Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with + * the License. A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions + * and limitations under the License. + */ package com.amazonaws.services.lambda.runtime.events; import java.io.Serializable; diff --git a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/CognitoEvent.java b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/CognitoEvent.java index d250dc17..10bd86d2 100644 --- a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/CognitoEvent.java +++ b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/CognitoEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at diff --git a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/ConfigEvent.java b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/ConfigEvent.java index b2bb9b00..b884c043 100644 --- a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/ConfigEvent.java +++ b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/ConfigEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at @@ -71,7 +71,7 @@ public ConfigEvent withVersion(String version) { setVersion(version); return this; } - + /** * Gets the JSON-encoded notification published by AWS Config. * @@ -96,7 +96,7 @@ public ConfigEvent withInvokingEvent(String invokingEvent) { setInvokingEvent(invokingEvent); return this; } - + /** * Gets the JSON-encoded map containing the AWS Config rule parameters. * @@ -121,7 +121,7 @@ public ConfigEvent withRuleParameters(String ruleParameters) { setRuleParameters(ruleParameters); return this; } - + /** * Gets the token associated with the invocation of the AWS Config rule's Lambda function. * @@ -146,7 +146,7 @@ public ConfigEvent withResultToken(String resultToken) { setResultToken(resultToken); return this; } - + /** * Gets the ARN of the AWS Config rule that triggered the event. * @@ -171,7 +171,7 @@ public ConfigEvent withConfigRuleArn(String configRuleArn) { setConfigRuleArn(configRuleArn); return this; } - + /** * Gets the ID of the AWS Config rule that triggered the event. * @@ -196,7 +196,7 @@ public ConfigEvent withConfigRuleId(String configRuleId) { setConfigRuleId(configRuleId); return this; } - + /** * Gets the name of the AWS Config rule that triggered the event. * @@ -221,7 +221,7 @@ public ConfigEvent withConfigRuleName(String configRuleName) { setConfigRuleName(configRuleName); return this; } - + /** * Gets the account ID of the AWS Config rule that triggered the event. * @@ -246,7 +246,7 @@ public ConfigEvent withAccountId(String accountId) { setAccountId(accountId); return this; } - + /** * Gets the ARN of the IAM role that is assigned to AWS Config. * @@ -271,7 +271,7 @@ public ConfigEvent withExecutionRoleArn(String executionRoleArn) { setExecutionRoleArn(executionRoleArn); return this; } - + /** * Whether the AWS resource to be evaluated has been removed from the AWS Config rule's scope. * diff --git a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/DynamodbEvent.java b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/DynamodbEvent.java index 6853e381..18bc61b9 100644 --- a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/DynamodbEvent.java +++ b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/DynamodbEvent.java @@ -1,4 +1,15 @@ -/* Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. */ +/* + * Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with + * the License. A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions + * and limitations under the License. + */ package com.amazonaws.services.lambda.runtime.events; @@ -212,5 +223,5 @@ public DynamodbEvent clone() { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone()", e); } } - + } diff --git a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/IoTButtonEvent.java b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/IoTButtonEvent.java index 2459d7cd..8143640b 100644 --- a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/IoTButtonEvent.java +++ b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/IoTButtonEvent.java @@ -1,3 +1,16 @@ +/* + * Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with + * the License. A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions + * and limitations under the License. + */ + package com.amazonaws.services.lambda.runtime.events; import java.io.Serializable; diff --git a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/KinesisAnalyticsFirehoseInputPreprocessingEvent.java b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/KinesisAnalyticsFirehoseInputPreprocessingEvent.java index 548bd061..5aef31d0 100644 --- a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/KinesisAnalyticsFirehoseInputPreprocessingEvent.java +++ b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/KinesisAnalyticsFirehoseInputPreprocessingEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at @@ -10,6 +10,7 @@ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ + package com.amazonaws.services.lambda.runtime.events; import java.io.Serializable; diff --git a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/KinesisAnalyticsInputPreprocessingResponse.java b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/KinesisAnalyticsInputPreprocessingResponse.java index 7b9c348d..8b90b06f 100644 --- a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/KinesisAnalyticsInputPreprocessingResponse.java +++ b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/KinesisAnalyticsInputPreprocessingResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at diff --git a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/KinesisAnalyticsOutputDeliveryEvent.java b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/KinesisAnalyticsOutputDeliveryEvent.java index 311e48cb..8b529745 100644 --- a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/KinesisAnalyticsOutputDeliveryEvent.java +++ b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/KinesisAnalyticsOutputDeliveryEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at @@ -10,6 +10,7 @@ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ + package com.amazonaws.services.lambda.runtime.events; import java.io.Serializable; diff --git a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/KinesisAnalyticsOutputDeliveryResponse.java b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/KinesisAnalyticsOutputDeliveryResponse.java index 2e8faca0..06a9becd 100644 --- a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/KinesisAnalyticsOutputDeliveryResponse.java +++ b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/KinesisAnalyticsOutputDeliveryResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at @@ -10,6 +10,7 @@ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ + package com.amazonaws.services.lambda.runtime.events; import java.io.Serializable; diff --git a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/KinesisAnalyticsStreamsInputPreprocessingEvent.java b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/KinesisAnalyticsStreamsInputPreprocessingEvent.java index b63a208a..c4f57577 100644 --- a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/KinesisAnalyticsStreamsInputPreprocessingEvent.java +++ b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/KinesisAnalyticsStreamsInputPreprocessingEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at @@ -10,6 +10,7 @@ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ + package com.amazonaws.services.lambda.runtime.events; import java.io.Serializable; diff --git a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/KinesisEvent.java b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/KinesisEvent.java index 6d1e5300..81510916 100644 --- a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/KinesisEvent.java +++ b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/KinesisEvent.java @@ -1,4 +1,15 @@ -/* Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. */ +/* + * Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with + * the License. A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions + * and limitations under the License. + */ package com.amazonaws.services.lambda.runtime.events; import java.io.Serializable; @@ -124,7 +135,7 @@ public Record clone() { return (Record) super.clone(); } } - + /** * Kinesis event records provide contextual data about a Kinesis record * diff --git a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/KinesisFirehoseEvent.java b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/KinesisFirehoseEvent.java index 3d787eb8..9b885378 100644 --- a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/KinesisFirehoseEvent.java +++ b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/KinesisFirehoseEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at diff --git a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/LexEvent.java b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/LexEvent.java index d3aa64cd..0ab9d306 100644 --- a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/LexEvent.java +++ b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/LexEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at diff --git a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/S3Event.java b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/S3Event.java index c1a83ee0..870f5e77 100644 --- a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/S3Event.java +++ b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/S3Event.java @@ -1,4 +1,15 @@ -/* Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. */ +/* + * Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with + * the License. A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions + * and limitations under the License. + */ package com.amazonaws.services.lambda.runtime.events; diff --git a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/SNSEvent.java b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/SNSEvent.java index dc909a4a..598cd50d 100644 --- a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/SNSEvent.java +++ b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/SNSEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at @@ -10,6 +10,7 @@ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ + package com.amazonaws.services.lambda.runtime.events; import java.io.Serializable; diff --git a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/SQSEvent.java b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/SQSEvent.java index 5b360834..246c5a7c 100644 --- a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/SQSEvent.java +++ b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/SQSEvent.java @@ -1,5 +1,14 @@ /* - * Copyright 2012-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with + * the License. A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions + * and limitations under the License. */ package com.amazonaws.services.lambda.runtime.events; diff --git a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/ScheduledEvent.java b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/ScheduledEvent.java index ba18e702..a323653a 100644 --- a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/ScheduledEvent.java +++ b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/ScheduledEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at @@ -68,7 +68,7 @@ public ScheduledEvent withAccount(String account) { setAccount(account); return this; } - + /** * @return the aws region */ @@ -91,7 +91,7 @@ public ScheduledEvent withRegion(String region) { setRegion(region); return this; } - + /** * @return The details of the events (usually left blank) */ @@ -114,7 +114,7 @@ public ScheduledEvent withDetail(Map detail) { setDetail(detail); return this; } - + /** * @return The details type - see cloud watch events for more info */ @@ -137,7 +137,7 @@ public ScheduledEvent withDetailType(String detailType) { setDetailType(detailType); return this; } - + /** * @return the soruce of the event */ @@ -160,7 +160,7 @@ public ScheduledEvent withSource(String source) { setSource(source); return this; } - + /** * @return the timestamp for when the event is scheduled */ @@ -183,7 +183,7 @@ public ScheduledEvent withTime(ZonedDateTime time) { setTime(time); return this; } - + /** * @return the id of the event */ @@ -206,7 +206,7 @@ public ScheduledEvent withId(String id) { setId(id); return this; } - + /** * @return the resources used by event */ @@ -330,5 +330,5 @@ public ScheduledEvent clone() { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone()", e); } } - + }