com.ibm.watson.assistant.v1.model.WorkspaceSystemSettings Maven / Gradle / Ivy
/*
* (C) Copyright IBM Corp. 2018, 2020.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.watson.assistant.v1.model;
import java.util.Map;
import com.google.gson.annotations.SerializedName;
import com.ibm.cloud.sdk.core.service.model.GenericModel;
/**
* Global settings for the workspace.
*/
public class WorkspaceSystemSettings extends GenericModel {
protected WorkspaceSystemSettingsTooling tooling;
protected WorkspaceSystemSettingsDisambiguation disambiguation;
@SerializedName("human_agent_assist")
protected Map humanAgentAssist;
@SerializedName("off_topic")
protected WorkspaceSystemSettingsOffTopic offTopic;
/**
* Builder.
*/
public static class Builder {
private WorkspaceSystemSettingsTooling tooling;
private WorkspaceSystemSettingsDisambiguation disambiguation;
private Map humanAgentAssist;
private WorkspaceSystemSettingsOffTopic offTopic;
private Builder(WorkspaceSystemSettings workspaceSystemSettings) {
this.tooling = workspaceSystemSettings.tooling;
this.disambiguation = workspaceSystemSettings.disambiguation;
this.humanAgentAssist = workspaceSystemSettings.humanAgentAssist;
this.offTopic = workspaceSystemSettings.offTopic;
}
/**
* Instantiates a new builder.
*/
public Builder() {
}
/**
* Builds a WorkspaceSystemSettings.
*
* @return the workspaceSystemSettings
*/
public WorkspaceSystemSettings build() {
return new WorkspaceSystemSettings(this);
}
/**
* Set the tooling.
*
* @param tooling the tooling
* @return the WorkspaceSystemSettings builder
*/
public Builder tooling(WorkspaceSystemSettingsTooling tooling) {
this.tooling = tooling;
return this;
}
/**
* Set the disambiguation.
*
* @param disambiguation the disambiguation
* @return the WorkspaceSystemSettings builder
*/
public Builder disambiguation(WorkspaceSystemSettingsDisambiguation disambiguation) {
this.disambiguation = disambiguation;
return this;
}
/**
* Set the humanAgentAssist.
*
* @param humanAgentAssist the humanAgentAssist
* @return the WorkspaceSystemSettings builder
*/
public Builder humanAgentAssist(Map humanAgentAssist) {
this.humanAgentAssist = humanAgentAssist;
return this;
}
/**
* Set the offTopic.
*
* @param offTopic the offTopic
* @return the WorkspaceSystemSettings builder
*/
public Builder offTopic(WorkspaceSystemSettingsOffTopic offTopic) {
this.offTopic = offTopic;
return this;
}
}
protected WorkspaceSystemSettings(Builder builder) {
tooling = builder.tooling;
disambiguation = builder.disambiguation;
humanAgentAssist = builder.humanAgentAssist;
offTopic = builder.offTopic;
}
/**
* New builder.
*
* @return a WorkspaceSystemSettings builder
*/
public Builder newBuilder() {
return new Builder(this);
}
/**
* Gets the tooling.
*
* Workspace settings related to the Watson Assistant user interface.
*
* @return the tooling
*/
public WorkspaceSystemSettingsTooling tooling() {
return tooling;
}
/**
* Gets the disambiguation.
*
* Workspace settings related to the disambiguation feature.
*
* **Note:** This feature is available only to Plus and Premium users.
*
* @return the disambiguation
*/
public WorkspaceSystemSettingsDisambiguation disambiguation() {
return disambiguation;
}
/**
* Gets the humanAgentAssist.
*
* For internal use only.
*
* @return the humanAgentAssist
*/
public Map humanAgentAssist() {
return humanAgentAssist;
}
/**
* Gets the offTopic.
*
* Workspace settings related to detection of irrelevant input.
*
* @return the offTopic
*/
public WorkspaceSystemSettingsOffTopic offTopic() {
return offTopic;
}
}