Struct aws_sdk_rekognition::types::builders::ModerationLabelBuilder
source · #[non_exhaustive]pub struct ModerationLabelBuilder { /* private fields */ }Expand description
A builder for ModerationLabel.
Implementations§
source§impl ModerationLabelBuilder
impl ModerationLabelBuilder
sourcepub fn confidence(self, input: f32) -> Self
pub fn confidence(self, input: f32) -> Self
Specifies the confidence that Amazon Rekognition has that the label has been correctly identified.
If you don't specify the MinConfidence parameter in the call to DetectModerationLabels, the operation returns labels with a confidence value greater than or equal to 50 percent.
sourcepub fn set_confidence(self, input: Option<f32>) -> Self
pub fn set_confidence(self, input: Option<f32>) -> Self
Specifies the confidence that Amazon Rekognition has that the label has been correctly identified.
If you don't specify the MinConfidence parameter in the call to DetectModerationLabels, the operation returns labels with a confidence value greater than or equal to 50 percent.
sourcepub fn get_confidence(&self) -> &Option<f32>
pub fn get_confidence(&self) -> &Option<f32>
Specifies the confidence that Amazon Rekognition has that the label has been correctly identified.
If you don't specify the MinConfidence parameter in the call to DetectModerationLabels, the operation returns labels with a confidence value greater than or equal to 50 percent.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The label name for the type of unsafe content detected in the image.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The label name for the type of unsafe content detected in the image.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The label name for the type of unsafe content detected in the image.
sourcepub fn parent_name(self, input: impl Into<String>) -> Self
pub fn parent_name(self, input: impl Into<String>) -> Self
The name for the parent label. Labels at the top level of the hierarchy have the parent label "".
sourcepub fn set_parent_name(self, input: Option<String>) -> Self
pub fn set_parent_name(self, input: Option<String>) -> Self
The name for the parent label. Labels at the top level of the hierarchy have the parent label "".
sourcepub fn get_parent_name(&self) -> &Option<String>
pub fn get_parent_name(&self) -> &Option<String>
The name for the parent label. Labels at the top level of the hierarchy have the parent label "".
sourcepub fn build(self) -> ModerationLabel
pub fn build(self) -> ModerationLabel
Consumes the builder and constructs a ModerationLabel.
Trait Implementations§
source§impl Clone for ModerationLabelBuilder
impl Clone for ModerationLabelBuilder
source§fn clone(&self) -> ModerationLabelBuilder
fn clone(&self) -> ModerationLabelBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ModerationLabelBuilder
impl Debug for ModerationLabelBuilder
source§impl Default for ModerationLabelBuilder
impl Default for ModerationLabelBuilder
source§fn default() -> ModerationLabelBuilder
fn default() -> ModerationLabelBuilder
source§impl PartialEq for ModerationLabelBuilder
impl PartialEq for ModerationLabelBuilder
source§fn eq(&self, other: &ModerationLabelBuilder) -> bool
fn eq(&self, other: &ModerationLabelBuilder) -> bool
self and other values to be equal, and is used
by ==.