Interface PredictResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<PredictResponse.Builder,
,PredictResponse> MachineLearningResponse.Builder
,SdkBuilder<PredictResponse.Builder,
,PredictResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
PredictResponse
public static interface PredictResponse.Builder
extends MachineLearningResponse.Builder, SdkPojo, CopyableBuilder<PredictResponse.Builder,PredictResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault PredictResponse.Builder
prediction
(Consumer<Prediction.Builder> prediction) Sets the value of the Prediction property for this object.prediction
(Prediction prediction) Sets the value of the Prediction property for this object.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.machinelearning.model.MachineLearningResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
prediction
Sets the value of the Prediction property for this object.- Parameters:
prediction
- The new value for the Prediction property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
prediction
Sets the value of the Prediction property for this object. This is a convenience method that creates an instance of thePrediction.Builder
avoiding the need to create one manually viaPrediction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprediction(Prediction)
.- Parameters:
prediction
- a consumer that will call methods onPrediction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-