#[non_exhaustive]pub struct ProjectVersionDescriptionBuilder { /* private fields */ }
Expand description
A builder for ProjectVersionDescription
.
Implementations§
Source§impl ProjectVersionDescriptionBuilder
impl ProjectVersionDescriptionBuilder
Sourcepub fn project_version_arn(self, input: impl Into<String>) -> Self
pub fn project_version_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the project version.
Sourcepub fn set_project_version_arn(self, input: Option<String>) -> Self
pub fn set_project_version_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the project version.
Sourcepub fn get_project_version_arn(&self) -> &Option<String>
pub fn get_project_version_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the project version.
Sourcepub fn creation_timestamp(self, input: DateTime) -> Self
pub fn creation_timestamp(self, input: DateTime) -> Self
The Unix datetime for the date and time that training started.
Sourcepub fn set_creation_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_creation_timestamp(self, input: Option<DateTime>) -> Self
The Unix datetime for the date and time that training started.
Sourcepub fn get_creation_timestamp(&self) -> &Option<DateTime>
pub fn get_creation_timestamp(&self) -> &Option<DateTime>
The Unix datetime for the date and time that training started.
Sourcepub fn min_inference_units(self, input: i32) -> Self
pub fn min_inference_units(self, input: i32) -> Self
The minimum number of inference units used by the model. Applies only to Custom Labels projects. For more information, see StartProjectVersion
.
Sourcepub fn set_min_inference_units(self, input: Option<i32>) -> Self
pub fn set_min_inference_units(self, input: Option<i32>) -> Self
The minimum number of inference units used by the model. Applies only to Custom Labels projects. For more information, see StartProjectVersion
.
Sourcepub fn get_min_inference_units(&self) -> &Option<i32>
pub fn get_min_inference_units(&self) -> &Option<i32>
The minimum number of inference units used by the model. Applies only to Custom Labels projects. For more information, see StartProjectVersion
.
Sourcepub fn status(self, input: ProjectVersionStatus) -> Self
pub fn status(self, input: ProjectVersionStatus) -> Self
The current status of the model version.
Sourcepub fn set_status(self, input: Option<ProjectVersionStatus>) -> Self
pub fn set_status(self, input: Option<ProjectVersionStatus>) -> Self
The current status of the model version.
Sourcepub fn get_status(&self) -> &Option<ProjectVersionStatus>
pub fn get_status(&self) -> &Option<ProjectVersionStatus>
The current status of the model version.
Sourcepub fn status_message(self, input: impl Into<String>) -> Self
pub fn status_message(self, input: impl Into<String>) -> Self
A descriptive message for an error or warning that occurred.
Sourcepub fn set_status_message(self, input: Option<String>) -> Self
pub fn set_status_message(self, input: Option<String>) -> Self
A descriptive message for an error or warning that occurred.
Sourcepub fn get_status_message(&self) -> &Option<String>
pub fn get_status_message(&self) -> &Option<String>
A descriptive message for an error or warning that occurred.
Sourcepub fn billable_training_time_in_seconds(self, input: i64) -> Self
pub fn billable_training_time_in_seconds(self, input: i64) -> Self
The duration, in seconds, that you were billed for a successful training of the model version. This value is only returned if the model version has been successfully trained.
Sourcepub fn set_billable_training_time_in_seconds(self, input: Option<i64>) -> Self
pub fn set_billable_training_time_in_seconds(self, input: Option<i64>) -> Self
The duration, in seconds, that you were billed for a successful training of the model version. This value is only returned if the model version has been successfully trained.
Sourcepub fn get_billable_training_time_in_seconds(&self) -> &Option<i64>
pub fn get_billable_training_time_in_seconds(&self) -> &Option<i64>
The duration, in seconds, that you were billed for a successful training of the model version. This value is only returned if the model version has been successfully trained.
Sourcepub fn training_end_timestamp(self, input: DateTime) -> Self
pub fn training_end_timestamp(self, input: DateTime) -> Self
The Unix date and time that training of the model ended.
Sourcepub fn set_training_end_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_training_end_timestamp(self, input: Option<DateTime>) -> Self
The Unix date and time that training of the model ended.
Sourcepub fn get_training_end_timestamp(&self) -> &Option<DateTime>
pub fn get_training_end_timestamp(&self) -> &Option<DateTime>
The Unix date and time that training of the model ended.
Sourcepub fn output_config(self, input: OutputConfig) -> Self
pub fn output_config(self, input: OutputConfig) -> Self
The location where training results are saved.
Sourcepub fn set_output_config(self, input: Option<OutputConfig>) -> Self
pub fn set_output_config(self, input: Option<OutputConfig>) -> Self
The location where training results are saved.
Sourcepub fn get_output_config(&self) -> &Option<OutputConfig>
pub fn get_output_config(&self) -> &Option<OutputConfig>
The location where training results are saved.
Sourcepub fn training_data_result(self, input: TrainingDataResult) -> Self
pub fn training_data_result(self, input: TrainingDataResult) -> Self
Contains information about the training results.
Sourcepub fn set_training_data_result(self, input: Option<TrainingDataResult>) -> Self
pub fn set_training_data_result(self, input: Option<TrainingDataResult>) -> Self
Contains information about the training results.
Sourcepub fn get_training_data_result(&self) -> &Option<TrainingDataResult>
pub fn get_training_data_result(&self) -> &Option<TrainingDataResult>
Contains information about the training results.
Sourcepub fn testing_data_result(self, input: TestingDataResult) -> Self
pub fn testing_data_result(self, input: TestingDataResult) -> Self
Contains information about the testing results.
Sourcepub fn set_testing_data_result(self, input: Option<TestingDataResult>) -> Self
pub fn set_testing_data_result(self, input: Option<TestingDataResult>) -> Self
Contains information about the testing results.
Sourcepub fn get_testing_data_result(&self) -> &Option<TestingDataResult>
pub fn get_testing_data_result(&self) -> &Option<TestingDataResult>
Contains information about the testing results.
Sourcepub fn evaluation_result(self, input: EvaluationResult) -> Self
pub fn evaluation_result(self, input: EvaluationResult) -> Self
The training results. EvaluationResult
is only returned if training is successful.
Sourcepub fn set_evaluation_result(self, input: Option<EvaluationResult>) -> Self
pub fn set_evaluation_result(self, input: Option<EvaluationResult>) -> Self
The training results. EvaluationResult
is only returned if training is successful.
Sourcepub fn get_evaluation_result(&self) -> &Option<EvaluationResult>
pub fn get_evaluation_result(&self) -> &Option<EvaluationResult>
The training results. EvaluationResult
is only returned if training is successful.
Sourcepub fn manifest_summary(self, input: GroundTruthManifest) -> Self
pub fn manifest_summary(self, input: GroundTruthManifest) -> Self
The location of the summary manifest. The summary manifest provides aggregate data validation results for the training and test datasets.
Sourcepub fn set_manifest_summary(self, input: Option<GroundTruthManifest>) -> Self
pub fn set_manifest_summary(self, input: Option<GroundTruthManifest>) -> Self
The location of the summary manifest. The summary manifest provides aggregate data validation results for the training and test datasets.
Sourcepub fn get_manifest_summary(&self) -> &Option<GroundTruthManifest>
pub fn get_manifest_summary(&self) -> &Option<GroundTruthManifest>
The location of the summary manifest. The summary manifest provides aggregate data validation results for the training and test datasets.
Sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
The identifer for the AWS Key Management Service key (AWS KMS key) that was used to encrypt the model during training.
Sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
The identifer for the AWS Key Management Service key (AWS KMS key) that was used to encrypt the model during training.
Sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
The identifer for the AWS Key Management Service key (AWS KMS key) that was used to encrypt the model during training.
Sourcepub fn max_inference_units(self, input: i32) -> Self
pub fn max_inference_units(self, input: i32) -> Self
The maximum number of inference units Amazon Rekognition uses to auto-scale the model. Applies only to Custom Labels projects. For more information, see StartProjectVersion
.
Sourcepub fn set_max_inference_units(self, input: Option<i32>) -> Self
pub fn set_max_inference_units(self, input: Option<i32>) -> Self
The maximum number of inference units Amazon Rekognition uses to auto-scale the model. Applies only to Custom Labels projects. For more information, see StartProjectVersion
.
Sourcepub fn get_max_inference_units(&self) -> &Option<i32>
pub fn get_max_inference_units(&self) -> &Option<i32>
The maximum number of inference units Amazon Rekognition uses to auto-scale the model. Applies only to Custom Labels projects. For more information, see StartProjectVersion
.
Sourcepub fn source_project_version_arn(self, input: impl Into<String>) -> Self
pub fn source_project_version_arn(self, input: impl Into<String>) -> Self
If the model version was copied from a different project, SourceProjectVersionArn
contains the ARN of the source model version.
Sourcepub fn set_source_project_version_arn(self, input: Option<String>) -> Self
pub fn set_source_project_version_arn(self, input: Option<String>) -> Self
If the model version was copied from a different project, SourceProjectVersionArn
contains the ARN of the source model version.
Sourcepub fn get_source_project_version_arn(&self) -> &Option<String>
pub fn get_source_project_version_arn(&self) -> &Option<String>
If the model version was copied from a different project, SourceProjectVersionArn
contains the ARN of the source model version.
Sourcepub fn version_description(self, input: impl Into<String>) -> Self
pub fn version_description(self, input: impl Into<String>) -> Self
A user-provided description of the project version.
Sourcepub fn set_version_description(self, input: Option<String>) -> Self
pub fn set_version_description(self, input: Option<String>) -> Self
A user-provided description of the project version.
Sourcepub fn get_version_description(&self) -> &Option<String>
pub fn get_version_description(&self) -> &Option<String>
A user-provided description of the project version.
Sourcepub fn feature(self, input: CustomizationFeature) -> Self
pub fn feature(self, input: CustomizationFeature) -> Self
The feature that was customized.
Sourcepub fn set_feature(self, input: Option<CustomizationFeature>) -> Self
pub fn set_feature(self, input: Option<CustomizationFeature>) -> Self
The feature that was customized.
Sourcepub fn get_feature(&self) -> &Option<CustomizationFeature>
pub fn get_feature(&self) -> &Option<CustomizationFeature>
The feature that was customized.
Sourcepub fn base_model_version(self, input: impl Into<String>) -> Self
pub fn base_model_version(self, input: impl Into<String>) -> Self
The base detection model version used to create the project version.
Sourcepub fn set_base_model_version(self, input: Option<String>) -> Self
pub fn set_base_model_version(self, input: Option<String>) -> Self
The base detection model version used to create the project version.
Sourcepub fn get_base_model_version(&self) -> &Option<String>
pub fn get_base_model_version(&self) -> &Option<String>
The base detection model version used to create the project version.
Sourcepub fn feature_config(self, input: CustomizationFeatureConfig) -> Self
pub fn feature_config(self, input: CustomizationFeatureConfig) -> Self
Feature specific configuration that was applied during training.
Sourcepub fn set_feature_config(
self,
input: Option<CustomizationFeatureConfig>,
) -> Self
pub fn set_feature_config( self, input: Option<CustomizationFeatureConfig>, ) -> Self
Feature specific configuration that was applied during training.
Sourcepub fn get_feature_config(&self) -> &Option<CustomizationFeatureConfig>
pub fn get_feature_config(&self) -> &Option<CustomizationFeatureConfig>
Feature specific configuration that was applied during training.
Sourcepub fn build(self) -> ProjectVersionDescription
pub fn build(self) -> ProjectVersionDescription
Consumes the builder and constructs a ProjectVersionDescription
.
Trait Implementations§
Source§impl Clone for ProjectVersionDescriptionBuilder
impl Clone for ProjectVersionDescriptionBuilder
Source§fn clone(&self) -> ProjectVersionDescriptionBuilder
fn clone(&self) -> ProjectVersionDescriptionBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for ProjectVersionDescriptionBuilder
impl Default for ProjectVersionDescriptionBuilder
Source§fn default() -> ProjectVersionDescriptionBuilder
fn default() -> ProjectVersionDescriptionBuilder
Source§impl PartialEq for ProjectVersionDescriptionBuilder
impl PartialEq for ProjectVersionDescriptionBuilder
Source§fn eq(&self, other: &ProjectVersionDescriptionBuilder) -> bool
fn eq(&self, other: &ProjectVersionDescriptionBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ProjectVersionDescriptionBuilder
Auto Trait Implementations§
impl Freeze for ProjectVersionDescriptionBuilder
impl RefUnwindSafe for ProjectVersionDescriptionBuilder
impl Send for ProjectVersionDescriptionBuilder
impl Sync for ProjectVersionDescriptionBuilder
impl Unpin for ProjectVersionDescriptionBuilder
impl UnwindSafe for ProjectVersionDescriptionBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);