/* * Copyright 2018-2023 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.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** * * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class FunctionEventInvokeConfig implements Serializable, Cloneable, StructuredPojo { /** *
* The date and time that the configuration was last updated. *
*/ private java.util.Date lastModified; /** ** The Amazon Resource Name (ARN) of the function. *
*/ private String functionArn; /** ** The maximum number of times to retry when the function returns an error. *
*/ private Integer maximumRetryAttempts; /** ** The maximum age of a request that Lambda sends to a function for processing. *
*/ private Integer maximumEventAgeInSeconds; /** ** A destination for events after they have been sent to a function for processing. *
** Destinations *
** Function - The Amazon Resource Name (ARN) of a Lambda function. *
** Queue - The ARN of a standard SQS queue. *
** Topic - The ARN of a standard SNS topic. *
** Event Bus - The ARN of an Amazon EventBridge event bus. *
** The date and time that the configuration was last updated. *
* * @param lastModified * The date and time that the configuration was last updated. */ public void setLastModified(java.util.Date lastModified) { this.lastModified = lastModified; } /** ** The date and time that the configuration was last updated. *
* * @return The date and time that the configuration was last updated. */ public java.util.Date getLastModified() { return this.lastModified; } /** ** The date and time that the configuration was last updated. *
* * @param lastModified * The date and time that the configuration was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public FunctionEventInvokeConfig withLastModified(java.util.Date lastModified) { setLastModified(lastModified); return this; } /** ** The Amazon Resource Name (ARN) of the function. *
* * @param functionArn * The Amazon Resource Name (ARN) of the function. */ public void setFunctionArn(String functionArn) { this.functionArn = functionArn; } /** ** The Amazon Resource Name (ARN) of the function. *
* * @return The Amazon Resource Name (ARN) of the function. */ public String getFunctionArn() { return this.functionArn; } /** ** The Amazon Resource Name (ARN) of the function. *
* * @param functionArn * The Amazon Resource Name (ARN) of the function. * @return Returns a reference to this object so that method calls can be chained together. */ public FunctionEventInvokeConfig withFunctionArn(String functionArn) { setFunctionArn(functionArn); return this; } /** ** The maximum number of times to retry when the function returns an error. *
* * @param maximumRetryAttempts * The maximum number of times to retry when the function returns an error. */ public void setMaximumRetryAttempts(Integer maximumRetryAttempts) { this.maximumRetryAttempts = maximumRetryAttempts; } /** ** The maximum number of times to retry when the function returns an error. *
* * @return The maximum number of times to retry when the function returns an error. */ public Integer getMaximumRetryAttempts() { return this.maximumRetryAttempts; } /** ** The maximum number of times to retry when the function returns an error. *
* * @param maximumRetryAttempts * The maximum number of times to retry when the function returns an error. * @return Returns a reference to this object so that method calls can be chained together. */ public FunctionEventInvokeConfig withMaximumRetryAttempts(Integer maximumRetryAttempts) { setMaximumRetryAttempts(maximumRetryAttempts); return this; } /** ** The maximum age of a request that Lambda sends to a function for processing. *
* * @param maximumEventAgeInSeconds * The maximum age of a request that Lambda sends to a function for processing. */ public void setMaximumEventAgeInSeconds(Integer maximumEventAgeInSeconds) { this.maximumEventAgeInSeconds = maximumEventAgeInSeconds; } /** ** The maximum age of a request that Lambda sends to a function for processing. *
* * @return The maximum age of a request that Lambda sends to a function for processing. */ public Integer getMaximumEventAgeInSeconds() { return this.maximumEventAgeInSeconds; } /** ** The maximum age of a request that Lambda sends to a function for processing. *
* * @param maximumEventAgeInSeconds * The maximum age of a request that Lambda sends to a function for processing. * @return Returns a reference to this object so that method calls can be chained together. */ public FunctionEventInvokeConfig withMaximumEventAgeInSeconds(Integer maximumEventAgeInSeconds) { setMaximumEventAgeInSeconds(maximumEventAgeInSeconds); return this; } /** ** A destination for events after they have been sent to a function for processing. *
** Destinations *
** Function - The Amazon Resource Name (ARN) of a Lambda function. *
** Queue - The ARN of a standard SQS queue. *
** Topic - The ARN of a standard SNS topic. *
** Event Bus - The ARN of an Amazon EventBridge event bus. *
** Destinations *
** Function - The Amazon Resource Name (ARN) of a Lambda function. *
** Queue - The ARN of a standard SQS queue. *
** Topic - The ARN of a standard SNS topic. *
** Event Bus - The ARN of an Amazon EventBridge event bus. *
** A destination for events after they have been sent to a function for processing. *
** Destinations *
** Function - The Amazon Resource Name (ARN) of a Lambda function. *
** Queue - The ARN of a standard SQS queue. *
** Topic - The ARN of a standard SNS topic. *
** Event Bus - The ARN of an Amazon EventBridge event bus. *
** Destinations *
** Function - The Amazon Resource Name (ARN) of a Lambda function. *
** Queue - The ARN of a standard SQS queue. *
** Topic - The ARN of a standard SNS topic. *
** Event Bus - The ARN of an Amazon EventBridge event bus. *
** A destination for events after they have been sent to a function for processing. *
** Destinations *
** Function - The Amazon Resource Name (ARN) of a Lambda function. *
** Queue - The ARN of a standard SQS queue. *
** Topic - The ARN of a standard SNS topic. *
** Event Bus - The ARN of an Amazon EventBridge event bus. *
** Destinations *
** Function - The Amazon Resource Name (ARN) of a Lambda function. *
** Queue - The ARN of a standard SQS queue. *
** Topic - The ARN of a standard SNS topic. *
** Event Bus - The ARN of an Amazon EventBridge event bus. *
*