Package software.amazon.smithy.linters
Class ReservedWordsValidator.ReservedWords
- java.lang.Object
-
- software.amazon.smithy.linters.ReservedWordsValidator.ReservedWords
-
- Enclosing class:
- ReservedWordsValidator
public static final class ReservedWordsValidator.ReservedWords extends java.lang.Object
A single reserved words configuration.
-
-
Constructor Summary
Constructors Constructor Description ReservedWords()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setReason(java.lang.String reason)
Sets the reason for why the words are reserved.void
setSelector(Selector selector)
Sets the selector to use for determining which shapes to validate.void
setTerms(java.util.List<java.lang.String> terms)
Sets the list of reserved word terms to match based on word boundaries.void
setWords(java.util.List<java.lang.String> words)
Sets the list of reserved word definitions.
-
-
-
Method Detail
-
setWords
public void setWords(java.util.List<java.lang.String> words)
Sets the list of reserved word definitions.Each word must be a valid word. The word cannot equal "*", and if present, "*", must appear at the start or end of the word.
- Parameters:
words
- Words to set.
-
setTerms
public void setTerms(java.util.List<java.lang.String> terms)
Sets the list of reserved word terms to match based on word boundaries.- Parameters:
terms
- Terms to set.
-
setSelector
public void setSelector(Selector selector)
Sets the selector to use for determining which shapes to validate.- Parameters:
selector
- Selector to set.
-
setReason
public void setReason(java.lang.String reason)
Sets the reason for why the words are reserved.- Parameters:
reason
- Reason to set.
-
-