shiver.me.timbers.aws.lambda.FunctionEnvironment Maven / Gradle / Ivy
package shiver.me.timbers.aws.lambda;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import shiver.me.timbers.aws.Property;
/**
* FunctionEnvironment
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-environment.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"Variables"
})
public class FunctionEnvironment implements Property
{
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-environment.html#cfn-lambda-function-environment-variables
*
*/
@JsonProperty("Variables")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-environment.html#cfn-lambda-function-environment-variables")
private Map variables;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-environment.html#cfn-lambda-function-environment-variables
*
*/
@JsonIgnore
public Map getVariables() {
return variables;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-environment.html#cfn-lambda-function-environment-variables
*
*/
@JsonIgnore
public void setVariables(Map variables) {
this.variables = variables;
}
public FunctionEnvironment withVariables(Map variables) {
this.variables = variables;
return this;
}
@Override
public java.lang.String toString() {
return new ToStringBuilder(this).append("variables", variables).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(variables).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof FunctionEnvironment) == false) {
return false;
}
FunctionEnvironment rhs = ((FunctionEnvironment) other);
return new EqualsBuilder().append(variables, rhs.variables).isEquals();
}
}