/* * 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.cloudfront.model; import java.io.Serializable; import javax.annotation.Generated; /** *

* A complex type that contains a Lambda@Edge function association. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class LambdaFunctionAssociation implements Serializable, Cloneable { /** *

* The ARN of the Lambda@Edge function. You must specify the ARN of a function version; you can't specify an alias * or $LATEST. *

*/ private String lambdaFunctionARN; /** *

* Specifies the event type that triggers a Lambda@Edge function invocation. You can specify the following values: *

* */ private String eventType; /** *

* A flag that allows a Lambda@Edge function to have read access to the body content. For more information, see Accessing * the Request Body by Choosing the Include Body Option in the Amazon CloudFront Developer Guide. *

*/ private Boolean includeBody; /** *

* The ARN of the Lambda@Edge function. You must specify the ARN of a function version; you can't specify an alias * or $LATEST. *

* * @param lambdaFunctionARN * The ARN of the Lambda@Edge function. You must specify the ARN of a function version; you can't specify an * alias or $LATEST. */ public void setLambdaFunctionARN(String lambdaFunctionARN) { this.lambdaFunctionARN = lambdaFunctionARN; } /** *

* The ARN of the Lambda@Edge function. You must specify the ARN of a function version; you can't specify an alias * or $LATEST. *

* * @return The ARN of the Lambda@Edge function. You must specify the ARN of a function version; you can't specify an * alias or $LATEST. */ public String getLambdaFunctionARN() { return this.lambdaFunctionARN; } /** *

* The ARN of the Lambda@Edge function. You must specify the ARN of a function version; you can't specify an alias * or $LATEST. *

* * @param lambdaFunctionARN * The ARN of the Lambda@Edge function. You must specify the ARN of a function version; you can't specify an * alias or $LATEST. * @return Returns a reference to this object so that method calls can be chained together. */ public LambdaFunctionAssociation withLambdaFunctionARN(String lambdaFunctionARN) { setLambdaFunctionARN(lambdaFunctionARN); return this; } /** *

* Specifies the event type that triggers a Lambda@Edge function invocation. You can specify the following values: *

* * * @param eventType * Specifies the event type that triggers a Lambda@Edge function invocation. You can specify the following * values:

*