com.pulumi.googlenative.dialogflow.v2beta1.outputs.GetKnowledgeBaseResult 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.googlenative.dialogflow.v2beta1.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetKnowledgeBaseResult {
/**
* @return The display name of the knowledge base. The name must be 1024 bytes or less; otherwise, the creation request fails.
*
*/
private String displayName;
/**
* @return Language which represents the KnowledgeBase. When the KnowledgeBase is created/updated, this is populated for all non en-us languages. If not populated, the default language en-us applies.
*
*/
private String languageCode;
/**
* @return The knowledge base resource name. The name must be empty when creating a knowledge base. Format: `projects//locations//knowledgeBases/`.
*
*/
private String name;
private GetKnowledgeBaseResult() {}
/**
* @return The display name of the knowledge base. The name must be 1024 bytes or less; otherwise, the creation request fails.
*
*/
public String displayName() {
return this.displayName;
}
/**
* @return Language which represents the KnowledgeBase. When the KnowledgeBase is created/updated, this is populated for all non en-us languages. If not populated, the default language en-us applies.
*
*/
public String languageCode() {
return this.languageCode;
}
/**
* @return The knowledge base resource name. The name must be empty when creating a knowledge base. Format: `projects//locations//knowledgeBases/`.
*
*/
public String name() {
return this.name;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetKnowledgeBaseResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String displayName;
private String languageCode;
private String name;
public Builder() {}
public Builder(GetKnowledgeBaseResult defaults) {
Objects.requireNonNull(defaults);
this.displayName = defaults.displayName;
this.languageCode = defaults.languageCode;
this.name = defaults.name;
}
@CustomType.Setter
public Builder displayName(String displayName) {
this.displayName = Objects.requireNonNull(displayName);
return this;
}
@CustomType.Setter
public Builder languageCode(String languageCode) {
this.languageCode = Objects.requireNonNull(languageCode);
return this;
}
@CustomType.Setter
public Builder name(String name) {
this.name = Objects.requireNonNull(name);
return this;
}
public GetKnowledgeBaseResult build() {
final var o = new GetKnowledgeBaseResult();
o.displayName = displayName;
o.languageCode = languageCode;
o.name = name;
return o;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy