Struct aws_sdk_rekognition::model::moderation_label::Builder
source · [−]pub struct Builder { /* private fields */ }Expand description
A builder for ModerationLabel.
Implementations
sourceimpl Builder
impl Builder
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 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 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 build(self) -> ModerationLabel
pub fn build(self) -> ModerationLabel
Consumes the builder and constructs a ModerationLabel.