Class GetTrainingExampleOptions.Builder
java.lang.Object
com.ibm.watson.discovery.v1.model.GetTrainingExampleOptions.Builder
- Enclosing class:
- GetTrainingExampleOptions
public static class GetTrainingExampleOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description GetTrainingExampleOptions
build()
Builds a GetTrainingExampleOptions.GetTrainingExampleOptions.Builder
collectionId(String collectionId)
Set the collectionId.GetTrainingExampleOptions.Builder
environmentId(String environmentId)
Set the environmentId.GetTrainingExampleOptions.Builder
exampleId(String exampleId)
Set the exampleId.GetTrainingExampleOptions.Builder
queryId(String queryId)
Set the queryId.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
environmentId
- the environmentIdcollectionId
- the collectionIdqueryId
- the queryIdexampleId
- the exampleId
-
-
Method Details
-
build
Builds a GetTrainingExampleOptions.- Returns:
- the new GetTrainingExampleOptions instance
-
environmentId
Set the environmentId.- Parameters:
environmentId
- the environmentId- Returns:
- the GetTrainingExampleOptions builder
-
collectionId
Set the collectionId.- Parameters:
collectionId
- the collectionId- Returns:
- the GetTrainingExampleOptions builder
-
queryId
Set the queryId.- Parameters:
queryId
- the queryId- Returns:
- the GetTrainingExampleOptions builder
-
exampleId
Set the exampleId.- Parameters:
exampleId
- the exampleId- Returns:
- the GetTrainingExampleOptions builder
-