shiver.me.timbers.aws.kinesisanalyticsv2.ApplicationReferenceDataSourceS3ReferenceDataSource Maven / Gradle / Ivy
Show all versions of smt-cloudformation-objects Show documentation
package shiver.me.timbers.aws.kinesisanalyticsv2;
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;
/**
* ApplicationReferenceDataSourceS3ReferenceDataSource
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-s3referencedatasource.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"BucketARN",
"FileKey"
})
public class ApplicationReferenceDataSourceS3ReferenceDataSource implements Property
{
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-s3referencedatasource.html#cfn-kinesisanalyticsv2-applicationreferencedatasource-s3referencedatasource-bucketarn
*
*/
@JsonProperty("BucketARN")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-s3referencedatasource.html#cfn-kinesisanalyticsv2-applicationreferencedatasource-s3referencedatasource-bucketarn")
private CharSequence bucketARN;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-s3referencedatasource.html#cfn-kinesisanalyticsv2-applicationreferencedatasource-s3referencedatasource-filekey
*
*/
@JsonProperty("FileKey")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-s3referencedatasource.html#cfn-kinesisanalyticsv2-applicationreferencedatasource-s3referencedatasource-filekey")
private CharSequence fileKey;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-s3referencedatasource.html#cfn-kinesisanalyticsv2-applicationreferencedatasource-s3referencedatasource-bucketarn
*
*/
@JsonIgnore
public CharSequence getBucketARN() {
return bucketARN;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-s3referencedatasource.html#cfn-kinesisanalyticsv2-applicationreferencedatasource-s3referencedatasource-bucketarn
*
*/
@JsonIgnore
public void setBucketARN(CharSequence bucketARN) {
this.bucketARN = bucketARN;
}
public ApplicationReferenceDataSourceS3ReferenceDataSource withBucketARN(CharSequence bucketARN) {
this.bucketARN = bucketARN;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-s3referencedatasource.html#cfn-kinesisanalyticsv2-applicationreferencedatasource-s3referencedatasource-filekey
*
*/
@JsonIgnore
public CharSequence getFileKey() {
return fileKey;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-s3referencedatasource.html#cfn-kinesisanalyticsv2-applicationreferencedatasource-s3referencedatasource-filekey
*
*/
@JsonIgnore
public void setFileKey(CharSequence fileKey) {
this.fileKey = fileKey;
}
public ApplicationReferenceDataSourceS3ReferenceDataSource withFileKey(CharSequence fileKey) {
this.fileKey = fileKey;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("bucketARN", bucketARN).append("fileKey", fileKey).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(fileKey).append(bucketARN).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof ApplicationReferenceDataSourceS3ReferenceDataSource) == false) {
return false;
}
ApplicationReferenceDataSourceS3ReferenceDataSource rhs = ((ApplicationReferenceDataSourceS3ReferenceDataSource) other);
return new EqualsBuilder().append(fileKey, rhs.fileKey).append(bucketARN, rhs.bucketARN).isEquals();
}
}