aws-sdk-medialive 1.78.0

AWS SDK for AWS Elemental MediaLive
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// Placeholder documentation for CreateSignalMapRequest
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateSignalMapInput {
    /// Placeholder documentation for __listOf__stringPatternS
    pub cloud_watch_alarm_template_group_identifiers: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    /// A resource's optional description.
    pub description: ::std::option::Option<::std::string::String>,
    /// A top-level supported AWS resource ARN to discovery a signal map from.
    pub discovery_entry_point_arn: ::std::option::Option<::std::string::String>,
    /// Placeholder documentation for __listOf__stringPatternS
    pub event_bridge_rule_template_group_identifiers: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    /// A resource's name. Names must be unique within the scope of a resource type in a specific region.
    pub name: ::std::option::Option<::std::string::String>,
    /// Represents the tags associated with a resource.
    pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
    /// An ID that you assign to a create request. This ID ensures idempotency when creating resources.
    pub request_id: ::std::option::Option<::std::string::String>,
}
impl CreateSignalMapInput {
    /// Placeholder documentation for __listOf__stringPatternS
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.cloud_watch_alarm_template_group_identifiers.is_none()`.
    pub fn cloud_watch_alarm_template_group_identifiers(&self) -> &[::std::string::String] {
        self.cloud_watch_alarm_template_group_identifiers.as_deref().unwrap_or_default()
    }
    /// A resource's optional description.
    pub fn description(&self) -> ::std::option::Option<&str> {
        self.description.as_deref()
    }
    /// A top-level supported AWS resource ARN to discovery a signal map from.
    pub fn discovery_entry_point_arn(&self) -> ::std::option::Option<&str> {
        self.discovery_entry_point_arn.as_deref()
    }
    /// Placeholder documentation for __listOf__stringPatternS
    ///
    /// 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_bridge_rule_template_group_identifiers.is_none()`.
    pub fn event_bridge_rule_template_group_identifiers(&self) -> &[::std::string::String] {
        self.event_bridge_rule_template_group_identifiers.as_deref().unwrap_or_default()
    }
    /// A resource's name. Names must be unique within the scope of a resource type in a specific region.
    pub fn name(&self) -> ::std::option::Option<&str> {
        self.name.as_deref()
    }
    /// Represents the tags associated with a resource.
    pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
        self.tags.as_ref()
    }
    /// An ID that you assign to a create request. This ID ensures idempotency when creating resources.
    pub fn request_id(&self) -> ::std::option::Option<&str> {
        self.request_id.as_deref()
    }
}
impl CreateSignalMapInput {
    /// Creates a new builder-style object to manufacture [`CreateSignalMapInput`](crate::operation::create_signal_map::CreateSignalMapInput).
    pub fn builder() -> crate::operation::create_signal_map::builders::CreateSignalMapInputBuilder {
        crate::operation::create_signal_map::builders::CreateSignalMapInputBuilder::default()
    }
}

/// A builder for [`CreateSignalMapInput`](crate::operation::create_signal_map::CreateSignalMapInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateSignalMapInputBuilder {
    pub(crate) cloud_watch_alarm_template_group_identifiers: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    pub(crate) description: ::std::option::Option<::std::string::String>,
    pub(crate) discovery_entry_point_arn: ::std::option::Option<::std::string::String>,
    pub(crate) event_bridge_rule_template_group_identifiers: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    pub(crate) name: ::std::option::Option<::std::string::String>,
    pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
    pub(crate) request_id: ::std::option::Option<::std::string::String>,
}
impl CreateSignalMapInputBuilder {
    /// Appends an item to `cloud_watch_alarm_template_group_identifiers`.
    ///
    /// To override the contents of this collection use [`set_cloud_watch_alarm_template_group_identifiers`](Self::set_cloud_watch_alarm_template_group_identifiers).
    ///
    /// Placeholder documentation for __listOf__stringPatternS
    pub fn cloud_watch_alarm_template_group_identifiers(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.cloud_watch_alarm_template_group_identifiers.unwrap_or_default();
        v.push(input.into());
        self.cloud_watch_alarm_template_group_identifiers = ::std::option::Option::Some(v);
        self
    }
    /// Placeholder documentation for __listOf__stringPatternS
    pub fn set_cloud_watch_alarm_template_group_identifiers(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.cloud_watch_alarm_template_group_identifiers = input;
        self
    }
    /// Placeholder documentation for __listOf__stringPatternS
    pub fn get_cloud_watch_alarm_template_group_identifiers(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.cloud_watch_alarm_template_group_identifiers
    }
    /// A resource's optional description.
    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.description = ::std::option::Option::Some(input.into());
        self
    }
    /// A resource's optional description.
    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.description = input;
        self
    }
    /// A resource's optional description.
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
        &self.description
    }
    /// A top-level supported AWS resource ARN to discovery a signal map from.
    /// This field is required.
    pub fn discovery_entry_point_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.discovery_entry_point_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// A top-level supported AWS resource ARN to discovery a signal map from.
    pub fn set_discovery_entry_point_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.discovery_entry_point_arn = input;
        self
    }
    /// A top-level supported AWS resource ARN to discovery a signal map from.
    pub fn get_discovery_entry_point_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.discovery_entry_point_arn
    }
    /// Appends an item to `event_bridge_rule_template_group_identifiers`.
    ///
    /// To override the contents of this collection use [`set_event_bridge_rule_template_group_identifiers`](Self::set_event_bridge_rule_template_group_identifiers).
    ///
    /// Placeholder documentation for __listOf__stringPatternS
    pub fn event_bridge_rule_template_group_identifiers(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.event_bridge_rule_template_group_identifiers.unwrap_or_default();
        v.push(input.into());
        self.event_bridge_rule_template_group_identifiers = ::std::option::Option::Some(v);
        self
    }
    /// Placeholder documentation for __listOf__stringPatternS
    pub fn set_event_bridge_rule_template_group_identifiers(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.event_bridge_rule_template_group_identifiers = input;
        self
    }
    /// Placeholder documentation for __listOf__stringPatternS
    pub fn get_event_bridge_rule_template_group_identifiers(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.event_bridge_rule_template_group_identifiers
    }
    /// A resource's name. Names must be unique within the scope of a resource type in a specific region.
    /// This field is required.
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.name = ::std::option::Option::Some(input.into());
        self
    }
    /// A resource's name. Names must be unique within the scope of a resource type in a specific region.
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.name = input;
        self
    }
    /// A resource's name. Names must be unique within the scope of a resource type in a specific region.
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.name
    }
    /// Adds a key-value pair to `tags`.
    ///
    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
    ///
    /// Represents the tags associated with a resource.
    pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut hash_map = self.tags.unwrap_or_default();
        hash_map.insert(k.into(), v.into());
        self.tags = ::std::option::Option::Some(hash_map);
        self
    }
    /// Represents the tags associated with a resource.
    pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
        self.tags = input;
        self
    }
    /// Represents the tags associated with a resource.
    pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
        &self.tags
    }
    /// An ID that you assign to a create request. This ID ensures idempotency when creating resources.
    pub fn request_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.request_id = ::std::option::Option::Some(input.into());
        self
    }
    /// An ID that you assign to a create request. This ID ensures idempotency when creating resources.
    pub fn set_request_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.request_id = input;
        self
    }
    /// An ID that you assign to a create request. This ID ensures idempotency when creating resources.
    pub fn get_request_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.request_id
    }
    /// Consumes the builder and constructs a [`CreateSignalMapInput`](crate::operation::create_signal_map::CreateSignalMapInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::create_signal_map::CreateSignalMapInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::create_signal_map::CreateSignalMapInput {
            cloud_watch_alarm_template_group_identifiers: self.cloud_watch_alarm_template_group_identifiers,
            description: self.description,
            discovery_entry_point_arn: self.discovery_entry_point_arn,
            event_bridge_rule_template_group_identifiers: self.event_bridge_rule_template_group_identifiers,
            name: self.name,
            tags: self.tags,
            request_id: self.request_id,
        })
    }
}