#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Observation {
pub id: ::std::option::Option<::std::string::String>,
pub start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub source_type: ::std::option::Option<::std::string::String>,
pub source_arn: ::std::option::Option<::std::string::String>,
pub log_group: ::std::option::Option<::std::string::String>,
pub line_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub log_text: ::std::option::Option<::std::string::String>,
pub log_filter: ::std::option::Option<crate::types::LogFilter>,
pub metric_namespace: ::std::option::Option<::std::string::String>,
pub metric_name: ::std::option::Option<::std::string::String>,
pub unit: ::std::option::Option<::std::string::String>,
pub value: ::std::option::Option<f64>,
pub cloud_watch_event_id: ::std::option::Option<::std::string::String>,
pub cloud_watch_event_source: ::std::option::Option<crate::types::CloudWatchEventSource>,
pub cloud_watch_event_detail_type: ::std::option::Option<::std::string::String>,
pub health_event_arn: ::std::option::Option<::std::string::String>,
pub health_service: ::std::option::Option<::std::string::String>,
pub health_event_type_code: ::std::option::Option<::std::string::String>,
pub health_event_type_category: ::std::option::Option<::std::string::String>,
pub health_event_description: ::std::option::Option<::std::string::String>,
pub code_deploy_deployment_id: ::std::option::Option<::std::string::String>,
pub code_deploy_deployment_group: ::std::option::Option<::std::string::String>,
pub code_deploy_state: ::std::option::Option<::std::string::String>,
pub code_deploy_application: ::std::option::Option<::std::string::String>,
pub code_deploy_instance_group_id: ::std::option::Option<::std::string::String>,
pub ec2_state: ::std::option::Option<::std::string::String>,
pub rds_event_categories: ::std::option::Option<::std::string::String>,
pub rds_event_message: ::std::option::Option<::std::string::String>,
pub s3_event_name: ::std::option::Option<::std::string::String>,
pub states_execution_arn: ::std::option::Option<::std::string::String>,
pub states_arn: ::std::option::Option<::std::string::String>,
pub states_status: ::std::option::Option<::std::string::String>,
pub states_input: ::std::option::Option<::std::string::String>,
pub ebs_event: ::std::option::Option<::std::string::String>,
pub ebs_result: ::std::option::Option<::std::string::String>,
pub ebs_cause: ::std::option::Option<::std::string::String>,
pub ebs_request_id: ::std::option::Option<::std::string::String>,
pub x_ray_fault_percent: ::std::option::Option<i32>,
pub x_ray_throttle_percent: ::std::option::Option<i32>,
pub x_ray_error_percent: ::std::option::Option<i32>,
pub x_ray_request_count: ::std::option::Option<i32>,
pub x_ray_request_average_latency: ::std::option::Option<i64>,
pub x_ray_node_name: ::std::option::Option<::std::string::String>,
pub x_ray_node_type: ::std::option::Option<::std::string::String>,
}
impl Observation {
pub fn id(&self) -> ::std::option::Option<&str> {
self.id.as_deref()
}
pub fn start_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.start_time.as_ref()
}
pub fn end_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.end_time.as_ref()
}
pub fn source_type(&self) -> ::std::option::Option<&str> {
self.source_type.as_deref()
}
pub fn source_arn(&self) -> ::std::option::Option<&str> {
self.source_arn.as_deref()
}
pub fn log_group(&self) -> ::std::option::Option<&str> {
self.log_group.as_deref()
}
pub fn line_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.line_time.as_ref()
}
pub fn log_text(&self) -> ::std::option::Option<&str> {
self.log_text.as_deref()
}
pub fn log_filter(&self) -> ::std::option::Option<&crate::types::LogFilter> {
self.log_filter.as_ref()
}
pub fn metric_namespace(&self) -> ::std::option::Option<&str> {
self.metric_namespace.as_deref()
}
pub fn metric_name(&self) -> ::std::option::Option<&str> {
self.metric_name.as_deref()
}
pub fn unit(&self) -> ::std::option::Option<&str> {
self.unit.as_deref()
}
pub fn value(&self) -> ::std::option::Option<f64> {
self.value
}
pub fn cloud_watch_event_id(&self) -> ::std::option::Option<&str> {
self.cloud_watch_event_id.as_deref()
}
pub fn cloud_watch_event_source(&self) -> ::std::option::Option<&crate::types::CloudWatchEventSource> {
self.cloud_watch_event_source.as_ref()
}
pub fn cloud_watch_event_detail_type(&self) -> ::std::option::Option<&str> {
self.cloud_watch_event_detail_type.as_deref()
}
pub fn health_event_arn(&self) -> ::std::option::Option<&str> {
self.health_event_arn.as_deref()
}
pub fn health_service(&self) -> ::std::option::Option<&str> {
self.health_service.as_deref()
}
pub fn health_event_type_code(&self) -> ::std::option::Option<&str> {
self.health_event_type_code.as_deref()
}
pub fn health_event_type_category(&self) -> ::std::option::Option<&str> {
self.health_event_type_category.as_deref()
}
pub fn health_event_description(&self) -> ::std::option::Option<&str> {
self.health_event_description.as_deref()
}
pub fn code_deploy_deployment_id(&self) -> ::std::option::Option<&str> {
self.code_deploy_deployment_id.as_deref()
}
pub fn code_deploy_deployment_group(&self) -> ::std::option::Option<&str> {
self.code_deploy_deployment_group.as_deref()
}
pub fn code_deploy_state(&self) -> ::std::option::Option<&str> {
self.code_deploy_state.as_deref()
}
pub fn code_deploy_application(&self) -> ::std::option::Option<&str> {
self.code_deploy_application.as_deref()
}
pub fn code_deploy_instance_group_id(&self) -> ::std::option::Option<&str> {
self.code_deploy_instance_group_id.as_deref()
}
pub fn ec2_state(&self) -> ::std::option::Option<&str> {
self.ec2_state.as_deref()
}
pub fn rds_event_categories(&self) -> ::std::option::Option<&str> {
self.rds_event_categories.as_deref()
}
pub fn rds_event_message(&self) -> ::std::option::Option<&str> {
self.rds_event_message.as_deref()
}
pub fn s3_event_name(&self) -> ::std::option::Option<&str> {
self.s3_event_name.as_deref()
}
pub fn states_execution_arn(&self) -> ::std::option::Option<&str> {
self.states_execution_arn.as_deref()
}
pub fn states_arn(&self) -> ::std::option::Option<&str> {
self.states_arn.as_deref()
}
pub fn states_status(&self) -> ::std::option::Option<&str> {
self.states_status.as_deref()
}
pub fn states_input(&self) -> ::std::option::Option<&str> {
self.states_input.as_deref()
}
pub fn ebs_event(&self) -> ::std::option::Option<&str> {
self.ebs_event.as_deref()
}
pub fn ebs_result(&self) -> ::std::option::Option<&str> {
self.ebs_result.as_deref()
}
pub fn ebs_cause(&self) -> ::std::option::Option<&str> {
self.ebs_cause.as_deref()
}
pub fn ebs_request_id(&self) -> ::std::option::Option<&str> {
self.ebs_request_id.as_deref()
}
pub fn x_ray_fault_percent(&self) -> ::std::option::Option<i32> {
self.x_ray_fault_percent
}
pub fn x_ray_throttle_percent(&self) -> ::std::option::Option<i32> {
self.x_ray_throttle_percent
}
pub fn x_ray_error_percent(&self) -> ::std::option::Option<i32> {
self.x_ray_error_percent
}
pub fn x_ray_request_count(&self) -> ::std::option::Option<i32> {
self.x_ray_request_count
}
pub fn x_ray_request_average_latency(&self) -> ::std::option::Option<i64> {
self.x_ray_request_average_latency
}
pub fn x_ray_node_name(&self) -> ::std::option::Option<&str> {
self.x_ray_node_name.as_deref()
}
pub fn x_ray_node_type(&self) -> ::std::option::Option<&str> {
self.x_ray_node_type.as_deref()
}
}
impl Observation {
pub fn builder() -> crate::types::builders::ObservationBuilder {
crate::types::builders::ObservationBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ObservationBuilder {
pub(crate) id: ::std::option::Option<::std::string::String>,
pub(crate) start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) source_type: ::std::option::Option<::std::string::String>,
pub(crate) source_arn: ::std::option::Option<::std::string::String>,
pub(crate) log_group: ::std::option::Option<::std::string::String>,
pub(crate) line_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) log_text: ::std::option::Option<::std::string::String>,
pub(crate) log_filter: ::std::option::Option<crate::types::LogFilter>,
pub(crate) metric_namespace: ::std::option::Option<::std::string::String>,
pub(crate) metric_name: ::std::option::Option<::std::string::String>,
pub(crate) unit: ::std::option::Option<::std::string::String>,
pub(crate) value: ::std::option::Option<f64>,
pub(crate) cloud_watch_event_id: ::std::option::Option<::std::string::String>,
pub(crate) cloud_watch_event_source: ::std::option::Option<crate::types::CloudWatchEventSource>,
pub(crate) cloud_watch_event_detail_type: ::std::option::Option<::std::string::String>,
pub(crate) health_event_arn: ::std::option::Option<::std::string::String>,
pub(crate) health_service: ::std::option::Option<::std::string::String>,
pub(crate) health_event_type_code: ::std::option::Option<::std::string::String>,
pub(crate) health_event_type_category: ::std::option::Option<::std::string::String>,
pub(crate) health_event_description: ::std::option::Option<::std::string::String>,
pub(crate) code_deploy_deployment_id: ::std::option::Option<::std::string::String>,
pub(crate) code_deploy_deployment_group: ::std::option::Option<::std::string::String>,
pub(crate) code_deploy_state: ::std::option::Option<::std::string::String>,
pub(crate) code_deploy_application: ::std::option::Option<::std::string::String>,
pub(crate) code_deploy_instance_group_id: ::std::option::Option<::std::string::String>,
pub(crate) ec2_state: ::std::option::Option<::std::string::String>,
pub(crate) rds_event_categories: ::std::option::Option<::std::string::String>,
pub(crate) rds_event_message: ::std::option::Option<::std::string::String>,
pub(crate) s3_event_name: ::std::option::Option<::std::string::String>,
pub(crate) states_execution_arn: ::std::option::Option<::std::string::String>,
pub(crate) states_arn: ::std::option::Option<::std::string::String>,
pub(crate) states_status: ::std::option::Option<::std::string::String>,
pub(crate) states_input: ::std::option::Option<::std::string::String>,
pub(crate) ebs_event: ::std::option::Option<::std::string::String>,
pub(crate) ebs_result: ::std::option::Option<::std::string::String>,
pub(crate) ebs_cause: ::std::option::Option<::std::string::String>,
pub(crate) ebs_request_id: ::std::option::Option<::std::string::String>,
pub(crate) x_ray_fault_percent: ::std::option::Option<i32>,
pub(crate) x_ray_throttle_percent: ::std::option::Option<i32>,
pub(crate) x_ray_error_percent: ::std::option::Option<i32>,
pub(crate) x_ray_request_count: ::std::option::Option<i32>,
pub(crate) x_ray_request_average_latency: ::std::option::Option<i64>,
pub(crate) x_ray_node_name: ::std::option::Option<::std::string::String>,
pub(crate) x_ray_node_type: ::std::option::Option<::std::string::String>,
}
impl ObservationBuilder {
pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.id = ::std::option::Option::Some(input.into());
self
}
pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.id = input;
self
}
pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
&self.id
}
pub fn start_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.start_time = ::std::option::Option::Some(input);
self
}
pub fn set_start_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.start_time = input;
self
}
pub fn get_start_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.start_time
}
pub fn end_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.end_time = ::std::option::Option::Some(input);
self
}
pub fn set_end_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.end_time = input;
self
}
pub fn get_end_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.end_time
}
pub fn source_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.source_type = ::std::option::Option::Some(input.into());
self
}
pub fn set_source_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.source_type = input;
self
}
pub fn get_source_type(&self) -> &::std::option::Option<::std::string::String> {
&self.source_type
}
pub fn source_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.source_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_source_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.source_arn = input;
self
}
pub fn get_source_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.source_arn
}
pub fn log_group(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.log_group = ::std::option::Option::Some(input.into());
self
}
pub fn set_log_group(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.log_group = input;
self
}
pub fn get_log_group(&self) -> &::std::option::Option<::std::string::String> {
&self.log_group
}
pub fn line_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.line_time = ::std::option::Option::Some(input);
self
}
pub fn set_line_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.line_time = input;
self
}
pub fn get_line_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.line_time
}
pub fn log_text(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.log_text = ::std::option::Option::Some(input.into());
self
}
pub fn set_log_text(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.log_text = input;
self
}
pub fn get_log_text(&self) -> &::std::option::Option<::std::string::String> {
&self.log_text
}
pub fn log_filter(mut self, input: crate::types::LogFilter) -> Self {
self.log_filter = ::std::option::Option::Some(input);
self
}
pub fn set_log_filter(mut self, input: ::std::option::Option<crate::types::LogFilter>) -> Self {
self.log_filter = input;
self
}
pub fn get_log_filter(&self) -> &::std::option::Option<crate::types::LogFilter> {
&self.log_filter
}
pub fn metric_namespace(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.metric_namespace = ::std::option::Option::Some(input.into());
self
}
pub fn set_metric_namespace(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.metric_namespace = input;
self
}
pub fn get_metric_namespace(&self) -> &::std::option::Option<::std::string::String> {
&self.metric_namespace
}
pub fn metric_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.metric_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_metric_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.metric_name = input;
self
}
pub fn get_metric_name(&self) -> &::std::option::Option<::std::string::String> {
&self.metric_name
}
pub fn unit(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.unit = ::std::option::Option::Some(input.into());
self
}
pub fn set_unit(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.unit = input;
self
}
pub fn get_unit(&self) -> &::std::option::Option<::std::string::String> {
&self.unit
}
pub fn value(mut self, input: f64) -> Self {
self.value = ::std::option::Option::Some(input);
self
}
pub fn set_value(mut self, input: ::std::option::Option<f64>) -> Self {
self.value = input;
self
}
pub fn get_value(&self) -> &::std::option::Option<f64> {
&self.value
}
pub fn cloud_watch_event_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.cloud_watch_event_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_cloud_watch_event_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.cloud_watch_event_id = input;
self
}
pub fn get_cloud_watch_event_id(&self) -> &::std::option::Option<::std::string::String> {
&self.cloud_watch_event_id
}
pub fn cloud_watch_event_source(mut self, input: crate::types::CloudWatchEventSource) -> Self {
self.cloud_watch_event_source = ::std::option::Option::Some(input);
self
}
pub fn set_cloud_watch_event_source(mut self, input: ::std::option::Option<crate::types::CloudWatchEventSource>) -> Self {
self.cloud_watch_event_source = input;
self
}
pub fn get_cloud_watch_event_source(&self) -> &::std::option::Option<crate::types::CloudWatchEventSource> {
&self.cloud_watch_event_source
}
pub fn cloud_watch_event_detail_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.cloud_watch_event_detail_type = ::std::option::Option::Some(input.into());
self
}
pub fn set_cloud_watch_event_detail_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.cloud_watch_event_detail_type = input;
self
}
pub fn get_cloud_watch_event_detail_type(&self) -> &::std::option::Option<::std::string::String> {
&self.cloud_watch_event_detail_type
}
pub fn health_event_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.health_event_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_health_event_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.health_event_arn = input;
self
}
pub fn get_health_event_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.health_event_arn
}
pub fn health_service(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.health_service = ::std::option::Option::Some(input.into());
self
}
pub fn set_health_service(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.health_service = input;
self
}
pub fn get_health_service(&self) -> &::std::option::Option<::std::string::String> {
&self.health_service
}
pub fn health_event_type_code(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.health_event_type_code = ::std::option::Option::Some(input.into());
self
}
pub fn set_health_event_type_code(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.health_event_type_code = input;
self
}
pub fn get_health_event_type_code(&self) -> &::std::option::Option<::std::string::String> {
&self.health_event_type_code
}
pub fn health_event_type_category(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.health_event_type_category = ::std::option::Option::Some(input.into());
self
}
pub fn set_health_event_type_category(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.health_event_type_category = input;
self
}
pub fn get_health_event_type_category(&self) -> &::std::option::Option<::std::string::String> {
&self.health_event_type_category
}
pub fn health_event_description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.health_event_description = ::std::option::Option::Some(input.into());
self
}
pub fn set_health_event_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.health_event_description = input;
self
}
pub fn get_health_event_description(&self) -> &::std::option::Option<::std::string::String> {
&self.health_event_description
}
pub fn code_deploy_deployment_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.code_deploy_deployment_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_code_deploy_deployment_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.code_deploy_deployment_id = input;
self
}
pub fn get_code_deploy_deployment_id(&self) -> &::std::option::Option<::std::string::String> {
&self.code_deploy_deployment_id
}
pub fn code_deploy_deployment_group(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.code_deploy_deployment_group = ::std::option::Option::Some(input.into());
self
}
pub fn set_code_deploy_deployment_group(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.code_deploy_deployment_group = input;
self
}
pub fn get_code_deploy_deployment_group(&self) -> &::std::option::Option<::std::string::String> {
&self.code_deploy_deployment_group
}
pub fn code_deploy_state(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.code_deploy_state = ::std::option::Option::Some(input.into());
self
}
pub fn set_code_deploy_state(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.code_deploy_state = input;
self
}
pub fn get_code_deploy_state(&self) -> &::std::option::Option<::std::string::String> {
&self.code_deploy_state
}
pub fn code_deploy_application(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.code_deploy_application = ::std::option::Option::Some(input.into());
self
}
pub fn set_code_deploy_application(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.code_deploy_application = input;
self
}
pub fn get_code_deploy_application(&self) -> &::std::option::Option<::std::string::String> {
&self.code_deploy_application
}
pub fn code_deploy_instance_group_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.code_deploy_instance_group_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_code_deploy_instance_group_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.code_deploy_instance_group_id = input;
self
}
pub fn get_code_deploy_instance_group_id(&self) -> &::std::option::Option<::std::string::String> {
&self.code_deploy_instance_group_id
}
pub fn ec2_state(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.ec2_state = ::std::option::Option::Some(input.into());
self
}
pub fn set_ec2_state(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.ec2_state = input;
self
}
pub fn get_ec2_state(&self) -> &::std::option::Option<::std::string::String> {
&self.ec2_state
}
pub fn rds_event_categories(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.rds_event_categories = ::std::option::Option::Some(input.into());
self
}
pub fn set_rds_event_categories(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.rds_event_categories = input;
self
}
pub fn get_rds_event_categories(&self) -> &::std::option::Option<::std::string::String> {
&self.rds_event_categories
}
pub fn rds_event_message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.rds_event_message = ::std::option::Option::Some(input.into());
self
}
pub fn set_rds_event_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.rds_event_message = input;
self
}
pub fn get_rds_event_message(&self) -> &::std::option::Option<::std::string::String> {
&self.rds_event_message
}
pub fn s3_event_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.s3_event_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_s3_event_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.s3_event_name = input;
self
}
pub fn get_s3_event_name(&self) -> &::std::option::Option<::std::string::String> {
&self.s3_event_name
}
pub fn states_execution_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.states_execution_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_states_execution_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.states_execution_arn = input;
self
}
pub fn get_states_execution_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.states_execution_arn
}
pub fn states_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.states_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_states_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.states_arn = input;
self
}
pub fn get_states_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.states_arn
}
pub fn states_status(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.states_status = ::std::option::Option::Some(input.into());
self
}
pub fn set_states_status(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.states_status = input;
self
}
pub fn get_states_status(&self) -> &::std::option::Option<::std::string::String> {
&self.states_status
}
pub fn states_input(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.states_input = ::std::option::Option::Some(input.into());
self
}
pub fn set_states_input(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.states_input = input;
self
}
pub fn get_states_input(&self) -> &::std::option::Option<::std::string::String> {
&self.states_input
}
pub fn ebs_event(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.ebs_event = ::std::option::Option::Some(input.into());
self
}
pub fn set_ebs_event(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.ebs_event = input;
self
}
pub fn get_ebs_event(&self) -> &::std::option::Option<::std::string::String> {
&self.ebs_event
}
pub fn ebs_result(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.ebs_result = ::std::option::Option::Some(input.into());
self
}
pub fn set_ebs_result(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.ebs_result = input;
self
}
pub fn get_ebs_result(&self) -> &::std::option::Option<::std::string::String> {
&self.ebs_result
}
pub fn ebs_cause(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.ebs_cause = ::std::option::Option::Some(input.into());
self
}
pub fn set_ebs_cause(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.ebs_cause = input;
self
}
pub fn get_ebs_cause(&self) -> &::std::option::Option<::std::string::String> {
&self.ebs_cause
}
pub fn ebs_request_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.ebs_request_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_ebs_request_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.ebs_request_id = input;
self
}
pub fn get_ebs_request_id(&self) -> &::std::option::Option<::std::string::String> {
&self.ebs_request_id
}
pub fn x_ray_fault_percent(mut self, input: i32) -> Self {
self.x_ray_fault_percent = ::std::option::Option::Some(input);
self
}
pub fn set_x_ray_fault_percent(mut self, input: ::std::option::Option<i32>) -> Self {
self.x_ray_fault_percent = input;
self
}
pub fn get_x_ray_fault_percent(&self) -> &::std::option::Option<i32> {
&self.x_ray_fault_percent
}
pub fn x_ray_throttle_percent(mut self, input: i32) -> Self {
self.x_ray_throttle_percent = ::std::option::Option::Some(input);
self
}
pub fn set_x_ray_throttle_percent(mut self, input: ::std::option::Option<i32>) -> Self {
self.x_ray_throttle_percent = input;
self
}
pub fn get_x_ray_throttle_percent(&self) -> &::std::option::Option<i32> {
&self.x_ray_throttle_percent
}
pub fn x_ray_error_percent(mut self, input: i32) -> Self {
self.x_ray_error_percent = ::std::option::Option::Some(input);
self
}
pub fn set_x_ray_error_percent(mut self, input: ::std::option::Option<i32>) -> Self {
self.x_ray_error_percent = input;
self
}
pub fn get_x_ray_error_percent(&self) -> &::std::option::Option<i32> {
&self.x_ray_error_percent
}
pub fn x_ray_request_count(mut self, input: i32) -> Self {
self.x_ray_request_count = ::std::option::Option::Some(input);
self
}
pub fn set_x_ray_request_count(mut self, input: ::std::option::Option<i32>) -> Self {
self.x_ray_request_count = input;
self
}
pub fn get_x_ray_request_count(&self) -> &::std::option::Option<i32> {
&self.x_ray_request_count
}
pub fn x_ray_request_average_latency(mut self, input: i64) -> Self {
self.x_ray_request_average_latency = ::std::option::Option::Some(input);
self
}
pub fn set_x_ray_request_average_latency(mut self, input: ::std::option::Option<i64>) -> Self {
self.x_ray_request_average_latency = input;
self
}
pub fn get_x_ray_request_average_latency(&self) -> &::std::option::Option<i64> {
&self.x_ray_request_average_latency
}
pub fn x_ray_node_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.x_ray_node_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_x_ray_node_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.x_ray_node_name = input;
self
}
pub fn get_x_ray_node_name(&self) -> &::std::option::Option<::std::string::String> {
&self.x_ray_node_name
}
pub fn x_ray_node_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.x_ray_node_type = ::std::option::Option::Some(input.into());
self
}
pub fn set_x_ray_node_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.x_ray_node_type = input;
self
}
pub fn get_x_ray_node_type(&self) -> &::std::option::Option<::std::string::String> {
&self.x_ray_node_type
}
pub fn build(self) -> crate::types::Observation {
crate::types::Observation {
id: self.id,
start_time: self.start_time,
end_time: self.end_time,
source_type: self.source_type,
source_arn: self.source_arn,
log_group: self.log_group,
line_time: self.line_time,
log_text: self.log_text,
log_filter: self.log_filter,
metric_namespace: self.metric_namespace,
metric_name: self.metric_name,
unit: self.unit,
value: self.value,
cloud_watch_event_id: self.cloud_watch_event_id,
cloud_watch_event_source: self.cloud_watch_event_source,
cloud_watch_event_detail_type: self.cloud_watch_event_detail_type,
health_event_arn: self.health_event_arn,
health_service: self.health_service,
health_event_type_code: self.health_event_type_code,
health_event_type_category: self.health_event_type_category,
health_event_description: self.health_event_description,
code_deploy_deployment_id: self.code_deploy_deployment_id,
code_deploy_deployment_group: self.code_deploy_deployment_group,
code_deploy_state: self.code_deploy_state,
code_deploy_application: self.code_deploy_application,
code_deploy_instance_group_id: self.code_deploy_instance_group_id,
ec2_state: self.ec2_state,
rds_event_categories: self.rds_event_categories,
rds_event_message: self.rds_event_message,
s3_event_name: self.s3_event_name,
states_execution_arn: self.states_execution_arn,
states_arn: self.states_arn,
states_status: self.states_status,
states_input: self.states_input,
ebs_event: self.ebs_event,
ebs_result: self.ebs_result,
ebs_cause: self.ebs_cause,
ebs_request_id: self.ebs_request_id,
x_ray_fault_percent: self.x_ray_fault_percent,
x_ray_throttle_percent: self.x_ray_throttle_percent,
x_ray_error_percent: self.x_ray_error_percent,
x_ray_request_count: self.x_ray_request_count,
x_ray_request_average_latency: self.x_ray_request_average_latency,
x_ray_node_name: self.x_ray_node_name,
x_ray_node_type: self.x_ray_node_type,
}
}
}