Struct aws_sdk_comprehend::model::endpoint_properties::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }Expand description
A builder for EndpointProperties
Implementations
sourceimpl Builder
impl Builder
sourcepub fn endpoint_arn(self, input: impl Into<String>) -> Self
pub fn endpoint_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Number (ARN) of the endpoint.
sourcepub fn set_endpoint_arn(self, input: Option<String>) -> Self
pub fn set_endpoint_arn(self, input: Option<String>) -> Self
The Amazon Resource Number (ARN) of the endpoint.
sourcepub fn status(self, input: EndpointStatus) -> Self
pub fn status(self, input: EndpointStatus) -> Self
Specifies the status of the endpoint. Because the endpoint updates and creation are asynchronous, so customers will need to wait for the endpoint to be Ready status before making inference requests.
sourcepub fn set_status(self, input: Option<EndpointStatus>) -> Self
pub fn set_status(self, input: Option<EndpointStatus>) -> Self
Specifies the status of the endpoint. Because the endpoint updates and creation are asynchronous, so customers will need to wait for the endpoint to be Ready status before making inference requests.
sourcepub fn message(self, input: impl Into<String>) -> Self
pub fn message(self, input: impl Into<String>) -> Self
Specifies a reason for failure in cases of Failed status.
sourcepub fn set_message(self, input: Option<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
Specifies a reason for failure in cases of Failed status.
sourcepub fn model_arn(self, input: impl Into<String>) -> Self
pub fn model_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Number (ARN) of the model to which the endpoint is attached.
sourcepub fn set_model_arn(self, input: Option<String>) -> Self
pub fn set_model_arn(self, input: Option<String>) -> Self
The Amazon Resource Number (ARN) of the model to which the endpoint is attached.
sourcepub fn desired_model_arn(self, input: impl Into<String>) -> Self
pub fn desired_model_arn(self, input: impl Into<String>) -> Self
ARN of the new model to use for updating an existing endpoint. This ARN is going to be different from the model ARN when the update is in progress
sourcepub fn set_desired_model_arn(self, input: Option<String>) -> Self
pub fn set_desired_model_arn(self, input: Option<String>) -> Self
ARN of the new model to use for updating an existing endpoint. This ARN is going to be different from the model ARN when the update is in progress
sourcepub fn desired_inference_units(self, input: i32) -> Self
pub fn desired_inference_units(self, input: i32) -> Self
The desired number of inference units to be used by the model using this endpoint. Each inference unit represents of a throughput of 100 characters per second.
sourcepub fn set_desired_inference_units(self, input: Option<i32>) -> Self
pub fn set_desired_inference_units(self, input: Option<i32>) -> Self
The desired number of inference units to be used by the model using this endpoint. Each inference unit represents of a throughput of 100 characters per second.
sourcepub fn current_inference_units(self, input: i32) -> Self
pub fn current_inference_units(self, input: i32) -> Self
The number of inference units currently used by the model using this endpoint.
sourcepub fn set_current_inference_units(self, input: Option<i32>) -> Self
pub fn set_current_inference_units(self, input: Option<i32>) -> Self
The number of inference units currently used by the model using this endpoint.
sourcepub fn creation_time(self, input: DateTime) -> Self
pub fn creation_time(self, input: DateTime) -> Self
The creation date and time of the endpoint.
sourcepub fn set_creation_time(self, input: Option<DateTime>) -> Self
pub fn set_creation_time(self, input: Option<DateTime>) -> Self
The creation date and time of the endpoint.
sourcepub fn last_modified_time(self, input: DateTime) -> Self
pub fn last_modified_time(self, input: DateTime) -> Self
The date and time that the endpoint was last modified.
sourcepub fn set_last_modified_time(self, input: Option<DateTime>) -> Self
pub fn set_last_modified_time(self, input: Option<DateTime>) -> Self
The date and time that the endpoint was last modified.
sourcepub fn data_access_role_arn(self, input: impl Into<String>) -> Self
pub fn data_access_role_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the AWS identity and Access Management (IAM) role that grants Amazon Comprehend read access to trained custom models encrypted with a customer managed key (ModelKmsKeyId).
sourcepub fn set_data_access_role_arn(self, input: Option<String>) -> Self
pub fn set_data_access_role_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the AWS identity and Access Management (IAM) role that grants Amazon Comprehend read access to trained custom models encrypted with a customer managed key (ModelKmsKeyId).
sourcepub fn desired_data_access_role_arn(self, input: impl Into<String>) -> Self
pub fn desired_data_access_role_arn(self, input: impl Into<String>) -> Self
Data access role ARN to use in case the new model is encrypted with a customer KMS key.
sourcepub fn set_desired_data_access_role_arn(self, input: Option<String>) -> Self
pub fn set_desired_data_access_role_arn(self, input: Option<String>) -> Self
Data access role ARN to use in case the new model is encrypted with a customer KMS key.
sourcepub fn build(self) -> EndpointProperties
pub fn build(self) -> EndpointProperties
Consumes the builder and constructs a EndpointProperties
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more