@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateVocabularyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateVocabularyRequest() |
Modifier and Type | Method and Description |
---|---|
CreateVocabularyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getLanguageCode()
The language code that represents the language of the entries in your custom vocabulary.
|
List<String> |
getPhrases()
Use this flag to include a list of terms within your request.
|
List<Tag> |
getTags()
Adds one or more tags, each in the form of a key:value pair, to a new custom vocabulary at the time you create
this new vocabulary.
|
String |
getVocabularyFileUri()
The S3 location of the text file that contains your custom vocabulary.
|
String |
getVocabularyName()
The name of your new vocabulary.
|
int |
hashCode() |
void |
setLanguageCode(String languageCode)
The language code that represents the language of the entries in your custom vocabulary.
|
void |
setPhrases(Collection<String> phrases)
Use this flag to include a list of terms within your request.
|
void |
setTags(Collection<Tag> tags)
Adds one or more tags, each in the form of a key:value pair, to a new custom vocabulary at the time you create
this new vocabulary.
|
void |
setVocabularyFileUri(String vocabularyFileUri)
The S3 location of the text file that contains your custom vocabulary.
|
void |
setVocabularyName(String vocabularyName)
The name of your new vocabulary.
|
String |
toString()
Returns a string representation of this object.
|
CreateVocabularyRequest |
withLanguageCode(LanguageCode languageCode)
The language code that represents the language of the entries in your custom vocabulary.
|
CreateVocabularyRequest |
withLanguageCode(String languageCode)
The language code that represents the language of the entries in your custom vocabulary.
|
CreateVocabularyRequest |
withPhrases(Collection<String> phrases)
Use this flag to include a list of terms within your request.
|
CreateVocabularyRequest |
withPhrases(String... phrases)
Use this flag to include a list of terms within your request.
|
CreateVocabularyRequest |
withTags(Collection<Tag> tags)
Adds one or more tags, each in the form of a key:value pair, to a new custom vocabulary at the time you create
this new vocabulary.
|
CreateVocabularyRequest |
withTags(Tag... tags)
Adds one or more tags, each in the form of a key:value pair, to a new custom vocabulary at the time you create
this new vocabulary.
|
CreateVocabularyRequest |
withVocabularyFileUri(String vocabularyFileUri)
The S3 location of the text file that contains your custom vocabulary.
|
CreateVocabularyRequest |
withVocabularyName(String vocabularyName)
The name of your new vocabulary.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setVocabularyName(String vocabularyName)
The name of your new vocabulary.
This name is case sensitive, cannot contain spaces, and must be unique within an Amazon Web Services account. If
you try to create a vocabulary with the same name as a previous vocabulary, you get a
ConflictException
error.
vocabularyName
- The name of your new vocabulary.
This name is case sensitive, cannot contain spaces, and must be unique within an Amazon Web Services
account. If you try to create a vocabulary with the same name as a previous vocabulary, you get a
ConflictException
error.
public String getVocabularyName()
The name of your new vocabulary.
This name is case sensitive, cannot contain spaces, and must be unique within an Amazon Web Services account. If
you try to create a vocabulary with the same name as a previous vocabulary, you get a
ConflictException
error.
This name is case sensitive, cannot contain spaces, and must be unique within an Amazon Web Services
account. If you try to create a vocabulary with the same name as a previous vocabulary, you get a
ConflictException
error.
public CreateVocabularyRequest withVocabularyName(String vocabularyName)
The name of your new vocabulary.
This name is case sensitive, cannot contain spaces, and must be unique within an Amazon Web Services account. If
you try to create a vocabulary with the same name as a previous vocabulary, you get a
ConflictException
error.
vocabularyName
- The name of your new vocabulary.
This name is case sensitive, cannot contain spaces, and must be unique within an Amazon Web Services
account. If you try to create a vocabulary with the same name as a previous vocabulary, you get a
ConflictException
error.
public void setLanguageCode(String languageCode)
The language code that represents the language of the entries in your custom vocabulary. Each vocabulary must contain terms in only one language. For a list of languages and their corresponding language codes, see Supported languages.
languageCode
- The language code that represents the language of the entries in your custom vocabulary. Each vocabulary
must contain terms in only one language. For a list of languages and their corresponding language codes,
see Supported
languages.LanguageCode
public String getLanguageCode()
The language code that represents the language of the entries in your custom vocabulary. Each vocabulary must contain terms in only one language. For a list of languages and their corresponding language codes, see Supported languages.
LanguageCode
public CreateVocabularyRequest withLanguageCode(String languageCode)
The language code that represents the language of the entries in your custom vocabulary. Each vocabulary must contain terms in only one language. For a list of languages and their corresponding language codes, see Supported languages.
languageCode
- The language code that represents the language of the entries in your custom vocabulary. Each vocabulary
must contain terms in only one language. For a list of languages and their corresponding language codes,
see Supported
languages.LanguageCode
public CreateVocabularyRequest withLanguageCode(LanguageCode languageCode)
The language code that represents the language of the entries in your custom vocabulary. Each vocabulary must contain terms in only one language. For a list of languages and their corresponding language codes, see Supported languages.
languageCode
- The language code that represents the language of the entries in your custom vocabulary. Each vocabulary
must contain terms in only one language. For a list of languages and their corresponding language codes,
see Supported
languages.LanguageCode
public List<String> getPhrases()
Use this flag to include a list of terms within your request.
Note that if you include Phrases
in your request, you cannot use VocabularyFileUri
; you
must choose one or the other.
Note that if you include Phrases
in your request, you cannot use
VocabularyFileUri
; you must choose one or the other.
public void setPhrases(Collection<String> phrases)
Use this flag to include a list of terms within your request.
Note that if you include Phrases
in your request, you cannot use VocabularyFileUri
; you
must choose one or the other.
phrases
- Use this flag to include a list of terms within your request.
Note that if you include Phrases
in your request, you cannot use
VocabularyFileUri
; you must choose one or the other.
public CreateVocabularyRequest withPhrases(String... phrases)
Use this flag to include a list of terms within your request.
Note that if you include Phrases
in your request, you cannot use VocabularyFileUri
; you
must choose one or the other.
NOTE: This method appends the values to the existing list (if any). Use
setPhrases(java.util.Collection)
or withPhrases(java.util.Collection)
if you want to override
the existing values.
phrases
- Use this flag to include a list of terms within your request.
Note that if you include Phrases
in your request, you cannot use
VocabularyFileUri
; you must choose one or the other.
public CreateVocabularyRequest withPhrases(Collection<String> phrases)
Use this flag to include a list of terms within your request.
Note that if you include Phrases
in your request, you cannot use VocabularyFileUri
; you
must choose one or the other.
phrases
- Use this flag to include a list of terms within your request.
Note that if you include Phrases
in your request, you cannot use
VocabularyFileUri
; you must choose one or the other.
public void setVocabularyFileUri(String vocabularyFileUri)
The S3 location of the text file that contains your custom vocabulary. The URI must be located in the same region as the API endpoint you're calling.
Here's an example URI path:
https://s3.us-east-1.amazonaws.com/my-s3-bucket/my-vocab-file.txt
Note that if you include VocabularyFileUri
in your request, you cannot use the Phrases
flag; you must choose one or the other.
vocabularyFileUri
- The S3 location of the text file that contains your custom vocabulary. The URI must be located in the same
region as the API endpoint you're calling.
Here's an example URI path:
https://s3.us-east-1.amazonaws.com/my-s3-bucket/my-vocab-file.txt
Note that if you include VocabularyFileUri
in your request, you cannot use the
Phrases
flag; you must choose one or the other.
public String getVocabularyFileUri()
The S3 location of the text file that contains your custom vocabulary. The URI must be located in the same region as the API endpoint you're calling.
Here's an example URI path:
https://s3.us-east-1.amazonaws.com/my-s3-bucket/my-vocab-file.txt
Note that if you include VocabularyFileUri
in your request, you cannot use the Phrases
flag; you must choose one or the other.
Here's an example URI path:
https://s3.us-east-1.amazonaws.com/my-s3-bucket/my-vocab-file.txt
Note that if you include VocabularyFileUri
in your request, you cannot use the
Phrases
flag; you must choose one or the other.
public CreateVocabularyRequest withVocabularyFileUri(String vocabularyFileUri)
The S3 location of the text file that contains your custom vocabulary. The URI must be located in the same region as the API endpoint you're calling.
Here's an example URI path:
https://s3.us-east-1.amazonaws.com/my-s3-bucket/my-vocab-file.txt
Note that if you include VocabularyFileUri
in your request, you cannot use the Phrases
flag; you must choose one or the other.
vocabularyFileUri
- The S3 location of the text file that contains your custom vocabulary. The URI must be located in the same
region as the API endpoint you're calling.
Here's an example URI path:
https://s3.us-east-1.amazonaws.com/my-s3-bucket/my-vocab-file.txt
Note that if you include VocabularyFileUri
in your request, you cannot use the
Phrases
flag; you must choose one or the other.
public List<Tag> getTags()
Adds one or more tags, each in the form of a key:value pair, to a new custom vocabulary at the time you create this new vocabulary.
public void setTags(Collection<Tag> tags)
Adds one or more tags, each in the form of a key:value pair, to a new custom vocabulary at the time you create this new vocabulary.
tags
- Adds one or more tags, each in the form of a key:value pair, to a new custom vocabulary at the time you
create this new vocabulary.public CreateVocabularyRequest withTags(Tag... tags)
Adds one or more tags, each in the form of a key:value pair, to a new custom vocabulary at the time you create this new vocabulary.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- Adds one or more tags, each in the form of a key:value pair, to a new custom vocabulary at the time you
create this new vocabulary.public CreateVocabularyRequest withTags(Collection<Tag> tags)
Adds one or more tags, each in the form of a key:value pair, to a new custom vocabulary at the time you create this new vocabulary.
tags
- Adds one or more tags, each in the form of a key:value pair, to a new custom vocabulary at the time you
create this new vocabulary.public String toString()
toString
in class Object
Object.toString()
public CreateVocabularyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()