1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Provides information about a request to create a message template.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateTemplateMessageBody {
    /// <p>The Amazon Resource Name (ARN) of the message template that was created.</p>
    pub arn: ::std::option::Option<::std::string::String>,
    /// <p>The message that's returned from the API for the request to create the message template.</p>
    pub message: ::std::option::Option<::std::string::String>,
    /// <p>The unique identifier for the request to create the message template.</p>
    pub request_id: ::std::option::Option<::std::string::String>,
}
impl CreateTemplateMessageBody {
    /// <p>The Amazon Resource Name (ARN) of the message template that was created.</p>
    pub fn arn(&self) -> ::std::option::Option<&str> {
        self.arn.as_deref()
    }
    /// <p>The message that's returned from the API for the request to create the message template.</p>
    pub fn message(&self) -> ::std::option::Option<&str> {
        self.message.as_deref()
    }
    /// <p>The unique identifier for the request to create the message template.</p>
    pub fn request_id(&self) -> ::std::option::Option<&str> {
        self.request_id.as_deref()
    }
}
impl CreateTemplateMessageBody {
    /// Creates a new builder-style object to manufacture [`CreateTemplateMessageBody`](crate::types::CreateTemplateMessageBody).
    pub fn builder() -> crate::types::builders::CreateTemplateMessageBodyBuilder {
        crate::types::builders::CreateTemplateMessageBodyBuilder::default()
    }
}

/// A builder for [`CreateTemplateMessageBody`](crate::types::CreateTemplateMessageBody).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct CreateTemplateMessageBodyBuilder {
    pub(crate) arn: ::std::option::Option<::std::string::String>,
    pub(crate) message: ::std::option::Option<::std::string::String>,
    pub(crate) request_id: ::std::option::Option<::std::string::String>,
}
impl CreateTemplateMessageBodyBuilder {
    /// <p>The Amazon Resource Name (ARN) of the message template that was created.</p>
    pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the message template that was created.</p>
    pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the message template that was created.</p>
    pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.arn
    }
    /// <p>The message that's returned from the API for the request to create the message template.</p>
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.message = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The message that's returned from the API for the request to create the message template.</p>
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.message = input;
        self
    }
    /// <p>The message that's returned from the API for the request to create the message template.</p>
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
        &self.message
    }
    /// <p>The unique identifier for the request to create the message template.</p>
    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
    }
    /// <p>The unique identifier for the request to create the message template.</p>
    pub fn set_request_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.request_id = input;
        self
    }
    /// <p>The unique identifier for the request to create the message template.</p>
    pub fn get_request_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.request_id
    }
    /// Consumes the builder and constructs a [`CreateTemplateMessageBody`](crate::types::CreateTemplateMessageBody).
    pub fn build(self) -> crate::types::CreateTemplateMessageBody {
        crate::types::CreateTemplateMessageBody {
            arn: self.arn,
            message: self.message,
            request_id: self.request_id,
        }
    }
}