shiver.me.timbers.aws.waf.SqlInjectionMatchSetSqlInjectionMatchTuple Maven / Gradle / Ivy
Show all versions of smt-cloudformation-objects Show documentation
package shiver.me.timbers.aws.waf;
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;
/**
* SqlInjectionMatchSetSqlInjectionMatchTuple
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-sqlinjectionmatchset-sqlinjectionmatchtuples.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"FieldToMatch",
"TextTransformation"
})
public class SqlInjectionMatchSetSqlInjectionMatchTuple implements Property
{
/**
* SqlInjectionMatchSetFieldToMatch
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-bytematchset-bytematchtuples-fieldtomatch.html
*
*/
@JsonProperty("FieldToMatch")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-bytematchset-bytematchtuples-fieldtomatch.html")
private Property fieldToMatch;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-sqlinjectionmatchset-sqlinjectionmatchtuples.html#cfn-waf-sqlinjectionmatchset-sqlinjectionmatchtuples-texttransformation
*
*/
@JsonProperty("TextTransformation")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-sqlinjectionmatchset-sqlinjectionmatchtuples.html#cfn-waf-sqlinjectionmatchset-sqlinjectionmatchtuples-texttransformation")
private CharSequence textTransformation;
/**
* SqlInjectionMatchSetFieldToMatch
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-bytematchset-bytematchtuples-fieldtomatch.html
*
*/
@JsonIgnore
public Property getFieldToMatch() {
return fieldToMatch;
}
/**
* SqlInjectionMatchSetFieldToMatch
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-bytematchset-bytematchtuples-fieldtomatch.html
*
*/
@JsonIgnore
public void setFieldToMatch(Property fieldToMatch) {
this.fieldToMatch = fieldToMatch;
}
public SqlInjectionMatchSetSqlInjectionMatchTuple withFieldToMatch(Property fieldToMatch) {
this.fieldToMatch = fieldToMatch;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-sqlinjectionmatchset-sqlinjectionmatchtuples.html#cfn-waf-sqlinjectionmatchset-sqlinjectionmatchtuples-texttransformation
*
*/
@JsonIgnore
public CharSequence getTextTransformation() {
return textTransformation;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-sqlinjectionmatchset-sqlinjectionmatchtuples.html#cfn-waf-sqlinjectionmatchset-sqlinjectionmatchtuples-texttransformation
*
*/
@JsonIgnore
public void setTextTransformation(CharSequence textTransformation) {
this.textTransformation = textTransformation;
}
public SqlInjectionMatchSetSqlInjectionMatchTuple withTextTransformation(CharSequence textTransformation) {
this.textTransformation = textTransformation;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("fieldToMatch", fieldToMatch).append("textTransformation", textTransformation).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(textTransformation).append(fieldToMatch).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof SqlInjectionMatchSetSqlInjectionMatchTuple) == false) {
return false;
}
SqlInjectionMatchSetSqlInjectionMatchTuple rhs = ((SqlInjectionMatchSetSqlInjectionMatchTuple) other);
return new EqualsBuilder().append(textTransformation, rhs.textTransformation).append(fieldToMatch, rhs.fieldToMatch).isEquals();
}
}