public static interface PredictResponse.Builder extends MachineLearningResponse.Builder, CopyableBuilder<PredictResponse.Builder,PredictResponse>
Modifier and Type | Method and Description |
---|---|
default PredictResponse.Builder |
prediction(Consumer<Prediction.Builder> prediction)
Sets the value of the Prediction property for this object.
|
PredictResponse.Builder |
prediction(Prediction prediction)
Sets the value of the Prediction property for this object.
|
build
sdkHttpResponse, sdkHttpResponse
copy
applyMutation, build
PredictResponse.Builder prediction(Prediction prediction)
prediction
- The new value for the Prediction property for this object.default PredictResponse.Builder prediction(Consumer<Prediction.Builder> prediction)
Prediction.Builder
avoiding the need to create
one manually via Prediction.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to prediction(Prediction)
.prediction
- a consumer that will call methods on Prediction.Builder
prediction(Prediction)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.