
shiver.me.timbers.aws.macie.CustomDataIdentifier Maven / Gradle / Ivy
package shiver.me.timbers.aws.macie;
import java.util.ArrayList;
import java.util.List;
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;
/**
* CustomDataIdentifier
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-macie-customdataidentifier.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"Name",
"Description",
"Regex",
"MaximumMatchDistance",
"Keywords",
"IgnoreWords"
})
public class CustomDataIdentifier {
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-macie-customdataidentifier.html#cfn-macie-customdataidentifier-name
*
*/
@JsonProperty("Name")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-macie-customdataidentifier.html#cfn-macie-customdataidentifier-name")
private CharSequence name;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-macie-customdataidentifier.html#cfn-macie-customdataidentifier-description
*
*/
@JsonProperty("Description")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-macie-customdataidentifier.html#cfn-macie-customdataidentifier-description")
private CharSequence description;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-macie-customdataidentifier.html#cfn-macie-customdataidentifier-regex
*
*/
@JsonProperty("Regex")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-macie-customdataidentifier.html#cfn-macie-customdataidentifier-regex")
private CharSequence regex;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-macie-customdataidentifier.html#cfn-macie-customdataidentifier-maximummatchdistance
*
*/
@JsonProperty("MaximumMatchDistance")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-macie-customdataidentifier.html#cfn-macie-customdataidentifier-maximummatchdistance")
private Number maximumMatchDistance;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-macie-customdataidentifier.html#cfn-macie-customdataidentifier-keywords
*
*/
@JsonProperty("Keywords")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-macie-customdataidentifier.html#cfn-macie-customdataidentifier-keywords")
private List keywords = new ArrayList();
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-macie-customdataidentifier.html#cfn-macie-customdataidentifier-ignorewords
*
*/
@JsonProperty("IgnoreWords")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-macie-customdataidentifier.html#cfn-macie-customdataidentifier-ignorewords")
private List ignoreWords = new ArrayList();
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-macie-customdataidentifier.html#cfn-macie-customdataidentifier-name
*
*/
@JsonIgnore
public CharSequence getName() {
return name;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-macie-customdataidentifier.html#cfn-macie-customdataidentifier-name
*
*/
@JsonIgnore
public void setName(CharSequence name) {
this.name = name;
}
public CustomDataIdentifier withName(CharSequence name) {
this.name = name;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-macie-customdataidentifier.html#cfn-macie-customdataidentifier-description
*
*/
@JsonIgnore
public CharSequence getDescription() {
return description;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-macie-customdataidentifier.html#cfn-macie-customdataidentifier-description
*
*/
@JsonIgnore
public void setDescription(CharSequence description) {
this.description = description;
}
public CustomDataIdentifier withDescription(CharSequence description) {
this.description = description;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-macie-customdataidentifier.html#cfn-macie-customdataidentifier-regex
*
*/
@JsonIgnore
public CharSequence getRegex() {
return regex;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-macie-customdataidentifier.html#cfn-macie-customdataidentifier-regex
*
*/
@JsonIgnore
public void setRegex(CharSequence regex) {
this.regex = regex;
}
public CustomDataIdentifier withRegex(CharSequence regex) {
this.regex = regex;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-macie-customdataidentifier.html#cfn-macie-customdataidentifier-maximummatchdistance
*
*/
@JsonIgnore
public Number getMaximumMatchDistance() {
return maximumMatchDistance;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-macie-customdataidentifier.html#cfn-macie-customdataidentifier-maximummatchdistance
*
*/
@JsonIgnore
public void setMaximumMatchDistance(Number maximumMatchDistance) {
this.maximumMatchDistance = maximumMatchDistance;
}
public CustomDataIdentifier withMaximumMatchDistance(Number maximumMatchDistance) {
this.maximumMatchDistance = maximumMatchDistance;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-macie-customdataidentifier.html#cfn-macie-customdataidentifier-keywords
*
*/
@JsonIgnore
public List getKeywords() {
return keywords;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-macie-customdataidentifier.html#cfn-macie-customdataidentifier-keywords
*
*/
@JsonIgnore
public void setKeywords(List keywords) {
this.keywords = keywords;
}
public CustomDataIdentifier withKeywords(List keywords) {
this.keywords = keywords;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-macie-customdataidentifier.html#cfn-macie-customdataidentifier-ignorewords
*
*/
@JsonIgnore
public List getIgnoreWords() {
return ignoreWords;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-macie-customdataidentifier.html#cfn-macie-customdataidentifier-ignorewords
*
*/
@JsonIgnore
public void setIgnoreWords(List ignoreWords) {
this.ignoreWords = ignoreWords;
}
public CustomDataIdentifier withIgnoreWords(List ignoreWords) {
this.ignoreWords = ignoreWords;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("name", name).append("description", description).append("regex", regex).append("maximumMatchDistance", maximumMatchDistance).append("keywords", keywords).append("ignoreWords", ignoreWords).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(regex).append(keywords).append(ignoreWords).append(name).append(description).append(maximumMatchDistance).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof CustomDataIdentifier) == false) {
return false;
}
CustomDataIdentifier rhs = ((CustomDataIdentifier) other);
return new EqualsBuilder().append(regex, rhs.regex).append(keywords, rhs.keywords).append(ignoreWords, rhs.ignoreWords).append(name, rhs.name).append(description, rhs.description).append(maximumMatchDistance, rhs.maximumMatchDistance).isEquals();
}
}