@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 of the vocabulary entries.
|
List<String> |
getPhrases()
An array of strings that contains the vocabulary entries.
|
String |
getVocabularyName()
The name of the vocabulary.
|
int |
hashCode() |
void |
setLanguageCode(String languageCode)
The language code of the vocabulary entries.
|
void |
setPhrases(Collection<String> phrases)
An array of strings that contains the vocabulary entries.
|
void |
setVocabularyName(String vocabularyName)
The name of the vocabulary.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
CreateVocabularyRequest |
withLanguageCode(LanguageCode languageCode)
The language code of the vocabulary entries.
|
CreateVocabularyRequest |
withLanguageCode(String languageCode)
The language code of the vocabulary entries.
|
CreateVocabularyRequest |
withPhrases(Collection<String> phrases)
An array of strings that contains the vocabulary entries.
|
CreateVocabularyRequest |
withPhrases(String... phrases)
An array of strings that contains the vocabulary entries.
|
CreateVocabularyRequest |
withVocabularyName(String vocabularyName)
The name of the 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 the vocabulary. The name must be unique within an AWS account. The name is case-sensitive.
vocabularyName
- The name of the vocabulary. The name must be unique within an AWS account. The name is case-sensitive.public String getVocabularyName()
The name of the vocabulary. The name must be unique within an AWS account. The name is case-sensitive.
public CreateVocabularyRequest withVocabularyName(String vocabularyName)
The name of the vocabulary. The name must be unique within an AWS account. The name is case-sensitive.
vocabularyName
- The name of the vocabulary. The name must be unique within an AWS account. The name is case-sensitive.public void setLanguageCode(String languageCode)
The language code of the vocabulary entries.
languageCode
- The language code of the vocabulary entries.LanguageCode
public String getLanguageCode()
The language code of the vocabulary entries.
LanguageCode
public CreateVocabularyRequest withLanguageCode(String languageCode)
The language code of the vocabulary entries.
languageCode
- The language code of the vocabulary entries.LanguageCode
public CreateVocabularyRequest withLanguageCode(LanguageCode languageCode)
The language code of the vocabulary entries.
languageCode
- The language code of the vocabulary entries.LanguageCode
public List<String> getPhrases()
An array of strings that contains the vocabulary entries.
public void setPhrases(Collection<String> phrases)
An array of strings that contains the vocabulary entries.
phrases
- An array of strings that contains the vocabulary entries.public CreateVocabularyRequest withPhrases(String... phrases)
An array of strings that contains the vocabulary entries.
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
- An array of strings that contains the vocabulary entries.public CreateVocabularyRequest withPhrases(Collection<String> phrases)
An array of strings that contains the vocabulary entries.
phrases
- An array of strings that contains the vocabulary entries.public String toString()
toString
in class Object
Object.toString()
public CreateVocabularyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.