Struct aws_sdk_lookoutvision::operation::detect_anomalies::builders::DetectAnomaliesInputBuilder
source · #[non_exhaustive]pub struct DetectAnomaliesInputBuilder { /* private fields */ }Expand description
A builder for DetectAnomaliesInput.
Implementations§
source§impl DetectAnomaliesInputBuilder
impl DetectAnomaliesInputBuilder
sourcepub fn project_name(self, input: impl Into<String>) -> Self
pub fn project_name(self, input: impl Into<String>) -> Self
The name of the project that contains the model version that you want to use.
This field is required.sourcepub fn set_project_name(self, input: Option<String>) -> Self
pub fn set_project_name(self, input: Option<String>) -> Self
The name of the project that contains the model version that you want to use.
sourcepub fn get_project_name(&self) -> &Option<String>
pub fn get_project_name(&self) -> &Option<String>
The name of the project that contains the model version that you want to use.
sourcepub fn model_version(self, input: impl Into<String>) -> Self
pub fn model_version(self, input: impl Into<String>) -> Self
The version of the model that you want to use.
This field is required.sourcepub fn set_model_version(self, input: Option<String>) -> Self
pub fn set_model_version(self, input: Option<String>) -> Self
The version of the model that you want to use.
sourcepub fn get_model_version(&self) -> &Option<String>
pub fn get_model_version(&self) -> &Option<String>
The version of the model that you want to use.
sourcepub fn body(self, input: ByteStream) -> Self
pub fn body(self, input: ByteStream) -> Self
The unencrypted image bytes that you want to analyze.
This field is required.sourcepub fn set_body(self, input: Option<ByteStream>) -> Self
pub fn set_body(self, input: Option<ByteStream>) -> Self
The unencrypted image bytes that you want to analyze.
sourcepub fn get_body(&self) -> &Option<ByteStream>
pub fn get_body(&self) -> &Option<ByteStream>
The unencrypted image bytes that you want to analyze.
sourcepub fn content_type(self, input: impl Into<String>) -> Self
pub fn content_type(self, input: impl Into<String>) -> Self
The type of the image passed in Body. Valid values are image/png (PNG format images) and image/jpeg (JPG format images).
sourcepub fn set_content_type(self, input: Option<String>) -> Self
pub fn set_content_type(self, input: Option<String>) -> Self
The type of the image passed in Body. Valid values are image/png (PNG format images) and image/jpeg (JPG format images).
sourcepub fn get_content_type(&self) -> &Option<String>
pub fn get_content_type(&self) -> &Option<String>
The type of the image passed in Body. Valid values are image/png (PNG format images) and image/jpeg (JPG format images).
sourcepub fn build(self) -> Result<DetectAnomaliesInput, BuildError>
pub fn build(self) -> Result<DetectAnomaliesInput, BuildError>
Consumes the builder and constructs a DetectAnomaliesInput.
source§impl DetectAnomaliesInputBuilder
impl DetectAnomaliesInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<DetectAnomaliesOutput, SdkError<DetectAnomaliesError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<DetectAnomaliesOutput, SdkError<DetectAnomaliesError, HttpResponse>>
Sends a request with this input using the given client.