/* * 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.snowball.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Identifies *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class LambdaResource implements Serializable, Cloneable, StructuredPojo { /** ** An Amazon Resource Name (ARN) that represents an Lambda function to be triggered by PUT object actions on the * associated local Amazon S3 resource. *
*/ private String lambdaArn; /** ** The array of ARNs for S3Resource objects to trigger the LambdaResource objects associated with this * job. *
*/ private java.util.List* An Amazon Resource Name (ARN) that represents an Lambda function to be triggered by PUT object actions on the * associated local Amazon S3 resource. *
* * @param lambdaArn * An Amazon Resource Name (ARN) that represents an Lambda function to be triggered by PUT object actions on * the associated local Amazon S3 resource. */ public void setLambdaArn(String lambdaArn) { this.lambdaArn = lambdaArn; } /** ** An Amazon Resource Name (ARN) that represents an Lambda function to be triggered by PUT object actions on the * associated local Amazon S3 resource. *
* * @return An Amazon Resource Name (ARN) that represents an Lambda function to be triggered by PUT object actions on * the associated local Amazon S3 resource. */ public String getLambdaArn() { return this.lambdaArn; } /** ** An Amazon Resource Name (ARN) that represents an Lambda function to be triggered by PUT object actions on the * associated local Amazon S3 resource. *
* * @param lambdaArn * An Amazon Resource Name (ARN) that represents an Lambda function to be triggered by PUT object actions on * the associated local Amazon S3 resource. * @return Returns a reference to this object so that method calls can be chained together. */ public LambdaResource withLambdaArn(String lambdaArn) { setLambdaArn(lambdaArn); return this; } /** ** The array of ARNs for S3Resource objects to trigger the LambdaResource objects associated with this * job. *
* * @return The array of ARNs for S3Resource objects to trigger the LambdaResource objects associated * with this job. */ public java.util.List* The array of ARNs for S3Resource objects to trigger the LambdaResource objects associated with this * job. *
* * @param eventTriggers * The array of ARNs for S3Resource objects to trigger the LambdaResource objects associated * with this job. */ public void setEventTriggers(java.util.Collection* The array of ARNs for S3Resource objects to trigger the LambdaResource objects associated with this * job. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setEventTriggers(java.util.Collection)} or {@link #withEventTriggers(java.util.Collection)} if you want * to override the existing values. *
* * @param eventTriggers * The array of ARNs for S3Resource objects to trigger the LambdaResource objects associated * with this job. * @return Returns a reference to this object so that method calls can be chained together. */ public LambdaResource withEventTriggers(EventTriggerDefinition... eventTriggers) { if (this.eventTriggers == null) { setEventTriggers(new java.util.ArrayList* The array of ARNs for S3Resource objects to trigger the LambdaResource objects associated with this * job. *
* * @param eventTriggers * The array of ARNs for S3Resource objects to trigger the LambdaResource objects associated * with this job. * @return Returns a reference to this object so that method calls can be chained together. */ public LambdaResource withEventTriggers(java.util.Collection