/* * 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.pinpoint.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Specifies settings for invoking an AWS Lambda function that customizes a segment for a campaign. *

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

* The name or Amazon Resource Name (ARN) of the AWS Lambda function that Amazon Pinpoint invokes to customize a * segment for a campaign. *

*/ private String lambdaFunctionName; /** *

* The mode that Amazon Pinpoint uses to invoke the AWS Lambda function. Possible values are: *

* */ private String mode; /** *

* The web URL that Amazon Pinpoint calls to invoke the AWS Lambda function over HTTPS. *

*/ private String webUrl; /** *

* The name or Amazon Resource Name (ARN) of the AWS Lambda function that Amazon Pinpoint invokes to customize a * segment for a campaign. *

* * @param lambdaFunctionName * The name or Amazon Resource Name (ARN) of the AWS Lambda function that Amazon Pinpoint invokes to * customize a segment for a campaign. */ public void setLambdaFunctionName(String lambdaFunctionName) { this.lambdaFunctionName = lambdaFunctionName; } /** *

* The name or Amazon Resource Name (ARN) of the AWS Lambda function that Amazon Pinpoint invokes to customize a * segment for a campaign. *

* * @return The name or Amazon Resource Name (ARN) of the AWS Lambda function that Amazon Pinpoint invokes to * customize a segment for a campaign. */ public String getLambdaFunctionName() { return this.lambdaFunctionName; } /** *

* The name or Amazon Resource Name (ARN) of the AWS Lambda function that Amazon Pinpoint invokes to customize a * segment for a campaign. *

* * @param lambdaFunctionName * The name or Amazon Resource Name (ARN) of the AWS Lambda function that Amazon Pinpoint invokes to * customize a segment for a campaign. * @return Returns a reference to this object so that method calls can be chained together. */ public CampaignHook withLambdaFunctionName(String lambdaFunctionName) { setLambdaFunctionName(lambdaFunctionName); return this; } /** *

* The mode that Amazon Pinpoint uses to invoke the AWS Lambda function. Possible values are: *

* * * @param mode * The mode that Amazon Pinpoint uses to invoke the AWS Lambda function. Possible values are:

*