public class UpdateVocabularyFilterRequest extends AmazonWebServiceRequest implements java.io.Serializable
Updates a vocabulary filter with a new list of filtered words.
Constructor and Description |
---|
UpdateVocabularyFilterRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getVocabularyFilterFileUri()
The Amazon S3 location of a text file used as input to create the
vocabulary filter.
|
java.lang.String |
getVocabularyFilterName()
The name of the vocabulary filter to update.
|
java.util.List<java.lang.String> |
getWords()
The words to use in the vocabulary filter.
|
int |
hashCode() |
void |
setVocabularyFilterFileUri(java.lang.String vocabularyFilterFileUri)
The Amazon S3 location of a text file used as input to create the
vocabulary filter.
|
void |
setVocabularyFilterName(java.lang.String vocabularyFilterName)
The name of the vocabulary filter to update.
|
void |
setWords(java.util.Collection<java.lang.String> words)
The words to use in the vocabulary filter.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UpdateVocabularyFilterRequest |
withVocabularyFilterFileUri(java.lang.String vocabularyFilterFileUri)
The Amazon S3 location of a text file used as input to create the
vocabulary filter.
|
UpdateVocabularyFilterRequest |
withVocabularyFilterName(java.lang.String vocabularyFilterName)
The name of the vocabulary filter to update.
|
UpdateVocabularyFilterRequest |
withWords(java.util.Collection<java.lang.String> words)
The words to use in the vocabulary filter.
|
UpdateVocabularyFilterRequest |
withWords(java.lang.String... words)
The words to use in the vocabulary filter.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getVocabularyFilterName()
The name of the vocabulary filter to update. If you try to update a
vocabulary filter with the same name as another vocabulary filter, you
get a ConflictException
error.
Constraints:
Length: 1 - 200
Pattern: ^[0-9a-zA-Z._-]+
The name of the vocabulary filter to update. If you try to update
a vocabulary filter with the same name as another vocabulary
filter, you get a ConflictException
error.
public void setVocabularyFilterName(java.lang.String vocabularyFilterName)
The name of the vocabulary filter to update. If you try to update a
vocabulary filter with the same name as another vocabulary filter, you
get a ConflictException
error.
Constraints:
Length: 1 - 200
Pattern: ^[0-9a-zA-Z._-]+
vocabularyFilterName
-
The name of the vocabulary filter to update. If you try to
update a vocabulary filter with the same name as another
vocabulary filter, you get a ConflictException
error.
public UpdateVocabularyFilterRequest withVocabularyFilterName(java.lang.String vocabularyFilterName)
The name of the vocabulary filter to update. If you try to update a
vocabulary filter with the same name as another vocabulary filter, you
get a ConflictException
error.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 200
Pattern: ^[0-9a-zA-Z._-]+
vocabularyFilterName
-
The name of the vocabulary filter to update. If you try to
update a vocabulary filter with the same name as another
vocabulary filter, you get a ConflictException
error.
public java.util.List<java.lang.String> getWords()
The words to use in the vocabulary filter. Only use characters from the character set defined for custom vocabularies. For a list of character sets, see Character Sets for Custom Vocabularies.
If you provide a list of words in the Words
parameter, you
can't use the VocabularyFilterFileUri
parameter.
The words to use in the vocabulary filter. Only use characters from the character set defined for custom vocabularies. For a list of character sets, see Character Sets for Custom Vocabularies.
If you provide a list of words in the Words
parameter, you can't use the VocabularyFilterFileUri
parameter.
public void setWords(java.util.Collection<java.lang.String> words)
The words to use in the vocabulary filter. Only use characters from the character set defined for custom vocabularies. For a list of character sets, see Character Sets for Custom Vocabularies.
If you provide a list of words in the Words
parameter, you
can't use the VocabularyFilterFileUri
parameter.
words
- The words to use in the vocabulary filter. Only use characters from the character set defined for custom vocabularies. For a list of character sets, see Character Sets for Custom Vocabularies.
If you provide a list of words in the Words
parameter, you can't use the
VocabularyFilterFileUri
parameter.
public UpdateVocabularyFilterRequest withWords(java.lang.String... words)
The words to use in the vocabulary filter. Only use characters from the character set defined for custom vocabularies. For a list of character sets, see Character Sets for Custom Vocabularies.
If you provide a list of words in the Words
parameter, you
can't use the VocabularyFilterFileUri
parameter.
Returns a reference to this object so that method calls can be chained together.
words
- The words to use in the vocabulary filter. Only use characters from the character set defined for custom vocabularies. For a list of character sets, see Character Sets for Custom Vocabularies.
If you provide a list of words in the Words
parameter, you can't use the
VocabularyFilterFileUri
parameter.
public UpdateVocabularyFilterRequest withWords(java.util.Collection<java.lang.String> words)
The words to use in the vocabulary filter. Only use characters from the character set defined for custom vocabularies. For a list of character sets, see Character Sets for Custom Vocabularies.
If you provide a list of words in the Words
parameter, you
can't use the VocabularyFilterFileUri
parameter.
Returns a reference to this object so that method calls can be chained together.
words
- The words to use in the vocabulary filter. Only use characters from the character set defined for custom vocabularies. For a list of character sets, see Character Sets for Custom Vocabularies.
If you provide a list of words in the Words
parameter, you can't use the
VocabularyFilterFileUri
parameter.
public java.lang.String getVocabularyFilterFileUri()
The Amazon S3 location of a text file used as input to create the vocabulary filter. Only use characters from the character set defined for custom vocabularies. For a list of character sets, see Character Sets for Custom Vocabularies.
The specified file must be less than 50 KB of UTF-8 characters.
If you provide the location of a list of words in the
VocabularyFilterFileUri
parameter, you can't use the
Words
parameter.
Constraints:
Length: 1 - 2000
Pattern: (s3://|http(s*)://).+
The Amazon S3 location of a text file used as input to create the vocabulary filter. Only use characters from the character set defined for custom vocabularies. For a list of character sets, see Character Sets for Custom Vocabularies.
The specified file must be less than 50 KB of UTF-8 characters.
If you provide the location of a list of words in the
VocabularyFilterFileUri
parameter, you can't use the
Words
parameter.
public void setVocabularyFilterFileUri(java.lang.String vocabularyFilterFileUri)
The Amazon S3 location of a text file used as input to create the vocabulary filter. Only use characters from the character set defined for custom vocabularies. For a list of character sets, see Character Sets for Custom Vocabularies.
The specified file must be less than 50 KB of UTF-8 characters.
If you provide the location of a list of words in the
VocabularyFilterFileUri
parameter, you can't use the
Words
parameter.
Constraints:
Length: 1 - 2000
Pattern: (s3://|http(s*)://).+
vocabularyFilterFileUri
- The Amazon S3 location of a text file used as input to create the vocabulary filter. Only use characters from the character set defined for custom vocabularies. For a list of character sets, see Character Sets for Custom Vocabularies.
The specified file must be less than 50 KB of UTF-8 characters.
If you provide the location of a list of words in the
VocabularyFilterFileUri
parameter, you can't use
the Words
parameter.
public UpdateVocabularyFilterRequest withVocabularyFilterFileUri(java.lang.String vocabularyFilterFileUri)
The Amazon S3 location of a text file used as input to create the vocabulary filter. Only use characters from the character set defined for custom vocabularies. For a list of character sets, see Character Sets for Custom Vocabularies.
The specified file must be less than 50 KB of UTF-8 characters.
If you provide the location of a list of words in the
VocabularyFilterFileUri
parameter, you can't use the
Words
parameter.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 2000
Pattern: (s3://|http(s*)://).+
vocabularyFilterFileUri
- The Amazon S3 location of a text file used as input to create the vocabulary filter. Only use characters from the character set defined for custom vocabularies. For a list of character sets, see Character Sets for Custom Vocabularies.
The specified file must be less than 50 KB of UTF-8 characters.
If you provide the location of a list of words in the
VocabularyFilterFileUri
parameter, you can't use
the Words
parameter.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.