@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CustomEntityType extends Object implements Serializable, Cloneable, StructuredPojo
An object representing a custom pattern for detecting sensitive data across the columns and rows of your structured data.
Constructor and Description |
---|
CustomEntityType() |
Modifier and Type | Method and Description |
---|---|
CustomEntityType |
clone() |
boolean |
equals(Object obj) |
List<String> |
getContextWords()
A list of context words.
|
String |
getName()
A name for the custom pattern that allows it to be retrieved or deleted later.
|
String |
getRegexString()
A regular expression string that is used for detecting sensitive data in a custom pattern.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContextWords(Collection<String> contextWords)
A list of context words.
|
void |
setName(String name)
A name for the custom pattern that allows it to be retrieved or deleted later.
|
void |
setRegexString(String regexString)
A regular expression string that is used for detecting sensitive data in a custom pattern.
|
String |
toString()
Returns a string representation of this object.
|
CustomEntityType |
withContextWords(Collection<String> contextWords)
A list of context words.
|
CustomEntityType |
withContextWords(String... contextWords)
A list of context words.
|
CustomEntityType |
withName(String name)
A name for the custom pattern that allows it to be retrieved or deleted later.
|
CustomEntityType |
withRegexString(String regexString)
A regular expression string that is used for detecting sensitive data in a custom pattern.
|
public void setName(String name)
A name for the custom pattern that allows it to be retrieved or deleted later. This name must be unique per Amazon Web Services account.
name
- A name for the custom pattern that allows it to be retrieved or deleted later. This name must be unique
per Amazon Web Services account.public String getName()
A name for the custom pattern that allows it to be retrieved or deleted later. This name must be unique per Amazon Web Services account.
public CustomEntityType withName(String name)
A name for the custom pattern that allows it to be retrieved or deleted later. This name must be unique per Amazon Web Services account.
name
- A name for the custom pattern that allows it to be retrieved or deleted later. This name must be unique
per Amazon Web Services account.public void setRegexString(String regexString)
A regular expression string that is used for detecting sensitive data in a custom pattern.
regexString
- A regular expression string that is used for detecting sensitive data in a custom pattern.public String getRegexString()
A regular expression string that is used for detecting sensitive data in a custom pattern.
public CustomEntityType withRegexString(String regexString)
A regular expression string that is used for detecting sensitive data in a custom pattern.
regexString
- A regular expression string that is used for detecting sensitive data in a custom pattern.public List<String> getContextWords()
A list of context words. If none of these context words are found within the vicinity of the regular expression the data will not be detected as sensitive data.
If no context words are passed only a regular expression is checked.
If no context words are passed only a regular expression is checked.
public void setContextWords(Collection<String> contextWords)
A list of context words. If none of these context words are found within the vicinity of the regular expression the data will not be detected as sensitive data.
If no context words are passed only a regular expression is checked.
contextWords
- A list of context words. If none of these context words are found within the vicinity of the regular
expression the data will not be detected as sensitive data.
If no context words are passed only a regular expression is checked.
public CustomEntityType withContextWords(String... contextWords)
A list of context words. If none of these context words are found within the vicinity of the regular expression the data will not be detected as sensitive data.
If no context words are passed only a regular expression is checked.
NOTE: This method appends the values to the existing list (if any). Use
setContextWords(java.util.Collection)
or withContextWords(java.util.Collection)
if you want to
override the existing values.
contextWords
- A list of context words. If none of these context words are found within the vicinity of the regular
expression the data will not be detected as sensitive data.
If no context words are passed only a regular expression is checked.
public CustomEntityType withContextWords(Collection<String> contextWords)
A list of context words. If none of these context words are found within the vicinity of the regular expression the data will not be detected as sensitive data.
If no context words are passed only a regular expression is checked.
contextWords
- A list of context words. If none of these context words are found within the vicinity of the regular
expression the data will not be detected as sensitive data.
If no context words are passed only a regular expression is checked.
public String toString()
toString
in class Object
Object.toString()
public CustomEntityType clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.