com.amazonaws.services.lambda.model.UpdateFunctionEventInvokeConfigResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-lambda Show documentation
/*
* Copyright 2019-2024 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;
/**
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class UpdateFunctionEventInvokeConfigResult extends com.amazonaws.AmazonWebServiceResult implements Serializable,
Cloneable {
/**
*
* 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.
*
*
*
*/
private DestinationConfig destinationConfig;
/**
*
* 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 UpdateFunctionEventInvokeConfigResult 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 UpdateFunctionEventInvokeConfigResult 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 UpdateFunctionEventInvokeConfigResult 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 UpdateFunctionEventInvokeConfigResult 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.
*
*
*
*
* @param destinationConfig
* 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.
*
*
*/
public void setDestinationConfig(DestinationConfig destinationConfig) {
this.destinationConfig = destinationConfig;
}
/**
*
* 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.
*
*
*
*
* @return 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.
*
*
*/
public DestinationConfig getDestinationConfig() {
return this.destinationConfig;
}
/**
*
* 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.
*
*
*
*
* @param destinationConfig
* 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.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFunctionEventInvokeConfigResult withDestinationConfig(DestinationConfig destinationConfig) {
setDestinationConfig(destinationConfig);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getLastModified() != null)
sb.append("LastModified: ").append(getLastModified()).append(",");
if (getFunctionArn() != null)
sb.append("FunctionArn: ").append(getFunctionArn()).append(",");
if (getMaximumRetryAttempts() != null)
sb.append("MaximumRetryAttempts: ").append(getMaximumRetryAttempts()).append(",");
if (getMaximumEventAgeInSeconds() != null)
sb.append("MaximumEventAgeInSeconds: ").append(getMaximumEventAgeInSeconds()).append(",");
if (getDestinationConfig() != null)
sb.append("DestinationConfig: ").append(getDestinationConfig());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof UpdateFunctionEventInvokeConfigResult == false)
return false;
UpdateFunctionEventInvokeConfigResult other = (UpdateFunctionEventInvokeConfigResult) obj;
if (other.getLastModified() == null ^ this.getLastModified() == null)
return false;
if (other.getLastModified() != null && other.getLastModified().equals(this.getLastModified()) == false)
return false;
if (other.getFunctionArn() == null ^ this.getFunctionArn() == null)
return false;
if (other.getFunctionArn() != null && other.getFunctionArn().equals(this.getFunctionArn()) == false)
return false;
if (other.getMaximumRetryAttempts() == null ^ this.getMaximumRetryAttempts() == null)
return false;
if (other.getMaximumRetryAttempts() != null && other.getMaximumRetryAttempts().equals(this.getMaximumRetryAttempts()) == false)
return false;
if (other.getMaximumEventAgeInSeconds() == null ^ this.getMaximumEventAgeInSeconds() == null)
return false;
if (other.getMaximumEventAgeInSeconds() != null && other.getMaximumEventAgeInSeconds().equals(this.getMaximumEventAgeInSeconds()) == false)
return false;
if (other.getDestinationConfig() == null ^ this.getDestinationConfig() == null)
return false;
if (other.getDestinationConfig() != null && other.getDestinationConfig().equals(this.getDestinationConfig()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getLastModified() == null) ? 0 : getLastModified().hashCode());
hashCode = prime * hashCode + ((getFunctionArn() == null) ? 0 : getFunctionArn().hashCode());
hashCode = prime * hashCode + ((getMaximumRetryAttempts() == null) ? 0 : getMaximumRetryAttempts().hashCode());
hashCode = prime * hashCode + ((getMaximumEventAgeInSeconds() == null) ? 0 : getMaximumEventAgeInSeconds().hashCode());
hashCode = prime * hashCode + ((getDestinationConfig() == null) ? 0 : getDestinationConfig().hashCode());
return hashCode;
}
@Override
public UpdateFunctionEventInvokeConfigResult clone() {
try {
return (UpdateFunctionEventInvokeConfigResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}