All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.connect.outputs.GetVocabularyResult Maven / Gradle / Ivy

// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.connect.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;

@CustomType
public final class GetVocabularyResult {
    /**
     * @return The Amazon Resource Name (ARN) of the Vocabulary.
     * 
     */
    private String arn;
    /**
     * @return The content of the custom vocabulary in plain-text format with a table of values. Each row in the table represents a word or a phrase, described with Phrase, IPA, SoundsLike, and DisplayAs fields. Separate the fields with TAB characters. For more information, see [Create a custom vocabulary using a table](https://docs.aws.amazon.com/transcribe/latest/dg/custom-vocabulary.html#create-vocabulary-table).
     * 
     */
    private String content;
    /**
     * @return The reason why the custom vocabulary was not created.
     * 
     */
    private String failureReason;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    private String instanceId;
    /**
     * @return The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see [What is Amazon Transcribe?](https://docs.aws.amazon.com/transcribe/latest/dg/transcribe-whatis.html). Valid Values are `ar-AE`, `de-CH`, `de-DE`, `en-AB`, `en-AU`, `en-GB`, `en-IE`, `en-IN`, `en-US`, `en-WL`, `es-ES`, `es-US`, `fr-CA`, `fr-FR`, `hi-IN`, `it-IT`, `ja-JP`, `ko-KR`, `pt-BR`, `pt-PT`, `zh-CN`.
     * 
     */
    private String languageCode;
    /**
     * @return The timestamp when the custom vocabulary was last modified.
     * 
     */
    private String lastModifiedTime;
    private String name;
    /**
     * @return The current state of the custom vocabulary. Valid values are `CREATION_IN_PROGRESS`, `ACTIVE`, `CREATION_FAILED`, `DELETE_IN_PROGRESS`.
     * 
     */
    private String state;
    /**
     * @return A map of tags to assign to the Vocabulary.
     * 
     */
    private Map tags;
    /**
     * @return The identifier of the custom vocabulary.
     * 
     */
    private String vocabularyId;

    private GetVocabularyResult() {}
    /**
     * @return The Amazon Resource Name (ARN) of the Vocabulary.
     * 
     */
    public String arn() {
        return this.arn;
    }
    /**
     * @return The content of the custom vocabulary in plain-text format with a table of values. Each row in the table represents a word or a phrase, described with Phrase, IPA, SoundsLike, and DisplayAs fields. Separate the fields with TAB characters. For more information, see [Create a custom vocabulary using a table](https://docs.aws.amazon.com/transcribe/latest/dg/custom-vocabulary.html#create-vocabulary-table).
     * 
     */
    public String content() {
        return this.content;
    }
    /**
     * @return The reason why the custom vocabulary was not created.
     * 
     */
    public String failureReason() {
        return this.failureReason;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    public String instanceId() {
        return this.instanceId;
    }
    /**
     * @return The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see [What is Amazon Transcribe?](https://docs.aws.amazon.com/transcribe/latest/dg/transcribe-whatis.html). Valid Values are `ar-AE`, `de-CH`, `de-DE`, `en-AB`, `en-AU`, `en-GB`, `en-IE`, `en-IN`, `en-US`, `en-WL`, `es-ES`, `es-US`, `fr-CA`, `fr-FR`, `hi-IN`, `it-IT`, `ja-JP`, `ko-KR`, `pt-BR`, `pt-PT`, `zh-CN`.
     * 
     */
    public String languageCode() {
        return this.languageCode;
    }
    /**
     * @return The timestamp when the custom vocabulary was last modified.
     * 
     */
    public String lastModifiedTime() {
        return this.lastModifiedTime;
    }
    public String name() {
        return this.name;
    }
    /**
     * @return The current state of the custom vocabulary. Valid values are `CREATION_IN_PROGRESS`, `ACTIVE`, `CREATION_FAILED`, `DELETE_IN_PROGRESS`.
     * 
     */
    public String state() {
        return this.state;
    }
    /**
     * @return A map of tags to assign to the Vocabulary.
     * 
     */
    public Map tags() {
        return this.tags;
    }
    /**
     * @return The identifier of the custom vocabulary.
     * 
     */
    public String vocabularyId() {
        return this.vocabularyId;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(GetVocabularyResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String arn;
        private String content;
        private String failureReason;
        private String id;
        private String instanceId;
        private String languageCode;
        private String lastModifiedTime;
        private String name;
        private String state;
        private Map tags;
        private String vocabularyId;
        public Builder() {}
        public Builder(GetVocabularyResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.arn = defaults.arn;
    	      this.content = defaults.content;
    	      this.failureReason = defaults.failureReason;
    	      this.id = defaults.id;
    	      this.instanceId = defaults.instanceId;
    	      this.languageCode = defaults.languageCode;
    	      this.lastModifiedTime = defaults.lastModifiedTime;
    	      this.name = defaults.name;
    	      this.state = defaults.state;
    	      this.tags = defaults.tags;
    	      this.vocabularyId = defaults.vocabularyId;
        }

        @CustomType.Setter
        public Builder arn(String arn) {
            if (arn == null) {
              throw new MissingRequiredPropertyException("GetVocabularyResult", "arn");
            }
            this.arn = arn;
            return this;
        }
        @CustomType.Setter
        public Builder content(String content) {
            if (content == null) {
              throw new MissingRequiredPropertyException("GetVocabularyResult", "content");
            }
            this.content = content;
            return this;
        }
        @CustomType.Setter
        public Builder failureReason(String failureReason) {
            if (failureReason == null) {
              throw new MissingRequiredPropertyException("GetVocabularyResult", "failureReason");
            }
            this.failureReason = failureReason;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetVocabularyResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder instanceId(String instanceId) {
            if (instanceId == null) {
              throw new MissingRequiredPropertyException("GetVocabularyResult", "instanceId");
            }
            this.instanceId = instanceId;
            return this;
        }
        @CustomType.Setter
        public Builder languageCode(String languageCode) {
            if (languageCode == null) {
              throw new MissingRequiredPropertyException("GetVocabularyResult", "languageCode");
            }
            this.languageCode = languageCode;
            return this;
        }
        @CustomType.Setter
        public Builder lastModifiedTime(String lastModifiedTime) {
            if (lastModifiedTime == null) {
              throw new MissingRequiredPropertyException("GetVocabularyResult", "lastModifiedTime");
            }
            this.lastModifiedTime = lastModifiedTime;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetVocabularyResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder state(String state) {
            if (state == null) {
              throw new MissingRequiredPropertyException("GetVocabularyResult", "state");
            }
            this.state = state;
            return this;
        }
        @CustomType.Setter
        public Builder tags(Map tags) {
            if (tags == null) {
              throw new MissingRequiredPropertyException("GetVocabularyResult", "tags");
            }
            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder vocabularyId(String vocabularyId) {
            if (vocabularyId == null) {
              throw new MissingRequiredPropertyException("GetVocabularyResult", "vocabularyId");
            }
            this.vocabularyId = vocabularyId;
            return this;
        }
        public GetVocabularyResult build() {
            final var _resultValue = new GetVocabularyResult();
            _resultValue.arn = arn;
            _resultValue.content = content;
            _resultValue.failureReason = failureReason;
            _resultValue.id = id;
            _resultValue.instanceId = instanceId;
            _resultValue.languageCode = languageCode;
            _resultValue.lastModifiedTime = lastModifiedTime;
            _resultValue.name = name;
            _resultValue.state = state;
            _resultValue.tags = tags;
            _resultValue.vocabularyId = vocabularyId;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy