/* * 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.guardduty.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Information about the Lambda function involved in the finding. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class LambdaDetails implements Serializable, Cloneable, StructuredPojo { /** ** Amazon Resource Name (ARN) of the Lambda function. *
*/ private String functionArn; /** ** Name of the Lambda function. *
*/ private String functionName; /** ** Description of the Lambda function. *
*/ private String description; /** *
* The timestamp when the Lambda function was last modified. This field is in the UTC date string format
* (2023-03-22T19:37:20.168Z)
.
*
* The revision ID of the Lambda function version. *
*/ private String revisionId; /** ** The version of the Lambda function. *
*/ private String functionVersion; /** ** The execution role of the Lambda function. *
*/ private String role; /** ** Amazon Virtual Private Cloud configuration details associated with your Lambda function. *
*/ private VpcConfig vpcConfig; /** *
* A list of tags attached to this resource, listed in the format of key
:value
pair.
*
* Amazon Resource Name (ARN) of the Lambda function. *
* * @param functionArn * Amazon Resource Name (ARN) of the Lambda function. */ public void setFunctionArn(String functionArn) { this.functionArn = functionArn; } /** ** Amazon Resource Name (ARN) of the Lambda function. *
* * @return Amazon Resource Name (ARN) of the Lambda function. */ public String getFunctionArn() { return this.functionArn; } /** ** Amazon Resource Name (ARN) of the Lambda function. *
* * @param functionArn * Amazon Resource Name (ARN) of the Lambda function. * @return Returns a reference to this object so that method calls can be chained together. */ public LambdaDetails withFunctionArn(String functionArn) { setFunctionArn(functionArn); return this; } /** ** Name of the Lambda function. *
* * @param functionName * Name of the Lambda function. */ public void setFunctionName(String functionName) { this.functionName = functionName; } /** ** Name of the Lambda function. *
* * @return Name of the Lambda function. */ public String getFunctionName() { return this.functionName; } /** ** Name of the Lambda function. *
* * @param functionName * Name of the Lambda function. * @return Returns a reference to this object so that method calls can be chained together. */ public LambdaDetails withFunctionName(String functionName) { setFunctionName(functionName); return this; } /** ** Description of the Lambda function. *
* * @param description * Description of the Lambda function. */ public void setDescription(String description) { this.description = description; } /** ** Description of the Lambda function. *
* * @return Description of the Lambda function. */ public String getDescription() { return this.description; } /** ** Description of the Lambda function. *
* * @param description * Description of the Lambda function. * @return Returns a reference to this object so that method calls can be chained together. */ public LambdaDetails withDescription(String description) { setDescription(description); return this; } /** *
* The timestamp when the Lambda function was last modified. This field is in the UTC date string format
* (2023-03-22T19:37:20.168Z)
.
*
(2023-03-22T19:37:20.168Z)
.
*/
public void setLastModifiedAt(java.util.Date lastModifiedAt) {
this.lastModifiedAt = lastModifiedAt;
}
/**
*
* The timestamp when the Lambda function was last modified. This field is in the UTC date string format
* (2023-03-22T19:37:20.168Z)
.
*
(2023-03-22T19:37:20.168Z)
.
*/
public java.util.Date getLastModifiedAt() {
return this.lastModifiedAt;
}
/**
*
* The timestamp when the Lambda function was last modified. This field is in the UTC date string format
* (2023-03-22T19:37:20.168Z)
.
*
(2023-03-22T19:37:20.168Z)
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public LambdaDetails withLastModifiedAt(java.util.Date lastModifiedAt) {
setLastModifiedAt(lastModifiedAt);
return this;
}
/**
* * The revision ID of the Lambda function version. *
* * @param revisionId * The revision ID of the Lambda function version. */ public void setRevisionId(String revisionId) { this.revisionId = revisionId; } /** ** The revision ID of the Lambda function version. *
* * @return The revision ID of the Lambda function version. */ public String getRevisionId() { return this.revisionId; } /** ** The revision ID of the Lambda function version. *
* * @param revisionId * The revision ID of the Lambda function version. * @return Returns a reference to this object so that method calls can be chained together. */ public LambdaDetails withRevisionId(String revisionId) { setRevisionId(revisionId); return this; } /** ** The version of the Lambda function. *
* * @param functionVersion * The version of the Lambda function. */ public void setFunctionVersion(String functionVersion) { this.functionVersion = functionVersion; } /** ** The version of the Lambda function. *
* * @return The version of the Lambda function. */ public String getFunctionVersion() { return this.functionVersion; } /** ** The version of the Lambda function. *
* * @param functionVersion * The version of the Lambda function. * @return Returns a reference to this object so that method calls can be chained together. */ public LambdaDetails withFunctionVersion(String functionVersion) { setFunctionVersion(functionVersion); return this; } /** ** The execution role of the Lambda function. *
* * @param role * The execution role of the Lambda function. */ public void setRole(String role) { this.role = role; } /** ** The execution role of the Lambda function. *
* * @return The execution role of the Lambda function. */ public String getRole() { return this.role; } /** ** The execution role of the Lambda function. *
* * @param role * The execution role of the Lambda function. * @return Returns a reference to this object so that method calls can be chained together. */ public LambdaDetails withRole(String role) { setRole(role); return this; } /** ** Amazon Virtual Private Cloud configuration details associated with your Lambda function. *
* * @param vpcConfig * Amazon Virtual Private Cloud configuration details associated with your Lambda function. */ public void setVpcConfig(VpcConfig vpcConfig) { this.vpcConfig = vpcConfig; } /** ** Amazon Virtual Private Cloud configuration details associated with your Lambda function. *
* * @return Amazon Virtual Private Cloud configuration details associated with your Lambda function. */ public VpcConfig getVpcConfig() { return this.vpcConfig; } /** ** Amazon Virtual Private Cloud configuration details associated with your Lambda function. *
* * @param vpcConfig * Amazon Virtual Private Cloud configuration details associated with your Lambda function. * @return Returns a reference to this object so that method calls can be chained together. */ public LambdaDetails withVpcConfig(VpcConfig vpcConfig) { setVpcConfig(vpcConfig); return this; } /** *
* A list of tags attached to this resource, listed in the format of key
:value
pair.
*
key
:value
* pair.
*/
public java.util.List
* A list of tags attached to this resource, listed in the format of key
:value
pair.
*
key
:value
* pair.
*/
public void setTags(java.util.Collection
* A list of tags attached to this resource, listed in the format of key
:value
pair.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * A list of tags attached to this resource, listed in the format ofkey
:value
* pair.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public LambdaDetails withTags(Tag... tags) {
if (this.tags == null) {
setTags(new java.util.ArrayList
* A list of tags attached to this resource, listed in the format of key
:value
pair.
*
key
:value
* pair.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public LambdaDetails withTags(java.util.Collection