Struct aws_sdk_bedrockruntime::operation::invoke_model_with_response_stream::builders::InvokeModelWithResponseStreamInputBuilder
source · #[non_exhaustive]pub struct InvokeModelWithResponseStreamInputBuilder { /* private fields */ }
Expand description
A builder for InvokeModelWithResponseStreamInput
.
Implementations§
source§impl InvokeModelWithResponseStreamInputBuilder
impl InvokeModelWithResponseStreamInputBuilder
sourcepub fn body(self, input: Blob) -> Self
pub fn body(self, input: Blob) -> Self
Inference input in the format specified by the 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<Blob>) -> Self
pub fn set_body(self, input: Option<Blob>) -> Self
Inference input in the format specified by the content-type. To see the format and content of this field for different models, refer to Inference parameters.
sourcepub fn get_body(&self) -> &Option<Blob>
pub fn get_body(&self) -> &Option<Blob>
Inference input in the format specified by the 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 input data in the request. The default value is application/json
.
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 input data in the request. The default value is application/json
.
sourcepub fn get_content_type(&self) -> &Option<String>
pub fn get_content_type(&self) -> &Option<String>
The MIME type of the input data in the request. The default value is application/json
.
sourcepub fn accept(self, input: impl Into<String>) -> Self
pub fn accept(self, input: impl Into<String>) -> Self
The desired MIME type of the inference body in the response. The default value is application/json
.
sourcepub fn set_accept(self, input: Option<String>) -> Self
pub fn set_accept(self, input: Option<String>) -> Self
The desired MIME type of the inference body in the response. The default value is application/json
.
sourcepub fn get_accept(&self) -> &Option<String>
pub fn get_accept(&self) -> &Option<String>
The desired MIME type of the inference body in the response. The default value is application/json
.
sourcepub fn model_id(self, input: impl Into<String>) -> Self
pub fn model_id(self, input: impl Into<String>) -> Self
Id of the model to invoke using the streaming request.
This field is required.sourcepub fn set_model_id(self, input: Option<String>) -> Self
pub fn set_model_id(self, input: Option<String>) -> Self
Id of the model to invoke using the streaming request.
sourcepub fn get_model_id(&self) -> &Option<String>
pub fn get_model_id(&self) -> &Option<String>
Id of the model to invoke using the streaming request.
sourcepub fn build(self) -> Result<InvokeModelWithResponseStreamInput, BuildError>
pub fn build(self) -> Result<InvokeModelWithResponseStreamInput, BuildError>
Consumes the builder and constructs a InvokeModelWithResponseStreamInput
.
source§impl InvokeModelWithResponseStreamInputBuilder
impl InvokeModelWithResponseStreamInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<InvokeModelWithResponseStreamOutput, SdkError<InvokeModelWithResponseStreamError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<InvokeModelWithResponseStreamOutput, SdkError<InvokeModelWithResponseStreamError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for InvokeModelWithResponseStreamInputBuilder
impl Clone for InvokeModelWithResponseStreamInputBuilder
source§fn clone(&self) -> InvokeModelWithResponseStreamInputBuilder
fn clone(&self) -> InvokeModelWithResponseStreamInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for InvokeModelWithResponseStreamInputBuilder
impl Default for InvokeModelWithResponseStreamInputBuilder
source§fn default() -> InvokeModelWithResponseStreamInputBuilder
fn default() -> InvokeModelWithResponseStreamInputBuilder
source§impl PartialEq for InvokeModelWithResponseStreamInputBuilder
impl PartialEq for InvokeModelWithResponseStreamInputBuilder
source§fn eq(&self, other: &InvokeModelWithResponseStreamInputBuilder) -> bool
fn eq(&self, other: &InvokeModelWithResponseStreamInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.