com.amazonaws.services.macie2.model.GetCustomDataIdentifierResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-macie2 Show documentation
/*
* Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.macie2.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class GetCustomDataIdentifierResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* The Amazon Resource Name (ARN) of the custom data identifier.
*
*/
private String arn;
/**
*
* The date and time, in UTC and extended ISO 8601 format, when the custom data identifier was created.
*
*/
private java.util.Date createdAt;
/**
*
* Specifies whether the custom data identifier was deleted. If you delete a custom data identifier, Amazon Macie
* doesn't delete it permanently. Instead, it soft deletes the identifier.
*
*/
private Boolean deleted;
/**
*
* The custom description of the custom data identifier.
*
*/
private String description;
/**
*
* The unique identifier for the custom data identifier.
*
*/
private String id;
/**
*
* An array that lists specific character sequences (ignore words) to exclude from the results. If the text
* matched by the regular expression contains any string in this array, Amazon Macie ignores it. Ignore words are
* case sensitive.
*
*/
private java.util.List ignoreWords;
/**
*
* An array that lists specific character sequences (keywords), one of which must precede and be within
* proximity (maximumMatchDistance) of the regular expression to match. Keywords aren't case sensitive.
*
*/
private java.util.List keywords;
/**
*
* The maximum number of characters that can exist between the end of at least one complete character sequence
* specified by the keywords array and the end of the text that matches the regex pattern. If a complete keyword
* precedes all the text that matches the pattern and the keyword is within the specified distance, Amazon Macie
* includes the result. Otherwise, Macie excludes the result.
*
*/
private Integer maximumMatchDistance;
/**
*
* The custom name of the custom data identifier.
*
*/
private String name;
/**
*
* The regular expression (regex) that defines the pattern to match.
*
*/
private String regex;
/**
*
* Specifies the severity that's assigned to findings that the custom data identifier produces, based on the number
* of occurrences of text that match the custom data identifier's detection criteria. By default, Amazon Macie
* creates findings for S3 objects that contain at least one occurrence of text that matches the detection criteria,
* and Macie assigns the MEDIUM severity to those findings.
*
*/
private java.util.List severityLevels;
/**
*
* A map of key-value pairs that identifies the tags (keys and values) that are associated with the custom data
* identifier.
*
*/
private java.util.Map tags;
/**
*
* The Amazon Resource Name (ARN) of the custom data identifier.
*
*
* @param arn
* The Amazon Resource Name (ARN) of the custom data identifier.
*/
public void setArn(String arn) {
this.arn = arn;
}
/**
*
* The Amazon Resource Name (ARN) of the custom data identifier.
*
*
* @return The Amazon Resource Name (ARN) of the custom data identifier.
*/
public String getArn() {
return this.arn;
}
/**
*
* The Amazon Resource Name (ARN) of the custom data identifier.
*
*
* @param arn
* The Amazon Resource Name (ARN) of the custom data identifier.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetCustomDataIdentifierResult withArn(String arn) {
setArn(arn);
return this;
}
/**
*
* The date and time, in UTC and extended ISO 8601 format, when the custom data identifier was created.
*
*
* @param createdAt
* The date and time, in UTC and extended ISO 8601 format, when the custom data identifier was created.
*/
public void setCreatedAt(java.util.Date createdAt) {
this.createdAt = createdAt;
}
/**
*
* The date and time, in UTC and extended ISO 8601 format, when the custom data identifier was created.
*
*
* @return The date and time, in UTC and extended ISO 8601 format, when the custom data identifier was created.
*/
public java.util.Date getCreatedAt() {
return this.createdAt;
}
/**
*
* The date and time, in UTC and extended ISO 8601 format, when the custom data identifier was created.
*
*
* @param createdAt
* The date and time, in UTC and extended ISO 8601 format, when the custom data identifier was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetCustomDataIdentifierResult withCreatedAt(java.util.Date createdAt) {
setCreatedAt(createdAt);
return this;
}
/**
*
* Specifies whether the custom data identifier was deleted. If you delete a custom data identifier, Amazon Macie
* doesn't delete it permanently. Instead, it soft deletes the identifier.
*
*
* @param deleted
* Specifies whether the custom data identifier was deleted. If you delete a custom data identifier, Amazon
* Macie doesn't delete it permanently. Instead, it soft deletes the identifier.
*/
public void setDeleted(Boolean deleted) {
this.deleted = deleted;
}
/**
*
* Specifies whether the custom data identifier was deleted. If you delete a custom data identifier, Amazon Macie
* doesn't delete it permanently. Instead, it soft deletes the identifier.
*
*
* @return Specifies whether the custom data identifier was deleted. If you delete a custom data identifier, Amazon
* Macie doesn't delete it permanently. Instead, it soft deletes the identifier.
*/
public Boolean getDeleted() {
return this.deleted;
}
/**
*
* Specifies whether the custom data identifier was deleted. If you delete a custom data identifier, Amazon Macie
* doesn't delete it permanently. Instead, it soft deletes the identifier.
*
*
* @param deleted
* Specifies whether the custom data identifier was deleted. If you delete a custom data identifier, Amazon
* Macie doesn't delete it permanently. Instead, it soft deletes the identifier.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetCustomDataIdentifierResult withDeleted(Boolean deleted) {
setDeleted(deleted);
return this;
}
/**
*
* Specifies whether the custom data identifier was deleted. If you delete a custom data identifier, Amazon Macie
* doesn't delete it permanently. Instead, it soft deletes the identifier.
*
*
* @return Specifies whether the custom data identifier was deleted. If you delete a custom data identifier, Amazon
* Macie doesn't delete it permanently. Instead, it soft deletes the identifier.
*/
public Boolean isDeleted() {
return this.deleted;
}
/**
*
* The custom description of the custom data identifier.
*
*
* @param description
* The custom description of the custom data identifier.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* The custom description of the custom data identifier.
*
*
* @return The custom description of the custom data identifier.
*/
public String getDescription() {
return this.description;
}
/**
*
* The custom description of the custom data identifier.
*
*
* @param description
* The custom description of the custom data identifier.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetCustomDataIdentifierResult withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* The unique identifier for the custom data identifier.
*
*
* @param id
* The unique identifier for the custom data identifier.
*/
public void setId(String id) {
this.id = id;
}
/**
*
* The unique identifier for the custom data identifier.
*
*
* @return The unique identifier for the custom data identifier.
*/
public String getId() {
return this.id;
}
/**
*
* The unique identifier for the custom data identifier.
*
*
* @param id
* The unique identifier for the custom data identifier.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetCustomDataIdentifierResult withId(String id) {
setId(id);
return this;
}
/**
*
* An array that lists specific character sequences (ignore words) to exclude from the results. If the text
* matched by the regular expression contains any string in this array, Amazon Macie ignores it. Ignore words are
* case sensitive.
*
*
* @return An array that lists specific character sequences (ignore words) to exclude from the results. If
* the text matched by the regular expression contains any string in this array, Amazon Macie ignores it.
* Ignore words are case sensitive.
*/
public java.util.List getIgnoreWords() {
return ignoreWords;
}
/**
*
* An array that lists specific character sequences (ignore words) to exclude from the results. If the text
* matched by the regular expression contains any string in this array, Amazon Macie ignores it. Ignore words are
* case sensitive.
*
*
* @param ignoreWords
* An array that lists specific character sequences (ignore words) to exclude from the results. If the
* text matched by the regular expression contains any string in this array, Amazon Macie ignores it. Ignore
* words are case sensitive.
*/
public void setIgnoreWords(java.util.Collection ignoreWords) {
if (ignoreWords == null) {
this.ignoreWords = null;
return;
}
this.ignoreWords = new java.util.ArrayList(ignoreWords);
}
/**
*
* An array that lists specific character sequences (ignore words) to exclude from the results. If the text
* matched by the regular expression contains any string in this array, Amazon Macie ignores it. Ignore words are
* case sensitive.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setIgnoreWords(java.util.Collection)} or {@link #withIgnoreWords(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param ignoreWords
* An array that lists specific character sequences (ignore words) to exclude from the results. If the
* text matched by the regular expression contains any string in this array, Amazon Macie ignores it. Ignore
* words are case sensitive.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetCustomDataIdentifierResult withIgnoreWords(String... ignoreWords) {
if (this.ignoreWords == null) {
setIgnoreWords(new java.util.ArrayList(ignoreWords.length));
}
for (String ele : ignoreWords) {
this.ignoreWords.add(ele);
}
return this;
}
/**
*
* An array that lists specific character sequences (ignore words) to exclude from the results. If the text
* matched by the regular expression contains any string in this array, Amazon Macie ignores it. Ignore words are
* case sensitive.
*
*
* @param ignoreWords
* An array that lists specific character sequences (ignore words) to exclude from the results. If the
* text matched by the regular expression contains any string in this array, Amazon Macie ignores it. Ignore
* words are case sensitive.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetCustomDataIdentifierResult withIgnoreWords(java.util.Collection ignoreWords) {
setIgnoreWords(ignoreWords);
return this;
}
/**
*
* An array that lists specific character sequences (keywords), one of which must precede and be within
* proximity (maximumMatchDistance) of the regular expression to match. Keywords aren't case sensitive.
*
*
* @return An array that lists specific character sequences (keywords), one of which must precede and be
* within proximity (maximumMatchDistance) of the regular expression to match. Keywords aren't case
* sensitive.
*/
public java.util.List getKeywords() {
return keywords;
}
/**
*
* An array that lists specific character sequences (keywords), one of which must precede and be within
* proximity (maximumMatchDistance) of the regular expression to match. Keywords aren't case sensitive.
*
*
* @param keywords
* An array that lists specific character sequences (keywords), one of which must precede and be
* within proximity (maximumMatchDistance) of the regular expression to match. Keywords aren't case
* sensitive.
*/
public void setKeywords(java.util.Collection keywords) {
if (keywords == null) {
this.keywords = null;
return;
}
this.keywords = new java.util.ArrayList(keywords);
}
/**
*
* An array that lists specific character sequences (keywords), one of which must precede and be within
* proximity (maximumMatchDistance) of the regular expression to match. Keywords aren't case sensitive.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setKeywords(java.util.Collection)} or {@link #withKeywords(java.util.Collection)} if you want to override
* the existing values.
*
*
* @param keywords
* An array that lists specific character sequences (keywords), one of which must precede and be
* within proximity (maximumMatchDistance) of the regular expression to match. Keywords aren't case
* sensitive.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetCustomDataIdentifierResult withKeywords(String... keywords) {
if (this.keywords == null) {
setKeywords(new java.util.ArrayList(keywords.length));
}
for (String ele : keywords) {
this.keywords.add(ele);
}
return this;
}
/**
*
* An array that lists specific character sequences (keywords), one of which must precede and be within
* proximity (maximumMatchDistance) of the regular expression to match. Keywords aren't case sensitive.
*
*
* @param keywords
* An array that lists specific character sequences (keywords), one of which must precede and be
* within proximity (maximumMatchDistance) of the regular expression to match. Keywords aren't case
* sensitive.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetCustomDataIdentifierResult withKeywords(java.util.Collection keywords) {
setKeywords(keywords);
return this;
}
/**
*
* The maximum number of characters that can exist between the end of at least one complete character sequence
* specified by the keywords array and the end of the text that matches the regex pattern. If a complete keyword
* precedes all the text that matches the pattern and the keyword is within the specified distance, Amazon Macie
* includes the result. Otherwise, Macie excludes the result.
*
*
* @param maximumMatchDistance
* The maximum number of characters that can exist between the end of at least one complete character
* sequence specified by the keywords array and the end of the text that matches the regex pattern. If a
* complete keyword precedes all the text that matches the pattern and the keyword is within the specified
* distance, Amazon Macie includes the result. Otherwise, Macie excludes the result.
*/
public void setMaximumMatchDistance(Integer maximumMatchDistance) {
this.maximumMatchDistance = maximumMatchDistance;
}
/**
*
* The maximum number of characters that can exist between the end of at least one complete character sequence
* specified by the keywords array and the end of the text that matches the regex pattern. If a complete keyword
* precedes all the text that matches the pattern and the keyword is within the specified distance, Amazon Macie
* includes the result. Otherwise, Macie excludes the result.
*
*
* @return The maximum number of characters that can exist between the end of at least one complete character
* sequence specified by the keywords array and the end of the text that matches the regex pattern. If a
* complete keyword precedes all the text that matches the pattern and the keyword is within the specified
* distance, Amazon Macie includes the result. Otherwise, Macie excludes the result.
*/
public Integer getMaximumMatchDistance() {
return this.maximumMatchDistance;
}
/**
*
* The maximum number of characters that can exist between the end of at least one complete character sequence
* specified by the keywords array and the end of the text that matches the regex pattern. If a complete keyword
* precedes all the text that matches the pattern and the keyword is within the specified distance, Amazon Macie
* includes the result. Otherwise, Macie excludes the result.
*
*
* @param maximumMatchDistance
* The maximum number of characters that can exist between the end of at least one complete character
* sequence specified by the keywords array and the end of the text that matches the regex pattern. If a
* complete keyword precedes all the text that matches the pattern and the keyword is within the specified
* distance, Amazon Macie includes the result. Otherwise, Macie excludes the result.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetCustomDataIdentifierResult withMaximumMatchDistance(Integer maximumMatchDistance) {
setMaximumMatchDistance(maximumMatchDistance);
return this;
}
/**
*
* The custom name of the custom data identifier.
*
*
* @param name
* The custom name of the custom data identifier.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The custom name of the custom data identifier.
*
*
* @return The custom name of the custom data identifier.
*/
public String getName() {
return this.name;
}
/**
*
* The custom name of the custom data identifier.
*
*
* @param name
* The custom name of the custom data identifier.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetCustomDataIdentifierResult withName(String name) {
setName(name);
return this;
}
/**
*
* The regular expression (regex) that defines the pattern to match.
*
*
* @param regex
* The regular expression (regex) that defines the pattern to match.
*/
public void setRegex(String regex) {
this.regex = regex;
}
/**
*
* The regular expression (regex) that defines the pattern to match.
*
*
* @return The regular expression (regex) that defines the pattern to match.
*/
public String getRegex() {
return this.regex;
}
/**
*
* The regular expression (regex) that defines the pattern to match.
*
*
* @param regex
* The regular expression (regex) that defines the pattern to match.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetCustomDataIdentifierResult withRegex(String regex) {
setRegex(regex);
return this;
}
/**
*
* Specifies the severity that's assigned to findings that the custom data identifier produces, based on the number
* of occurrences of text that match the custom data identifier's detection criteria. By default, Amazon Macie
* creates findings for S3 objects that contain at least one occurrence of text that matches the detection criteria,
* and Macie assigns the MEDIUM severity to those findings.
*
*
* @return Specifies the severity that's assigned to findings that the custom data identifier produces, based on the
* number of occurrences of text that match the custom data identifier's detection criteria. By default,
* Amazon Macie creates findings for S3 objects that contain at least one occurrence of text that matches
* the detection criteria, and Macie assigns the MEDIUM severity to those findings.
*/
public java.util.List getSeverityLevels() {
return severityLevels;
}
/**
*
* Specifies the severity that's assigned to findings that the custom data identifier produces, based on the number
* of occurrences of text that match the custom data identifier's detection criteria. By default, Amazon Macie
* creates findings for S3 objects that contain at least one occurrence of text that matches the detection criteria,
* and Macie assigns the MEDIUM severity to those findings.
*
*
* @param severityLevels
* Specifies the severity that's assigned to findings that the custom data identifier produces, based on the
* number of occurrences of text that match the custom data identifier's detection criteria. By default,
* Amazon Macie creates findings for S3 objects that contain at least one occurrence of text that matches the
* detection criteria, and Macie assigns the MEDIUM severity to those findings.
*/
public void setSeverityLevels(java.util.Collection severityLevels) {
if (severityLevels == null) {
this.severityLevels = null;
return;
}
this.severityLevels = new java.util.ArrayList(severityLevels);
}
/**
*
* Specifies the severity that's assigned to findings that the custom data identifier produces, based on the number
* of occurrences of text that match the custom data identifier's detection criteria. By default, Amazon Macie
* creates findings for S3 objects that contain at least one occurrence of text that matches the detection criteria,
* and Macie assigns the MEDIUM severity to those findings.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSeverityLevels(java.util.Collection)} or {@link #withSeverityLevels(java.util.Collection)} if you want
* to override the existing values.
*
*
* @param severityLevels
* Specifies the severity that's assigned to findings that the custom data identifier produces, based on the
* number of occurrences of text that match the custom data identifier's detection criteria. By default,
* Amazon Macie creates findings for S3 objects that contain at least one occurrence of text that matches the
* detection criteria, and Macie assigns the MEDIUM severity to those findings.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetCustomDataIdentifierResult withSeverityLevels(SeverityLevel... severityLevels) {
if (this.severityLevels == null) {
setSeverityLevels(new java.util.ArrayList(severityLevels.length));
}
for (SeverityLevel ele : severityLevels) {
this.severityLevels.add(ele);
}
return this;
}
/**
*
* Specifies the severity that's assigned to findings that the custom data identifier produces, based on the number
* of occurrences of text that match the custom data identifier's detection criteria. By default, Amazon Macie
* creates findings for S3 objects that contain at least one occurrence of text that matches the detection criteria,
* and Macie assigns the MEDIUM severity to those findings.
*
*
* @param severityLevels
* Specifies the severity that's assigned to findings that the custom data identifier produces, based on the
* number of occurrences of text that match the custom data identifier's detection criteria. By default,
* Amazon Macie creates findings for S3 objects that contain at least one occurrence of text that matches the
* detection criteria, and Macie assigns the MEDIUM severity to those findings.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetCustomDataIdentifierResult withSeverityLevels(java.util.Collection severityLevels) {
setSeverityLevels(severityLevels);
return this;
}
/**
*
* A map of key-value pairs that identifies the tags (keys and values) that are associated with the custom data
* identifier.
*
*
* @return A map of key-value pairs that identifies the tags (keys and values) that are associated with the custom
* data identifier.
*/
public java.util.Map getTags() {
return tags;
}
/**
*
* A map of key-value pairs that identifies the tags (keys and values) that are associated with the custom data
* identifier.
*
*
* @param tags
* A map of key-value pairs that identifies the tags (keys and values) that are associated with the custom
* data identifier.
*/
public void setTags(java.util.Map tags) {
this.tags = tags;
}
/**
*
* A map of key-value pairs that identifies the tags (keys and values) that are associated with the custom data
* identifier.
*
*
* @param tags
* A map of key-value pairs that identifies the tags (keys and values) that are associated with the custom
* data identifier.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetCustomDataIdentifierResult withTags(java.util.Map tags) {
setTags(tags);
return this;
}
/**
* Add a single Tags entry
*
* @see GetCustomDataIdentifierResult#withTags
* @returns a reference to this object so that method calls can be chained together.
*/
public GetCustomDataIdentifierResult addTagsEntry(String key, String value) {
if (null == this.tags) {
this.tags = new java.util.HashMap();
}
if (this.tags.containsKey(key))
throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
this.tags.put(key, value);
return this;
}
/**
* Removes all the entries added into Tags.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetCustomDataIdentifierResult clearTagsEntries() {
this.tags = null;
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getArn() != null)
sb.append("Arn: ").append(getArn()).append(",");
if (getCreatedAt() != null)
sb.append("CreatedAt: ").append(getCreatedAt()).append(",");
if (getDeleted() != null)
sb.append("Deleted: ").append(getDeleted()).append(",");
if (getDescription() != null)
sb.append("Description: ").append(getDescription()).append(",");
if (getId() != null)
sb.append("Id: ").append(getId()).append(",");
if (getIgnoreWords() != null)
sb.append("IgnoreWords: ").append(getIgnoreWords()).append(",");
if (getKeywords() != null)
sb.append("Keywords: ").append(getKeywords()).append(",");
if (getMaximumMatchDistance() != null)
sb.append("MaximumMatchDistance: ").append(getMaximumMatchDistance()).append(",");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getRegex() != null)
sb.append("Regex: ").append(getRegex()).append(",");
if (getSeverityLevels() != null)
sb.append("SeverityLevels: ").append(getSeverityLevels()).append(",");
if (getTags() != null)
sb.append("Tags: ").append(getTags());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof GetCustomDataIdentifierResult == false)
return false;
GetCustomDataIdentifierResult other = (GetCustomDataIdentifierResult) obj;
if (other.getArn() == null ^ this.getArn() == null)
return false;
if (other.getArn() != null && other.getArn().equals(this.getArn()) == false)
return false;
if (other.getCreatedAt() == null ^ this.getCreatedAt() == null)
return false;
if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false)
return false;
if (other.getDeleted() == null ^ this.getDeleted() == null)
return false;
if (other.getDeleted() != null && other.getDeleted().equals(this.getDeleted()) == false)
return false;
if (other.getDescription() == null ^ this.getDescription() == null)
return false;
if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false)
return false;
if (other.getId() == null ^ this.getId() == null)
return false;
if (other.getId() != null && other.getId().equals(this.getId()) == false)
return false;
if (other.getIgnoreWords() == null ^ this.getIgnoreWords() == null)
return false;
if (other.getIgnoreWords() != null && other.getIgnoreWords().equals(this.getIgnoreWords()) == false)
return false;
if (other.getKeywords() == null ^ this.getKeywords() == null)
return false;
if (other.getKeywords() != null && other.getKeywords().equals(this.getKeywords()) == false)
return false;
if (other.getMaximumMatchDistance() == null ^ this.getMaximumMatchDistance() == null)
return false;
if (other.getMaximumMatchDistance() != null && other.getMaximumMatchDistance().equals(this.getMaximumMatchDistance()) == false)
return false;
if (other.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null && other.getName().equals(this.getName()) == false)
return false;
if (other.getRegex() == null ^ this.getRegex() == null)
return false;
if (other.getRegex() != null && other.getRegex().equals(this.getRegex()) == false)
return false;
if (other.getSeverityLevels() == null ^ this.getSeverityLevels() == null)
return false;
if (other.getSeverityLevels() != null && other.getSeverityLevels().equals(this.getSeverityLevels()) == false)
return false;
if (other.getTags() == null ^ this.getTags() == null)
return false;
if (other.getTags() != null && other.getTags().equals(this.getTags()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode());
hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
hashCode = prime * hashCode + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode());
hashCode = prime * hashCode + ((getIgnoreWords() == null) ? 0 : getIgnoreWords().hashCode());
hashCode = prime * hashCode + ((getKeywords() == null) ? 0 : getKeywords().hashCode());
hashCode = prime * hashCode + ((getMaximumMatchDistance() == null) ? 0 : getMaximumMatchDistance().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getRegex() == null) ? 0 : getRegex().hashCode());
hashCode = prime * hashCode + ((getSeverityLevels() == null) ? 0 : getSeverityLevels().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
return hashCode;
}
@Override
public GetCustomDataIdentifierResult clone() {
try {
return (GetCustomDataIdentifierResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}