Struct aws_sdk_iotevents::operation::create_detector_model::builders::CreateDetectorModelInputBuilder
source · #[non_exhaustive]pub struct CreateDetectorModelInputBuilder { /* private fields */ }
Expand description
A builder for CreateDetectorModelInput
.
Implementations§
source§impl CreateDetectorModelInputBuilder
impl CreateDetectorModelInputBuilder
sourcepub fn detector_model_name(self, input: impl Into<String>) -> Self
pub fn detector_model_name(self, input: impl Into<String>) -> Self
The name of the detector model.
This field is required.sourcepub fn set_detector_model_name(self, input: Option<String>) -> Self
pub fn set_detector_model_name(self, input: Option<String>) -> Self
The name of the detector model.
sourcepub fn get_detector_model_name(&self) -> &Option<String>
pub fn get_detector_model_name(&self) -> &Option<String>
The name of the detector model.
sourcepub fn detector_model_definition(self, input: DetectorModelDefinition) -> Self
pub fn detector_model_definition(self, input: DetectorModelDefinition) -> Self
Information that defines how the detectors operate.
This field is required.sourcepub fn set_detector_model_definition(
self,
input: Option<DetectorModelDefinition>
) -> Self
pub fn set_detector_model_definition( self, input: Option<DetectorModelDefinition> ) -> Self
Information that defines how the detectors operate.
sourcepub fn get_detector_model_definition(&self) -> &Option<DetectorModelDefinition>
pub fn get_detector_model_definition(&self) -> &Option<DetectorModelDefinition>
Information that defines how the detectors operate.
sourcepub fn detector_model_description(self, input: impl Into<String>) -> Self
pub fn detector_model_description(self, input: impl Into<String>) -> Self
A brief description of the detector model.
sourcepub fn set_detector_model_description(self, input: Option<String>) -> Self
pub fn set_detector_model_description(self, input: Option<String>) -> Self
A brief description of the detector model.
sourcepub fn get_detector_model_description(&self) -> &Option<String>
pub fn get_detector_model_description(&self) -> &Option<String>
A brief description of the detector model.
sourcepub fn key(self, input: impl Into<String>) -> Self
pub fn key(self, input: impl Into<String>) -> Self
The input attribute key used to identify a device or system to create a detector (an instance of the detector model) and then to route each input received to the appropriate detector (instance). This parameter uses a JSON-path expression in the message payload of each input to specify the attribute-value pair that is used to identify the device associated with the input.
sourcepub fn set_key(self, input: Option<String>) -> Self
pub fn set_key(self, input: Option<String>) -> Self
The input attribute key used to identify a device or system to create a detector (an instance of the detector model) and then to route each input received to the appropriate detector (instance). This parameter uses a JSON-path expression in the message payload of each input to specify the attribute-value pair that is used to identify the device associated with the input.
sourcepub fn get_key(&self) -> &Option<String>
pub fn get_key(&self) -> &Option<String>
The input attribute key used to identify a device or system to create a detector (an instance of the detector model) and then to route each input received to the appropriate detector (instance). This parameter uses a JSON-path expression in the message payload of each input to specify the attribute-value pair that is used to identify the device associated with the input.
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
The ARN of the role that grants permission to AWS IoT Events to perform its operations.
This field is required.sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
The ARN of the role that grants permission to AWS IoT Events to perform its operations.
sourcepub fn get_role_arn(&self) -> &Option<String>
pub fn get_role_arn(&self) -> &Option<String>
The ARN of the role that grants permission to AWS IoT Events to perform its operations.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
Metadata that can be used to manage the detector model.
Metadata that can be used to manage the detector model.
Metadata that can be used to manage the detector model.
sourcepub fn evaluation_method(self, input: EvaluationMethod) -> Self
pub fn evaluation_method(self, input: EvaluationMethod) -> Self
Information about the order in which events are evaluated and how actions are executed.
sourcepub fn set_evaluation_method(self, input: Option<EvaluationMethod>) -> Self
pub fn set_evaluation_method(self, input: Option<EvaluationMethod>) -> Self
Information about the order in which events are evaluated and how actions are executed.
sourcepub fn get_evaluation_method(&self) -> &Option<EvaluationMethod>
pub fn get_evaluation_method(&self) -> &Option<EvaluationMethod>
Information about the order in which events are evaluated and how actions are executed.
sourcepub fn build(self) -> Result<CreateDetectorModelInput, BuildError>
pub fn build(self) -> Result<CreateDetectorModelInput, BuildError>
Consumes the builder and constructs a CreateDetectorModelInput
.
source§impl CreateDetectorModelInputBuilder
impl CreateDetectorModelInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateDetectorModelOutput, SdkError<CreateDetectorModelError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateDetectorModelOutput, SdkError<CreateDetectorModelError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateDetectorModelInputBuilder
impl Clone for CreateDetectorModelInputBuilder
source§fn clone(&self) -> CreateDetectorModelInputBuilder
fn clone(&self) -> CreateDetectorModelInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateDetectorModelInputBuilder
impl Default for CreateDetectorModelInputBuilder
source§fn default() -> CreateDetectorModelInputBuilder
fn default() -> CreateDetectorModelInputBuilder
source§impl PartialEq for CreateDetectorModelInputBuilder
impl PartialEq for CreateDetectorModelInputBuilder
source§fn eq(&self, other: &CreateDetectorModelInputBuilder) -> bool
fn eq(&self, other: &CreateDetectorModelInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateDetectorModelInputBuilder
Auto Trait Implementations§
impl Freeze for CreateDetectorModelInputBuilder
impl RefUnwindSafe for CreateDetectorModelInputBuilder
impl Send for CreateDetectorModelInputBuilder
impl Sync for CreateDetectorModelInputBuilder
impl Unpin for CreateDetectorModelInputBuilder
impl UnwindSafe for CreateDetectorModelInputBuilder
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> 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 more