shiver.me.timbers.aws.kinesisanalytics.ApplicationReferenceDataSourceMappingParameters Maven / Gradle / Ivy
Show all versions of smt-cloudformation-objects Show documentation
package shiver.me.timbers.aws.kinesisanalytics;
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;
/**
* ApplicationReferenceDataSourceMappingParameters
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-mappingparameters.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"JSONMappingParameters",
"CSVMappingParameters"
})
public class ApplicationReferenceDataSourceMappingParameters implements Property
{
/**
* ApplicationReferenceDataSourceJSONMappingParameters
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-jsonmappingparameters.html
*
*/
@JsonProperty("JSONMappingParameters")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-jsonmappingparameters.html")
private Property jSONMappingParameters;
/**
* ApplicationReferenceDataSourceCSVMappingParameters
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-csvmappingparameters.html
*
*/
@JsonProperty("CSVMappingParameters")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-csvmappingparameters.html")
private Property cSVMappingParameters;
/**
* ApplicationReferenceDataSourceJSONMappingParameters
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-jsonmappingparameters.html
*
*/
@JsonIgnore
public Property getJSONMappingParameters() {
return jSONMappingParameters;
}
/**
* ApplicationReferenceDataSourceJSONMappingParameters
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-jsonmappingparameters.html
*
*/
@JsonIgnore
public void setJSONMappingParameters(Property jSONMappingParameters) {
this.jSONMappingParameters = jSONMappingParameters;
}
public ApplicationReferenceDataSourceMappingParameters withJSONMappingParameters(Property jSONMappingParameters) {
this.jSONMappingParameters = jSONMappingParameters;
return this;
}
/**
* ApplicationReferenceDataSourceCSVMappingParameters
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-csvmappingparameters.html
*
*/
@JsonIgnore
public Property getCSVMappingParameters() {
return cSVMappingParameters;
}
/**
* ApplicationReferenceDataSourceCSVMappingParameters
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-csvmappingparameters.html
*
*/
@JsonIgnore
public void setCSVMappingParameters(Property cSVMappingParameters) {
this.cSVMappingParameters = cSVMappingParameters;
}
public ApplicationReferenceDataSourceMappingParameters withCSVMappingParameters(Property cSVMappingParameters) {
this.cSVMappingParameters = cSVMappingParameters;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("jSONMappingParameters", jSONMappingParameters).append("cSVMappingParameters", cSVMappingParameters).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(jSONMappingParameters).append(cSVMappingParameters).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof ApplicationReferenceDataSourceMappingParameters) == false) {
return false;
}
ApplicationReferenceDataSourceMappingParameters rhs = ((ApplicationReferenceDataSourceMappingParameters) other);
return new EqualsBuilder().append(jSONMappingParameters, rhs.jSONMappingParameters).append(cSVMappingParameters, rhs.cSVMappingParameters).isEquals();
}
}