All Downloads are FREE. Search and download functionalities are using the official Maven repository.

shiver.me.timbers.aws.lambda.FunctionCode Maven / Gradle / Ivy

Go to download

This library is a complete mapping of the AWS CloudFormation Resource Specification into Java objects. The objects have been generated directly from the specification so should be a direct one to one mapping.

The newest version!

package shiver.me.timbers.aws.lambda;

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;


/**
 * FunctionCode
 * 

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html * */ @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonPropertyOrder({ "S3Bucket", "S3Key", "S3ObjectVersion", "ZipFile" }) public class FunctionCode implements Property { /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-s3bucket * */ @JsonProperty("S3Bucket") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-s3bucket") private CharSequence s3Bucket; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-s3key * */ @JsonProperty("S3Key") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-s3key") private CharSequence s3Key; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-s3objectversion * */ @JsonProperty("S3ObjectVersion") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-s3objectversion") private CharSequence s3ObjectVersion; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-zipfile * */ @JsonProperty("ZipFile") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-zipfile") private CharSequence zipFile; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-s3bucket * */ @JsonIgnore public CharSequence getS3Bucket() { return s3Bucket; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-s3bucket * */ @JsonIgnore public void setS3Bucket(CharSequence s3Bucket) { this.s3Bucket = s3Bucket; } public FunctionCode withS3Bucket(CharSequence s3Bucket) { this.s3Bucket = s3Bucket; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-s3key * */ @JsonIgnore public CharSequence getS3Key() { return s3Key; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-s3key * */ @JsonIgnore public void setS3Key(CharSequence s3Key) { this.s3Key = s3Key; } public FunctionCode withS3Key(CharSequence s3Key) { this.s3Key = s3Key; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-s3objectversion * */ @JsonIgnore public CharSequence getS3ObjectVersion() { return s3ObjectVersion; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-s3objectversion * */ @JsonIgnore public void setS3ObjectVersion(CharSequence s3ObjectVersion) { this.s3ObjectVersion = s3ObjectVersion; } public FunctionCode withS3ObjectVersion(CharSequence s3ObjectVersion) { this.s3ObjectVersion = s3ObjectVersion; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-zipfile * */ @JsonIgnore public CharSequence getZipFile() { return zipFile; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-zipfile * */ @JsonIgnore public void setZipFile(CharSequence zipFile) { this.zipFile = zipFile; } public FunctionCode withZipFile(CharSequence zipFile) { this.zipFile = zipFile; return this; } @Override public String toString() { return new ToStringBuilder(this).append("s3Bucket", s3Bucket).append("s3Key", s3Key).append("s3ObjectVersion", s3ObjectVersion).append("zipFile", zipFile).toString(); } @Override public int hashCode() { return new HashCodeBuilder().append(s3ObjectVersion).append(s3Key).append(zipFile).append(s3Bucket).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof FunctionCode) == false) { return false; } FunctionCode rhs = ((FunctionCode) other); return new EqualsBuilder().append(s3ObjectVersion, rhs.s3ObjectVersion).append(s3Key, rhs.s3Key).append(zipFile, rhs.zipFile).append(s3Bucket, rhs.s3Bucket).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy