Struct aws_sdk_rum::operation::update_rum_metric_definition::builders::UpdateRumMetricDefinitionInputBuilder
source · #[non_exhaustive]pub struct UpdateRumMetricDefinitionInputBuilder { /* private fields */ }Expand description
A builder for UpdateRumMetricDefinitionInput.
Implementations§
source§impl UpdateRumMetricDefinitionInputBuilder
impl UpdateRumMetricDefinitionInputBuilder
sourcepub fn app_monitor_name(self, input: impl Into<String>) -> Self
pub fn app_monitor_name(self, input: impl Into<String>) -> Self
The name of the CloudWatch RUM app monitor that sends these metrics.
This field is required.sourcepub fn set_app_monitor_name(self, input: Option<String>) -> Self
pub fn set_app_monitor_name(self, input: Option<String>) -> Self
The name of the CloudWatch RUM app monitor that sends these metrics.
sourcepub fn get_app_monitor_name(&self) -> &Option<String>
pub fn get_app_monitor_name(&self) -> &Option<String>
The name of the CloudWatch RUM app monitor that sends these metrics.
sourcepub fn destination(self, input: MetricDestination) -> Self
pub fn destination(self, input: MetricDestination) -> Self
The destination to send the metrics to. Valid values are CloudWatch and Evidently. If you specify Evidently, you must also specify the ARN of the CloudWatchEvidently experiment that will receive the metrics and an IAM role that has permission to write to the experiment.
sourcepub fn set_destination(self, input: Option<MetricDestination>) -> Self
pub fn set_destination(self, input: Option<MetricDestination>) -> Self
The destination to send the metrics to. Valid values are CloudWatch and Evidently. If you specify Evidently, you must also specify the ARN of the CloudWatchEvidently experiment that will receive the metrics and an IAM role that has permission to write to the experiment.
sourcepub fn get_destination(&self) -> &Option<MetricDestination>
pub fn get_destination(&self) -> &Option<MetricDestination>
The destination to send the metrics to. Valid values are CloudWatch and Evidently. If you specify Evidently, you must also specify the ARN of the CloudWatchEvidently experiment that will receive the metrics and an IAM role that has permission to write to the experiment.
sourcepub fn destination_arn(self, input: impl Into<String>) -> Self
pub fn destination_arn(self, input: impl Into<String>) -> Self
This parameter is required if Destination is Evidently. If Destination is CloudWatch, do not use this parameter.
This parameter specifies the ARN of the Evidently experiment that is to receive the metrics. You must have already defined this experiment as a valid destination. For more information, see PutRumMetricsDestination.
sourcepub fn set_destination_arn(self, input: Option<String>) -> Self
pub fn set_destination_arn(self, input: Option<String>) -> Self
This parameter is required if Destination is Evidently. If Destination is CloudWatch, do not use this parameter.
This parameter specifies the ARN of the Evidently experiment that is to receive the metrics. You must have already defined this experiment as a valid destination. For more information, see PutRumMetricsDestination.
sourcepub fn get_destination_arn(&self) -> &Option<String>
pub fn get_destination_arn(&self) -> &Option<String>
This parameter is required if Destination is Evidently. If Destination is CloudWatch, do not use this parameter.
This parameter specifies the ARN of the Evidently experiment that is to receive the metrics. You must have already defined this experiment as a valid destination. For more information, see PutRumMetricsDestination.
sourcepub fn metric_definition(self, input: MetricDefinitionRequest) -> Self
pub fn metric_definition(self, input: MetricDefinitionRequest) -> Self
A structure that contains the new definition that you want to use for this metric.
This field is required.sourcepub fn set_metric_definition(
self,
input: Option<MetricDefinitionRequest>
) -> Self
pub fn set_metric_definition( self, input: Option<MetricDefinitionRequest> ) -> Self
A structure that contains the new definition that you want to use for this metric.
sourcepub fn get_metric_definition(&self) -> &Option<MetricDefinitionRequest>
pub fn get_metric_definition(&self) -> &Option<MetricDefinitionRequest>
A structure that contains the new definition that you want to use for this metric.
sourcepub fn metric_definition_id(self, input: impl Into<String>) -> Self
pub fn metric_definition_id(self, input: impl Into<String>) -> Self
The ID of the metric definition to update.
This field is required.sourcepub fn set_metric_definition_id(self, input: Option<String>) -> Self
pub fn set_metric_definition_id(self, input: Option<String>) -> Self
The ID of the metric definition to update.
sourcepub fn get_metric_definition_id(&self) -> &Option<String>
pub fn get_metric_definition_id(&self) -> &Option<String>
The ID of the metric definition to update.
sourcepub fn build(self) -> Result<UpdateRumMetricDefinitionInput, BuildError>
pub fn build(self) -> Result<UpdateRumMetricDefinitionInput, BuildError>
Consumes the builder and constructs a UpdateRumMetricDefinitionInput.
source§impl UpdateRumMetricDefinitionInputBuilder
impl UpdateRumMetricDefinitionInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdateRumMetricDefinitionOutput, SdkError<UpdateRumMetricDefinitionError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdateRumMetricDefinitionOutput, SdkError<UpdateRumMetricDefinitionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateRumMetricDefinitionInputBuilder
impl Clone for UpdateRumMetricDefinitionInputBuilder
source§fn clone(&self) -> UpdateRumMetricDefinitionInputBuilder
fn clone(&self) -> UpdateRumMetricDefinitionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for UpdateRumMetricDefinitionInputBuilder
impl Default for UpdateRumMetricDefinitionInputBuilder
source§fn default() -> UpdateRumMetricDefinitionInputBuilder
fn default() -> UpdateRumMetricDefinitionInputBuilder
source§impl PartialEq for UpdateRumMetricDefinitionInputBuilder
impl PartialEq for UpdateRumMetricDefinitionInputBuilder
source§fn eq(&self, other: &UpdateRumMetricDefinitionInputBuilder) -> bool
fn eq(&self, other: &UpdateRumMetricDefinitionInputBuilder) -> bool
self and other values to be equal, and is used
by ==.