aws-sdk-pinpointsmsvoicev2 1.124.0

AWS SDK for Amazon Pinpoint SMS Voice V2
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 DeleteConfigurationSetOutput {
    /// <p>The Amazon Resource Name (ARN) of the deleted configuration set.</p>
    pub configuration_set_arn: ::std::option::Option<::std::string::String>,
    /// <p>The name of the deleted configuration set.</p>
    pub configuration_set_name: ::std::option::Option<::std::string::String>,
    /// <p>An array of any EventDestination objects that were associated with the deleted configuration set.</p>
    pub event_destinations: ::std::option::Option<::std::vec::Vec<crate::types::EventDestination>>,
    /// <p>The default message type of the configuration set that was deleted.</p>
    pub default_message_type: ::std::option::Option<crate::types::MessageType>,
    /// <p>The default Sender ID of the configuration set that was deleted.</p>
    pub default_sender_id: ::std::option::Option<::std::string::String>,
    /// <p>True if the configuration set has message feedback enabled. By default this is set to false.</p>
    pub default_message_feedback_enabled: ::std::option::Option<bool>,
    /// <p>The time that the deleted configuration set was created in <a href="https://www.epochconverter.com/">UNIX epoch time</a> format.</p>
    pub created_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
    _request_id: Option<String>,
}
impl DeleteConfigurationSetOutput {
    /// <p>The Amazon Resource Name (ARN) of the deleted configuration set.</p>
    pub fn configuration_set_arn(&self) -> ::std::option::Option<&str> {
        self.configuration_set_arn.as_deref()
    }
    /// <p>The name of the deleted configuration set.</p>
    pub fn configuration_set_name(&self) -> ::std::option::Option<&str> {
        self.configuration_set_name.as_deref()
    }
    /// <p>An array of any EventDestination objects that were associated with the deleted configuration set.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.event_destinations.is_none()`.
    pub fn event_destinations(&self) -> &[crate::types::EventDestination] {
        self.event_destinations.as_deref().unwrap_or_default()
    }
    /// <p>The default message type of the configuration set that was deleted.</p>
    pub fn default_message_type(&self) -> ::std::option::Option<&crate::types::MessageType> {
        self.default_message_type.as_ref()
    }
    /// <p>The default Sender ID of the configuration set that was deleted.</p>
    pub fn default_sender_id(&self) -> ::std::option::Option<&str> {
        self.default_sender_id.as_deref()
    }
    /// <p>True if the configuration set has message feedback enabled. By default this is set to false.</p>
    pub fn default_message_feedback_enabled(&self) -> ::std::option::Option<bool> {
        self.default_message_feedback_enabled
    }
    /// <p>The time that the deleted configuration set was created in <a href="https://www.epochconverter.com/">UNIX epoch time</a> format.</p>
    pub fn created_timestamp(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.created_timestamp.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for DeleteConfigurationSetOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl DeleteConfigurationSetOutput {
    /// Creates a new builder-style object to manufacture [`DeleteConfigurationSetOutput`](crate::operation::delete_configuration_set::DeleteConfigurationSetOutput).
    pub fn builder() -> crate::operation::delete_configuration_set::builders::DeleteConfigurationSetOutputBuilder {
        crate::operation::delete_configuration_set::builders::DeleteConfigurationSetOutputBuilder::default()
    }
}

/// A builder for [`DeleteConfigurationSetOutput`](crate::operation::delete_configuration_set::DeleteConfigurationSetOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteConfigurationSetOutputBuilder {
    pub(crate) configuration_set_arn: ::std::option::Option<::std::string::String>,
    pub(crate) configuration_set_name: ::std::option::Option<::std::string::String>,
    pub(crate) event_destinations: ::std::option::Option<::std::vec::Vec<crate::types::EventDestination>>,
    pub(crate) default_message_type: ::std::option::Option<crate::types::MessageType>,
    pub(crate) default_sender_id: ::std::option::Option<::std::string::String>,
    pub(crate) default_message_feedback_enabled: ::std::option::Option<bool>,
    pub(crate) created_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
    _request_id: Option<String>,
}
impl DeleteConfigurationSetOutputBuilder {
    /// <p>The Amazon Resource Name (ARN) of the deleted configuration set.</p>
    pub fn configuration_set_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.configuration_set_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the deleted configuration set.</p>
    pub fn set_configuration_set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.configuration_set_arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the deleted configuration set.</p>
    pub fn get_configuration_set_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.configuration_set_arn
    }
    /// <p>The name of the deleted configuration set.</p>
    pub fn configuration_set_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.configuration_set_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the deleted configuration set.</p>
    pub fn set_configuration_set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.configuration_set_name = input;
        self
    }
    /// <p>The name of the deleted configuration set.</p>
    pub fn get_configuration_set_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.configuration_set_name
    }
    /// Appends an item to `event_destinations`.
    ///
    /// To override the contents of this collection use [`set_event_destinations`](Self::set_event_destinations).
    ///
    /// <p>An array of any EventDestination objects that were associated with the deleted configuration set.</p>
    pub fn event_destinations(mut self, input: crate::types::EventDestination) -> Self {
        let mut v = self.event_destinations.unwrap_or_default();
        v.push(input);
        self.event_destinations = ::std::option::Option::Some(v);
        self
    }
    /// <p>An array of any EventDestination objects that were associated with the deleted configuration set.</p>
    pub fn set_event_destinations(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::EventDestination>>) -> Self {
        self.event_destinations = input;
        self
    }
    /// <p>An array of any EventDestination objects that were associated with the deleted configuration set.</p>
    pub fn get_event_destinations(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::EventDestination>> {
        &self.event_destinations
    }
    /// <p>The default message type of the configuration set that was deleted.</p>
    pub fn default_message_type(mut self, input: crate::types::MessageType) -> Self {
        self.default_message_type = ::std::option::Option::Some(input);
        self
    }
    /// <p>The default message type of the configuration set that was deleted.</p>
    pub fn set_default_message_type(mut self, input: ::std::option::Option<crate::types::MessageType>) -> Self {
        self.default_message_type = input;
        self
    }
    /// <p>The default message type of the configuration set that was deleted.</p>
    pub fn get_default_message_type(&self) -> &::std::option::Option<crate::types::MessageType> {
        &self.default_message_type
    }
    /// <p>The default Sender ID of the configuration set that was deleted.</p>
    pub fn default_sender_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.default_sender_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The default Sender ID of the configuration set that was deleted.</p>
    pub fn set_default_sender_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.default_sender_id = input;
        self
    }
    /// <p>The default Sender ID of the configuration set that was deleted.</p>
    pub fn get_default_sender_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.default_sender_id
    }
    /// <p>True if the configuration set has message feedback enabled. By default this is set to false.</p>
    pub fn default_message_feedback_enabled(mut self, input: bool) -> Self {
        self.default_message_feedback_enabled = ::std::option::Option::Some(input);
        self
    }
    /// <p>True if the configuration set has message feedback enabled. By default this is set to false.</p>
    pub fn set_default_message_feedback_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
        self.default_message_feedback_enabled = input;
        self
    }
    /// <p>True if the configuration set has message feedback enabled. By default this is set to false.</p>
    pub fn get_default_message_feedback_enabled(&self) -> &::std::option::Option<bool> {
        &self.default_message_feedback_enabled
    }
    /// <p>The time that the deleted configuration set was created in <a href="https://www.epochconverter.com/">UNIX epoch time</a> format.</p>
    pub fn created_timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.created_timestamp = ::std::option::Option::Some(input);
        self
    }
    /// <p>The time that the deleted configuration set was created in <a href="https://www.epochconverter.com/">UNIX epoch time</a> format.</p>
    pub fn set_created_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.created_timestamp = input;
        self
    }
    /// <p>The time that the deleted configuration set was created in <a href="https://www.epochconverter.com/">UNIX epoch time</a> format.</p>
    pub fn get_created_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.created_timestamp
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`DeleteConfigurationSetOutput`](crate::operation::delete_configuration_set::DeleteConfigurationSetOutput).
    pub fn build(self) -> crate::operation::delete_configuration_set::DeleteConfigurationSetOutput {
        crate::operation::delete_configuration_set::DeleteConfigurationSetOutput {
            configuration_set_arn: self.configuration_set_arn,
            configuration_set_name: self.configuration_set_name,
            event_destinations: self.event_destinations,
            default_message_type: self.default_message_type,
            default_sender_id: self.default_sender_id,
            default_message_feedback_enabled: self.default_message_feedback_enabled,
            created_timestamp: self.created_timestamp,
            _request_id: self._request_id,
        }
    }
}