shiver.me.timbers.aws.wafv2.WebACLStatementThree Maven / Gradle / Ivy
Show all versions of smt-cloudformation-objects Show documentation
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;
/**
* WebACLStatementThree
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementthree.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"ByteMatchStatement",
"SqliMatchStatement",
"XssMatchStatement",
"SizeConstraintStatement",
"GeoMatchStatement",
"RuleGroupReferenceStatement",
"IPSetReferenceStatement",
"RegexPatternSetReferenceStatement",
"ManagedRuleGroupStatement"
})
public class WebACLStatementThree implements Property
{
/**
* WebACLByteMatchStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-bytematchstatement.html
*
*/
@JsonProperty("ByteMatchStatement")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-bytematchstatement.html")
private Property byteMatchStatement;
/**
* WebACLSqliMatchStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sqlimatchstatement.html
*
*/
@JsonProperty("SqliMatchStatement")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sqlimatchstatement.html")
private Property sqliMatchStatement;
/**
* WebACLXssMatchStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-xssmatchstatement.html
*
*/
@JsonProperty("XssMatchStatement")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-xssmatchstatement.html")
private Property xssMatchStatement;
/**
* WebACLSizeConstraintStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sizeconstraintstatement.html
*
*/
@JsonProperty("SizeConstraintStatement")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sizeconstraintstatement.html")
private Property sizeConstraintStatement;
/**
* WebACLGeoMatchStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-geomatchstatement.html
*
*/
@JsonProperty("GeoMatchStatement")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-geomatchstatement.html")
private Property geoMatchStatement;
/**
* WebACLRuleGroupReferenceStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rulegroupreferencestatement.html
*
*/
@JsonProperty("RuleGroupReferenceStatement")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rulegroupreferencestatement.html")
private Property ruleGroupReferenceStatement;
/**
* WebACLIPSetReferenceStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ipsetreferencestatement.html
*
*/
@JsonProperty("IPSetReferenceStatement")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ipsetreferencestatement.html")
private Property iPSetReferenceStatement;
/**
* WebACLRegexPatternSetReferenceStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-regexpatternsetreferencestatement.html
*
*/
@JsonProperty("RegexPatternSetReferenceStatement")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-regexpatternsetreferencestatement.html")
private Property regexPatternSetReferenceStatement;
/**
* WebACLManagedRuleGroupStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupstatement.html
*
*/
@JsonProperty("ManagedRuleGroupStatement")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupstatement.html")
private Property managedRuleGroupStatement;
/**
* WebACLByteMatchStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-bytematchstatement.html
*
*/
@JsonIgnore
public Property getByteMatchStatement() {
return byteMatchStatement;
}
/**
* WebACLByteMatchStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-bytematchstatement.html
*
*/
@JsonIgnore
public void setByteMatchStatement(Property byteMatchStatement) {
this.byteMatchStatement = byteMatchStatement;
}
public WebACLStatementThree withByteMatchStatement(Property byteMatchStatement) {
this.byteMatchStatement = byteMatchStatement;
return this;
}
/**
* WebACLSqliMatchStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sqlimatchstatement.html
*
*/
@JsonIgnore
public Property getSqliMatchStatement() {
return sqliMatchStatement;
}
/**
* WebACLSqliMatchStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sqlimatchstatement.html
*
*/
@JsonIgnore
public void setSqliMatchStatement(Property sqliMatchStatement) {
this.sqliMatchStatement = sqliMatchStatement;
}
public WebACLStatementThree withSqliMatchStatement(Property sqliMatchStatement) {
this.sqliMatchStatement = sqliMatchStatement;
return this;
}
/**
* WebACLXssMatchStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-xssmatchstatement.html
*
*/
@JsonIgnore
public Property getXssMatchStatement() {
return xssMatchStatement;
}
/**
* WebACLXssMatchStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-xssmatchstatement.html
*
*/
@JsonIgnore
public void setXssMatchStatement(Property xssMatchStatement) {
this.xssMatchStatement = xssMatchStatement;
}
public WebACLStatementThree withXssMatchStatement(Property xssMatchStatement) {
this.xssMatchStatement = xssMatchStatement;
return this;
}
/**
* WebACLSizeConstraintStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sizeconstraintstatement.html
*
*/
@JsonIgnore
public Property getSizeConstraintStatement() {
return sizeConstraintStatement;
}
/**
* WebACLSizeConstraintStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sizeconstraintstatement.html
*
*/
@JsonIgnore
public void setSizeConstraintStatement(Property sizeConstraintStatement) {
this.sizeConstraintStatement = sizeConstraintStatement;
}
public WebACLStatementThree withSizeConstraintStatement(Property sizeConstraintStatement) {
this.sizeConstraintStatement = sizeConstraintStatement;
return this;
}
/**
* WebACLGeoMatchStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-geomatchstatement.html
*
*/
@JsonIgnore
public Property getGeoMatchStatement() {
return geoMatchStatement;
}
/**
* WebACLGeoMatchStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-geomatchstatement.html
*
*/
@JsonIgnore
public void setGeoMatchStatement(Property geoMatchStatement) {
this.geoMatchStatement = geoMatchStatement;
}
public WebACLStatementThree withGeoMatchStatement(Property geoMatchStatement) {
this.geoMatchStatement = geoMatchStatement;
return this;
}
/**
* WebACLRuleGroupReferenceStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rulegroupreferencestatement.html
*
*/
@JsonIgnore
public Property getRuleGroupReferenceStatement() {
return ruleGroupReferenceStatement;
}
/**
* WebACLRuleGroupReferenceStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rulegroupreferencestatement.html
*
*/
@JsonIgnore
public void setRuleGroupReferenceStatement(Property ruleGroupReferenceStatement) {
this.ruleGroupReferenceStatement = ruleGroupReferenceStatement;
}
public WebACLStatementThree withRuleGroupReferenceStatement(Property ruleGroupReferenceStatement) {
this.ruleGroupReferenceStatement = ruleGroupReferenceStatement;
return this;
}
/**
* WebACLIPSetReferenceStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ipsetreferencestatement.html
*
*/
@JsonIgnore
public Property getIPSetReferenceStatement() {
return iPSetReferenceStatement;
}
/**
* WebACLIPSetReferenceStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ipsetreferencestatement.html
*
*/
@JsonIgnore
public void setIPSetReferenceStatement(Property iPSetReferenceStatement) {
this.iPSetReferenceStatement = iPSetReferenceStatement;
}
public WebACLStatementThree withIPSetReferenceStatement(Property iPSetReferenceStatement) {
this.iPSetReferenceStatement = iPSetReferenceStatement;
return this;
}
/**
* WebACLRegexPatternSetReferenceStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-regexpatternsetreferencestatement.html
*
*/
@JsonIgnore
public Property getRegexPatternSetReferenceStatement() {
return regexPatternSetReferenceStatement;
}
/**
* WebACLRegexPatternSetReferenceStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-regexpatternsetreferencestatement.html
*
*/
@JsonIgnore
public void setRegexPatternSetReferenceStatement(Property regexPatternSetReferenceStatement) {
this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement;
}
public WebACLStatementThree withRegexPatternSetReferenceStatement(Property regexPatternSetReferenceStatement) {
this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement;
return this;
}
/**
* WebACLManagedRuleGroupStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupstatement.html
*
*/
@JsonIgnore
public Property getManagedRuleGroupStatement() {
return managedRuleGroupStatement;
}
/**
* WebACLManagedRuleGroupStatement
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupstatement.html
*
*/
@JsonIgnore
public void setManagedRuleGroupStatement(Property managedRuleGroupStatement) {
this.managedRuleGroupStatement = managedRuleGroupStatement;
}
public WebACLStatementThree withManagedRuleGroupStatement(Property managedRuleGroupStatement) {
this.managedRuleGroupStatement = managedRuleGroupStatement;
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("ruleGroupReferenceStatement", ruleGroupReferenceStatement).append("iPSetReferenceStatement", iPSetReferenceStatement).append("regexPatternSetReferenceStatement", regexPatternSetReferenceStatement).append("managedRuleGroupStatement", managedRuleGroupStatement).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(sqliMatchStatement).append(xssMatchStatement).append(byteMatchStatement).append(sizeConstraintStatement).append(regexPatternSetReferenceStatement).append(geoMatchStatement).append(iPSetReferenceStatement).append(managedRuleGroupStatement).append(ruleGroupReferenceStatement).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof WebACLStatementThree) == false) {
return false;
}
WebACLStatementThree rhs = ((WebACLStatementThree) 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).append(managedRuleGroupStatement, rhs.managedRuleGroupStatement).append(ruleGroupReferenceStatement, rhs.ruleGroupReferenceStatement).isEquals();
}
}