Struct aws_sdk_bedrockruntime::operation::invoke_model_with_response_stream::builders::InvokeModelWithResponseStreamOutputBuilder
source · #[non_exhaustive]pub struct InvokeModelWithResponseStreamOutputBuilder { /* private fields */ }
Expand description
A builder for InvokeModelWithResponseStreamOutput
.
Implementations§
source§impl InvokeModelWithResponseStreamOutputBuilder
impl InvokeModelWithResponseStreamOutputBuilder
sourcepub fn body(self, input: Receiver<ResponseStream, ResponseStreamError>) -> Self
pub fn body(self, input: Receiver<ResponseStream, ResponseStreamError>) -> Self
Inference response from the model in the format specified by Content-Type. To see the format and content of this field for different models, refer to Inference parameters.
This field is required.sourcepub fn set_body(
self,
input: Option<Receiver<ResponseStream, ResponseStreamError>>
) -> Self
pub fn set_body( self, input: Option<Receiver<ResponseStream, ResponseStreamError>> ) -> Self
Inference response from the model in the format specified by Content-Type. To see the format and content of this field for different models, refer to Inference parameters.
sourcepub fn get_body(&self) -> &Option<Receiver<ResponseStream, ResponseStreamError>>
pub fn get_body(&self) -> &Option<Receiver<ResponseStream, ResponseStreamError>>
Inference response from the model in the format specified by Content-Type. To see the format and content of this field for different models, refer to Inference parameters.
sourcepub fn content_type(self, input: impl Into<String>) -> Self
pub fn content_type(self, input: impl Into<String>) -> Self
The MIME type of the inference result.
This field is required.sourcepub fn set_content_type(self, input: Option<String>) -> Self
pub fn set_content_type(self, input: Option<String>) -> Self
The MIME type of the inference result.
sourcepub fn get_content_type(&self) -> &Option<String>
pub fn get_content_type(&self) -> &Option<String>
The MIME type of the inference result.
sourcepub fn build(self) -> Result<InvokeModelWithResponseStreamOutput, BuildError>
pub fn build(self) -> Result<InvokeModelWithResponseStreamOutput, BuildError>
Consumes the builder and constructs a InvokeModelWithResponseStreamOutput
.
This method will fail if any of the following fields are not set: