aws-sdk-applicationsignals 1.89.0

AWS SDK for Amazon CloudWatch Application Signals
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteInstrumentationConfigurationInput {
    /// Type of instrumentation configuration (BREAKPOINT or PROBE). Required to identify the configuration to delete.
    pub instrumentation_type: ::std::option::Option<crate::types::InstrumentationType>,
    /// Service name for the instrumentation configuration.
    pub service: ::std::option::Option<::std::string::String>,
    /// Environment name for the instrumentation configuration.
    pub environment: ::std::option::Option<::std::string::String>,
    /// Signal type for the instrumentation configuration.
    pub signal_type: ::std::option::Option<crate::types::DynamicInstrumentationSignalType>,
    /// Location identifier - either full code location or a pre-computed hash.
    pub location_identifier: ::std::option::Option<crate::types::LocationIdentifier>,
}
impl DeleteInstrumentationConfigurationInput {
    /// Type of instrumentation configuration (BREAKPOINT or PROBE). Required to identify the configuration to delete.
    pub fn instrumentation_type(&self) -> ::std::option::Option<&crate::types::InstrumentationType> {
        self.instrumentation_type.as_ref()
    }
    /// Service name for the instrumentation configuration.
    pub fn service(&self) -> ::std::option::Option<&str> {
        self.service.as_deref()
    }
    /// Environment name for the instrumentation configuration.
    pub fn environment(&self) -> ::std::option::Option<&str> {
        self.environment.as_deref()
    }
    /// Signal type for the instrumentation configuration.
    pub fn signal_type(&self) -> ::std::option::Option<&crate::types::DynamicInstrumentationSignalType> {
        self.signal_type.as_ref()
    }
    /// Location identifier - either full code location or a pre-computed hash.
    pub fn location_identifier(&self) -> ::std::option::Option<&crate::types::LocationIdentifier> {
        self.location_identifier.as_ref()
    }
}
impl DeleteInstrumentationConfigurationInput {
    /// Creates a new builder-style object to manufacture [`DeleteInstrumentationConfigurationInput`](crate::operation::delete_instrumentation_configuration::DeleteInstrumentationConfigurationInput).
    pub fn builder() -> crate::operation::delete_instrumentation_configuration::builders::DeleteInstrumentationConfigurationInputBuilder {
        crate::operation::delete_instrumentation_configuration::builders::DeleteInstrumentationConfigurationInputBuilder::default()
    }
}

/// A builder for [`DeleteInstrumentationConfigurationInput`](crate::operation::delete_instrumentation_configuration::DeleteInstrumentationConfigurationInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteInstrumentationConfigurationInputBuilder {
    pub(crate) instrumentation_type: ::std::option::Option<crate::types::InstrumentationType>,
    pub(crate) service: ::std::option::Option<::std::string::String>,
    pub(crate) environment: ::std::option::Option<::std::string::String>,
    pub(crate) signal_type: ::std::option::Option<crate::types::DynamicInstrumentationSignalType>,
    pub(crate) location_identifier: ::std::option::Option<crate::types::LocationIdentifier>,
}
impl DeleteInstrumentationConfigurationInputBuilder {
    /// Type of instrumentation configuration (BREAKPOINT or PROBE). Required to identify the configuration to delete.
    /// This field is required.
    pub fn instrumentation_type(mut self, input: crate::types::InstrumentationType) -> Self {
        self.instrumentation_type = ::std::option::Option::Some(input);
        self
    }
    /// Type of instrumentation configuration (BREAKPOINT or PROBE). Required to identify the configuration to delete.
    pub fn set_instrumentation_type(mut self, input: ::std::option::Option<crate::types::InstrumentationType>) -> Self {
        self.instrumentation_type = input;
        self
    }
    /// Type of instrumentation configuration (BREAKPOINT or PROBE). Required to identify the configuration to delete.
    pub fn get_instrumentation_type(&self) -> &::std::option::Option<crate::types::InstrumentationType> {
        &self.instrumentation_type
    }
    /// Service name for the instrumentation configuration.
    /// This field is required.
    pub fn service(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.service = ::std::option::Option::Some(input.into());
        self
    }
    /// Service name for the instrumentation configuration.
    pub fn set_service(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.service = input;
        self
    }
    /// Service name for the instrumentation configuration.
    pub fn get_service(&self) -> &::std::option::Option<::std::string::String> {
        &self.service
    }
    /// Environment name for the instrumentation configuration.
    /// This field is required.
    pub fn environment(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.environment = ::std::option::Option::Some(input.into());
        self
    }
    /// Environment name for the instrumentation configuration.
    pub fn set_environment(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.environment = input;
        self
    }
    /// Environment name for the instrumentation configuration.
    pub fn get_environment(&self) -> &::std::option::Option<::std::string::String> {
        &self.environment
    }
    /// Signal type for the instrumentation configuration.
    /// This field is required.
    pub fn signal_type(mut self, input: crate::types::DynamicInstrumentationSignalType) -> Self {
        self.signal_type = ::std::option::Option::Some(input);
        self
    }
    /// Signal type for the instrumentation configuration.
    pub fn set_signal_type(mut self, input: ::std::option::Option<crate::types::DynamicInstrumentationSignalType>) -> Self {
        self.signal_type = input;
        self
    }
    /// Signal type for the instrumentation configuration.
    pub fn get_signal_type(&self) -> &::std::option::Option<crate::types::DynamicInstrumentationSignalType> {
        &self.signal_type
    }
    /// Location identifier - either full code location or a pre-computed hash.
    /// This field is required.
    pub fn location_identifier(mut self, input: crate::types::LocationIdentifier) -> Self {
        self.location_identifier = ::std::option::Option::Some(input);
        self
    }
    /// Location identifier - either full code location or a pre-computed hash.
    pub fn set_location_identifier(mut self, input: ::std::option::Option<crate::types::LocationIdentifier>) -> Self {
        self.location_identifier = input;
        self
    }
    /// Location identifier - either full code location or a pre-computed hash.
    pub fn get_location_identifier(&self) -> &::std::option::Option<crate::types::LocationIdentifier> {
        &self.location_identifier
    }
    /// Consumes the builder and constructs a [`DeleteInstrumentationConfigurationInput`](crate::operation::delete_instrumentation_configuration::DeleteInstrumentationConfigurationInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::delete_instrumentation_configuration::DeleteInstrumentationConfigurationInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(
            crate::operation::delete_instrumentation_configuration::DeleteInstrumentationConfigurationInput {
                instrumentation_type: self.instrumentation_type,
                service: self.service,
                environment: self.environment,
                signal_type: self.signal_type,
                location_identifier: self.location_identifier,
            },
        )
    }
}