
shiver.me.timbers.aws.wafv2.RuleGroupStatementThree Maven / Gradle / Ivy
package shiver.me.timbers.aws.wafv2;
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;
/**
* RuleGroupStatementThree
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementthree.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"ByteMatchStatement",
"SqliMatchStatement",
"XssMatchStatement",
"SizeConstraintStatement",
"GeoMatchStatement",
"IPSetReferenceStatement",
"RegexPatternSetReferenceStatement"
})
public class RuleGroupStatementThree implements Property
{
/**
* RuleGroupByteMatchStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-bytematchstatement.html
*
*/
@JsonProperty("ByteMatchStatement")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-bytematchstatement.html")
private Property byteMatchStatement;
/**
* RuleGroupSqliMatchStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-sqlimatchstatement.html
*
*/
@JsonProperty("SqliMatchStatement")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-sqlimatchstatement.html")
private Property sqliMatchStatement;
/**
* RuleGroupXssMatchStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-xssmatchstatement.html
*
*/
@JsonProperty("XssMatchStatement")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-xssmatchstatement.html")
private Property xssMatchStatement;
/**
* RuleGroupSizeConstraintStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-sizeconstraintstatement.html
*
*/
@JsonProperty("SizeConstraintStatement")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-sizeconstraintstatement.html")
private Property sizeConstraintStatement;
/**
* RuleGroupGeoMatchStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-geomatchstatement.html
*
*/
@JsonProperty("GeoMatchStatement")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-geomatchstatement.html")
private Property geoMatchStatement;
/**
* RuleGroupIPSetReferenceStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ipsetreferencestatement.html
*
*/
@JsonProperty("IPSetReferenceStatement")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ipsetreferencestatement.html")
private Property iPSetReferenceStatement;
/**
* RuleGroupRegexPatternSetReferenceStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-regexpatternsetreferencestatement.html
*
*/
@JsonProperty("RegexPatternSetReferenceStatement")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-regexpatternsetreferencestatement.html")
private Property regexPatternSetReferenceStatement;
/**
* RuleGroupByteMatchStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-bytematchstatement.html
*
*/
@JsonIgnore
public Property getByteMatchStatement() {
return byteMatchStatement;
}
/**
* RuleGroupByteMatchStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-bytematchstatement.html
*
*/
@JsonIgnore
public void setByteMatchStatement(Property byteMatchStatement) {
this.byteMatchStatement = byteMatchStatement;
}
public RuleGroupStatementThree withByteMatchStatement(Property byteMatchStatement) {
this.byteMatchStatement = byteMatchStatement;
return this;
}
/**
* RuleGroupSqliMatchStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-sqlimatchstatement.html
*
*/
@JsonIgnore
public Property getSqliMatchStatement() {
return sqliMatchStatement;
}
/**
* RuleGroupSqliMatchStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-sqlimatchstatement.html
*
*/
@JsonIgnore
public void setSqliMatchStatement(Property sqliMatchStatement) {
this.sqliMatchStatement = sqliMatchStatement;
}
public RuleGroupStatementThree withSqliMatchStatement(Property sqliMatchStatement) {
this.sqliMatchStatement = sqliMatchStatement;
return this;
}
/**
* RuleGroupXssMatchStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-xssmatchstatement.html
*
*/
@JsonIgnore
public Property getXssMatchStatement() {
return xssMatchStatement;
}
/**
* RuleGroupXssMatchStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-xssmatchstatement.html
*
*/
@JsonIgnore
public void setXssMatchStatement(Property xssMatchStatement) {
this.xssMatchStatement = xssMatchStatement;
}
public RuleGroupStatementThree withXssMatchStatement(Property xssMatchStatement) {
this.xssMatchStatement = xssMatchStatement;
return this;
}
/**
* RuleGroupSizeConstraintStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-sizeconstraintstatement.html
*
*/
@JsonIgnore
public Property getSizeConstraintStatement() {
return sizeConstraintStatement;
}
/**
* RuleGroupSizeConstraintStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-sizeconstraintstatement.html
*
*/
@JsonIgnore
public void setSizeConstraintStatement(Property sizeConstraintStatement) {
this.sizeConstraintStatement = sizeConstraintStatement;
}
public RuleGroupStatementThree withSizeConstraintStatement(Property sizeConstraintStatement) {
this.sizeConstraintStatement = sizeConstraintStatement;
return this;
}
/**
* RuleGroupGeoMatchStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-geomatchstatement.html
*
*/
@JsonIgnore
public Property getGeoMatchStatement() {
return geoMatchStatement;
}
/**
* RuleGroupGeoMatchStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-geomatchstatement.html
*
*/
@JsonIgnore
public void setGeoMatchStatement(Property geoMatchStatement) {
this.geoMatchStatement = geoMatchStatement;
}
public RuleGroupStatementThree withGeoMatchStatement(Property geoMatchStatement) {
this.geoMatchStatement = geoMatchStatement;
return this;
}
/**
* RuleGroupIPSetReferenceStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ipsetreferencestatement.html
*
*/
@JsonIgnore
public Property getIPSetReferenceStatement() {
return iPSetReferenceStatement;
}
/**
* RuleGroupIPSetReferenceStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ipsetreferencestatement.html
*
*/
@JsonIgnore
public void setIPSetReferenceStatement(Property iPSetReferenceStatement) {
this.iPSetReferenceStatement = iPSetReferenceStatement;
}
public RuleGroupStatementThree withIPSetReferenceStatement(Property iPSetReferenceStatement) {
this.iPSetReferenceStatement = iPSetReferenceStatement;
return this;
}
/**
* RuleGroupRegexPatternSetReferenceStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-regexpatternsetreferencestatement.html
*
*/
@JsonIgnore
public Property getRegexPatternSetReferenceStatement() {
return regexPatternSetReferenceStatement;
}
/**
* RuleGroupRegexPatternSetReferenceStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-regexpatternsetreferencestatement.html
*
*/
@JsonIgnore
public void setRegexPatternSetReferenceStatement(Property regexPatternSetReferenceStatement) {
this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement;
}
public RuleGroupStatementThree withRegexPatternSetReferenceStatement(Property regexPatternSetReferenceStatement) {
this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("byteMatchStatement", byteMatchStatement).append("sqliMatchStatement", sqliMatchStatement).append("xssMatchStatement", xssMatchStatement).append("sizeConstraintStatement", sizeConstraintStatement).append("geoMatchStatement", geoMatchStatement).append("iPSetReferenceStatement", iPSetReferenceStatement).append("regexPatternSetReferenceStatement", regexPatternSetReferenceStatement).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(sqliMatchStatement).append(xssMatchStatement).append(byteMatchStatement).append(sizeConstraintStatement).append(regexPatternSetReferenceStatement).append(geoMatchStatement).append(iPSetReferenceStatement).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof RuleGroupStatementThree) == false) {
return false;
}
RuleGroupStatementThree rhs = ((RuleGroupStatementThree) other);
return new EqualsBuilder().append(sqliMatchStatement, rhs.sqliMatchStatement).append(xssMatchStatement, rhs.xssMatchStatement).append(byteMatchStatement, rhs.byteMatchStatement).append(sizeConstraintStatement, rhs.sizeConstraintStatement).append(regexPatternSetReferenceStatement, rhs.regexPatternSetReferenceStatement).append(geoMatchStatement, rhs.geoMatchStatement).append(iPSetReferenceStatement, rhs.iPSetReferenceStatement).isEquals();
}
}