@@ -45,7 +45,7 @@ public class CreateVocabularyRequest extends AmazonWebServiceRequest implements
4545 * <p>
4646 * <b>Constraints:</b><br/>
4747 * <b>Allowed Values: </b>en-US, es-US, en-AU, fr-CA, en-GB, de-DE, pt-BR,
48- * fr-FR, it-IT
48+ * fr-FR, it-IT, ko-KR
4949 */
5050 private String languageCode ;
5151
@@ -56,6 +56,37 @@ public class CreateVocabularyRequest extends AmazonWebServiceRequest implements
5656 */
5757 private java .util .List <String > phrases ;
5858
59+ /**
60+ * <p>
61+ * The S3 location of the text file that contains the definition of the
62+ * custom vocabulary. The URI must be in the same region as the API endpoint
63+ * that you are calling. The general form is
64+ * </p>
65+ * <p>
66+ * <code> https://s3-<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey> </code>
67+ * </p>
68+ * <p>
69+ * For example:
70+ * </p>
71+ * <p>
72+ * <code>https://s3-us-east-1.amazonaws.com/examplebucket/vocab.txt</code>
73+ * </p>
74+ * <p>
75+ * For more information about S3 object names, see <a href=
76+ * "http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#object-keys"
77+ * >Object Keys</a> in the <i>Amazon S3 Developer Guide</i>.
78+ * </p>
79+ * <p>
80+ * For more information about custom vocabularies, see <a href=
81+ * "http://docs.aws.amazon.com/transcribe/latest/dg/how-it-works.html#how-vocabulary"
82+ * >Custom Vocabularies</a>.
83+ * </p>
84+ * <p>
85+ * <b>Constraints:</b><br/>
86+ * <b>Length: </b>1 - 2000<br/>
87+ */
88+ private String vocabularyFileUri ;
89+
5990 /**
6091 * <p>
6192 * The name of the vocabulary. The name must be unique within an AWS
@@ -126,7 +157,7 @@ public CreateVocabularyRequest withVocabularyName(String vocabularyName) {
126157 * <p>
127158 * <b>Constraints:</b><br/>
128159 * <b>Allowed Values: </b>en-US, es-US, en-AU, fr-CA, en-GB, de-DE, pt-BR,
129- * fr-FR, it-IT
160+ * fr-FR, it-IT, ko-KR
130161 *
131162 * @return <p>
132163 * The language code of the vocabulary entries.
@@ -144,7 +175,7 @@ public String getLanguageCode() {
144175 * <p>
145176 * <b>Constraints:</b><br/>
146177 * <b>Allowed Values: </b>en-US, es-US, en-AU, fr-CA, en-GB, de-DE, pt-BR,
147- * fr-FR, it-IT
178+ * fr-FR, it-IT, ko-KR
148179 *
149180 * @param languageCode <p>
150181 * The language code of the vocabulary entries.
@@ -165,7 +196,7 @@ public void setLanguageCode(String languageCode) {
165196 * <p>
166197 * <b>Constraints:</b><br/>
167198 * <b>Allowed Values: </b>en-US, es-US, en-AU, fr-CA, en-GB, de-DE, pt-BR,
168- * fr-FR, it-IT
199+ * fr-FR, it-IT, ko-KR
169200 *
170201 * @param languageCode <p>
171202 * The language code of the vocabulary entries.
@@ -186,7 +217,7 @@ public CreateVocabularyRequest withLanguageCode(String languageCode) {
186217 * <p>
187218 * <b>Constraints:</b><br/>
188219 * <b>Allowed Values: </b>en-US, es-US, en-AU, fr-CA, en-GB, de-DE, pt-BR,
189- * fr-FR, it-IT
220+ * fr-FR, it-IT, ko-KR
190221 *
191222 * @param languageCode <p>
192223 * The language code of the vocabulary entries.
@@ -207,7 +238,7 @@ public void setLanguageCode(LanguageCode languageCode) {
207238 * <p>
208239 * <b>Constraints:</b><br/>
209240 * <b>Allowed Values: </b>en-US, es-US, en-AU, fr-CA, en-GB, de-DE, pt-BR,
210- * fr-FR, it-IT
241+ * fr-FR, it-IT, ko-KR
211242 *
212243 * @param languageCode <p>
213244 * The language code of the vocabulary entries.
@@ -295,6 +326,186 @@ public CreateVocabularyRequest withPhrases(java.util.Collection<String> phrases)
295326 return this ;
296327 }
297328
329+ /**
330+ * <p>
331+ * The S3 location of the text file that contains the definition of the
332+ * custom vocabulary. The URI must be in the same region as the API endpoint
333+ * that you are calling. The general form is
334+ * </p>
335+ * <p>
336+ * <code> https://s3-<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey> </code>
337+ * </p>
338+ * <p>
339+ * For example:
340+ * </p>
341+ * <p>
342+ * <code>https://s3-us-east-1.amazonaws.com/examplebucket/vocab.txt</code>
343+ * </p>
344+ * <p>
345+ * For more information about S3 object names, see <a href=
346+ * "http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#object-keys"
347+ * >Object Keys</a> in the <i>Amazon S3 Developer Guide</i>.
348+ * </p>
349+ * <p>
350+ * For more information about custom vocabularies, see <a href=
351+ * "http://docs.aws.amazon.com/transcribe/latest/dg/how-it-works.html#how-vocabulary"
352+ * >Custom Vocabularies</a>.
353+ * </p>
354+ * <p>
355+ * <b>Constraints:</b><br/>
356+ * <b>Length: </b>1 - 2000<br/>
357+ *
358+ * @return <p>
359+ * The S3 location of the text file that contains the definition of
360+ * the custom vocabulary. The URI must be in the same region as the
361+ * API endpoint that you are calling. The general form is
362+ * </p>
363+ * <p>
364+ * <code> https://s3-<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey> </code>
365+ * </p>
366+ * <p>
367+ * For example:
368+ * </p>
369+ * <p>
370+ * <code>https://s3-us-east-1.amazonaws.com/examplebucket/vocab.txt</code>
371+ * </p>
372+ * <p>
373+ * For more information about S3 object names, see <a href=
374+ * "http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#object-keys"
375+ * >Object Keys</a> in the <i>Amazon S3 Developer Guide</i>.
376+ * </p>
377+ * <p>
378+ * For more information about custom vocabularies, see <a href=
379+ * "http://docs.aws.amazon.com/transcribe/latest/dg/how-it-works.html#how-vocabulary"
380+ * >Custom Vocabularies</a>.
381+ * </p>
382+ */
383+ public String getVocabularyFileUri () {
384+ return vocabularyFileUri ;
385+ }
386+
387+ /**
388+ * <p>
389+ * The S3 location of the text file that contains the definition of the
390+ * custom vocabulary. The URI must be in the same region as the API endpoint
391+ * that you are calling. The general form is
392+ * </p>
393+ * <p>
394+ * <code> https://s3-<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey> </code>
395+ * </p>
396+ * <p>
397+ * For example:
398+ * </p>
399+ * <p>
400+ * <code>https://s3-us-east-1.amazonaws.com/examplebucket/vocab.txt</code>
401+ * </p>
402+ * <p>
403+ * For more information about S3 object names, see <a href=
404+ * "http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#object-keys"
405+ * >Object Keys</a> in the <i>Amazon S3 Developer Guide</i>.
406+ * </p>
407+ * <p>
408+ * For more information about custom vocabularies, see <a href=
409+ * "http://docs.aws.amazon.com/transcribe/latest/dg/how-it-works.html#how-vocabulary"
410+ * >Custom Vocabularies</a>.
411+ * </p>
412+ * <p>
413+ * <b>Constraints:</b><br/>
414+ * <b>Length: </b>1 - 2000<br/>
415+ *
416+ * @param vocabularyFileUri <p>
417+ * The S3 location of the text file that contains the definition
418+ * of the custom vocabulary. The URI must be in the same region
419+ * as the API endpoint that you are calling. The general form is
420+ * </p>
421+ * <p>
422+ * <code> https://s3-<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey> </code>
423+ * </p>
424+ * <p>
425+ * For example:
426+ * </p>
427+ * <p>
428+ * <code>https://s3-us-east-1.amazonaws.com/examplebucket/vocab.txt</code>
429+ * </p>
430+ * <p>
431+ * For more information about S3 object names, see <a href=
432+ * "http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#object-keys"
433+ * >Object Keys</a> in the <i>Amazon S3 Developer Guide</i>.
434+ * </p>
435+ * <p>
436+ * For more information about custom vocabularies, see <a href=
437+ * "http://docs.aws.amazon.com/transcribe/latest/dg/how-it-works.html#how-vocabulary"
438+ * >Custom Vocabularies</a>.
439+ * </p>
440+ */
441+ public void setVocabularyFileUri (String vocabularyFileUri ) {
442+ this .vocabularyFileUri = vocabularyFileUri ;
443+ }
444+
445+ /**
446+ * <p>
447+ * The S3 location of the text file that contains the definition of the
448+ * custom vocabulary. The URI must be in the same region as the API endpoint
449+ * that you are calling. The general form is
450+ * </p>
451+ * <p>
452+ * <code> https://s3-<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey> </code>
453+ * </p>
454+ * <p>
455+ * For example:
456+ * </p>
457+ * <p>
458+ * <code>https://s3-us-east-1.amazonaws.com/examplebucket/vocab.txt</code>
459+ * </p>
460+ * <p>
461+ * For more information about S3 object names, see <a href=
462+ * "http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#object-keys"
463+ * >Object Keys</a> in the <i>Amazon S3 Developer Guide</i>.
464+ * </p>
465+ * <p>
466+ * For more information about custom vocabularies, see <a href=
467+ * "http://docs.aws.amazon.com/transcribe/latest/dg/how-it-works.html#how-vocabulary"
468+ * >Custom Vocabularies</a>.
469+ * </p>
470+ * <p>
471+ * Returns a reference to this object so that method calls can be chained
472+ * together.
473+ * <p>
474+ * <b>Constraints:</b><br/>
475+ * <b>Length: </b>1 - 2000<br/>
476+ *
477+ * @param vocabularyFileUri <p>
478+ * The S3 location of the text file that contains the definition
479+ * of the custom vocabulary. The URI must be in the same region
480+ * as the API endpoint that you are calling. The general form is
481+ * </p>
482+ * <p>
483+ * <code> https://s3-<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey> </code>
484+ * </p>
485+ * <p>
486+ * For example:
487+ * </p>
488+ * <p>
489+ * <code>https://s3-us-east-1.amazonaws.com/examplebucket/vocab.txt</code>
490+ * </p>
491+ * <p>
492+ * For more information about S3 object names, see <a href=
493+ * "http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#object-keys"
494+ * >Object Keys</a> in the <i>Amazon S3 Developer Guide</i>.
495+ * </p>
496+ * <p>
497+ * For more information about custom vocabularies, see <a href=
498+ * "http://docs.aws.amazon.com/transcribe/latest/dg/how-it-works.html#how-vocabulary"
499+ * >Custom Vocabularies</a>.
500+ * </p>
501+ * @return A reference to this updated object so that method calls can be
502+ * chained together.
503+ */
504+ public CreateVocabularyRequest withVocabularyFileUri (String vocabularyFileUri ) {
505+ this .vocabularyFileUri = vocabularyFileUri ;
506+ return this ;
507+ }
508+
298509 /**
299510 * Returns a string representation of this object; useful for testing and
300511 * debugging.
@@ -311,7 +522,9 @@ public String toString() {
311522 if (getLanguageCode () != null )
312523 sb .append ("LanguageCode: " + getLanguageCode () + "," );
313524 if (getPhrases () != null )
314- sb .append ("Phrases: " + getPhrases ());
525+ sb .append ("Phrases: " + getPhrases () + "," );
526+ if (getVocabularyFileUri () != null )
527+ sb .append ("VocabularyFileUri: " + getVocabularyFileUri ());
315528 sb .append ("}" );
316529 return sb .toString ();
317530 }
@@ -326,6 +539,8 @@ public int hashCode() {
326539 hashCode = prime * hashCode
327540 + ((getLanguageCode () == null ) ? 0 : getLanguageCode ().hashCode ());
328541 hashCode = prime * hashCode + ((getPhrases () == null ) ? 0 : getPhrases ().hashCode ());
542+ hashCode = prime * hashCode
543+ + ((getVocabularyFileUri () == null ) ? 0 : getVocabularyFileUri ().hashCode ());
329544 return hashCode ;
330545 }
331546
@@ -354,6 +569,11 @@ public boolean equals(Object obj) {
354569 return false ;
355570 if (other .getPhrases () != null && other .getPhrases ().equals (this .getPhrases ()) == false )
356571 return false ;
572+ if (other .getVocabularyFileUri () == null ^ this .getVocabularyFileUri () == null )
573+ return false ;
574+ if (other .getVocabularyFileUri () != null
575+ && other .getVocabularyFileUri ().equals (this .getVocabularyFileUri ()) == false )
576+ return false ;
357577 return true ;
358578 }
359579}
0 commit comments