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 GetTrainingExampleOptionsbuild()Builds a GetTrainingExampleOptions.GetTrainingExampleOptions.BuildercollectionId(String collectionId)Set the collectionId.GetTrainingExampleOptions.BuilderenvironmentId(String environmentId)Set the environmentId.GetTrainingExampleOptions.BuilderexampleId(String exampleId)Set the exampleId.GetTrainingExampleOptions.BuilderqueryId(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
-