shiver.me.timbers.aws.kinesisanalyticsv2.ApplicationReferenceDataSourceReferenceDataSource 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;
/**
* ApplicationReferenceDataSourceReferenceDataSource
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-referencedatasource.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"ReferenceSchema",
"TableName",
"S3ReferenceDataSource"
})
public class ApplicationReferenceDataSourceReferenceDataSource implements Property
{
/**
* ApplicationReferenceDataSourceReferenceSchema
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-referenceschema.html
*
*/
@JsonProperty("ReferenceSchema")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-referenceschema.html")
private Property referenceSchema;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-referencedatasource.html#cfn-kinesisanalyticsv2-applicationreferencedatasource-referencedatasource-tablename
*
*/
@JsonProperty("TableName")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-referencedatasource.html#cfn-kinesisanalyticsv2-applicationreferencedatasource-referencedatasource-tablename")
private CharSequence tableName;
/**
* ApplicationReferenceDataSourceS3ReferenceDataSource
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-s3referencedatasource.html
*
*/
@JsonProperty("S3ReferenceDataSource")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-s3referencedatasource.html")
private Property s3ReferenceDataSource;
/**
* ApplicationReferenceDataSourceReferenceSchema
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-referenceschema.html
*
*/
@JsonIgnore
public Property getReferenceSchema() {
return referenceSchema;
}
/**
* ApplicationReferenceDataSourceReferenceSchema
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-referenceschema.html
*
*/
@JsonIgnore
public void setReferenceSchema(Property referenceSchema) {
this.referenceSchema = referenceSchema;
}
public ApplicationReferenceDataSourceReferenceDataSource withReferenceSchema(Property referenceSchema) {
this.referenceSchema = referenceSchema;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-referencedatasource.html#cfn-kinesisanalyticsv2-applicationreferencedatasource-referencedatasource-tablename
*
*/
@JsonIgnore
public CharSequence getTableName() {
return tableName;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-referencedatasource.html#cfn-kinesisanalyticsv2-applicationreferencedatasource-referencedatasource-tablename
*
*/
@JsonIgnore
public void setTableName(CharSequence tableName) {
this.tableName = tableName;
}
public ApplicationReferenceDataSourceReferenceDataSource withTableName(CharSequence tableName) {
this.tableName = tableName;
return this;
}
/**
* ApplicationReferenceDataSourceS3ReferenceDataSource
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-s3referencedatasource.html
*
*/
@JsonIgnore
public Property getS3ReferenceDataSource() {
return s3ReferenceDataSource;
}
/**
* ApplicationReferenceDataSourceS3ReferenceDataSource
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-s3referencedatasource.html
*
*/
@JsonIgnore
public void setS3ReferenceDataSource(Property s3ReferenceDataSource) {
this.s3ReferenceDataSource = s3ReferenceDataSource;
}
public ApplicationReferenceDataSourceReferenceDataSource withS3ReferenceDataSource(Property s3ReferenceDataSource) {
this.s3ReferenceDataSource = s3ReferenceDataSource;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("referenceSchema", referenceSchema).append("tableName", tableName).append("s3ReferenceDataSource", s3ReferenceDataSource).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(s3ReferenceDataSource).append(referenceSchema).append(tableName).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof ApplicationReferenceDataSourceReferenceDataSource) == false) {
return false;
}
ApplicationReferenceDataSourceReferenceDataSource rhs = ((ApplicationReferenceDataSourceReferenceDataSource) other);
return new EqualsBuilder().append(s3ReferenceDataSource, rhs.s3ReferenceDataSource).append(referenceSchema, rhs.referenceSchema).append(tableName, rhs.tableName).isEquals();
}
}