aws_sdk_connect/operation/update_prompt/
_update_prompt_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct UpdatePromptInput {
6    /// <p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>
7    pub instance_id: ::std::option::Option<::std::string::String>,
8    /// <p>A unique identifier for the prompt.</p>
9    pub prompt_id: ::std::option::Option<::std::string::String>,
10    /// <p>The name of the prompt.</p>
11    pub name: ::std::option::Option<::std::string::String>,
12    /// <p>A description of the prompt.</p>
13    pub description: ::std::option::Option<::std::string::String>,
14    /// <p>The URI for the S3 bucket where the prompt is stored. You can provide S3 pre-signed URLs returned by the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_GetPromptFile.html">GetPromptFile</a> API instead of providing S3 URIs.</p>
15    pub s3_uri: ::std::option::Option<::std::string::String>,
16}
17impl UpdatePromptInput {
18    /// <p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>
19    pub fn instance_id(&self) -> ::std::option::Option<&str> {
20        self.instance_id.as_deref()
21    }
22    /// <p>A unique identifier for the prompt.</p>
23    pub fn prompt_id(&self) -> ::std::option::Option<&str> {
24        self.prompt_id.as_deref()
25    }
26    /// <p>The name of the prompt.</p>
27    pub fn name(&self) -> ::std::option::Option<&str> {
28        self.name.as_deref()
29    }
30    /// <p>A description of the prompt.</p>
31    pub fn description(&self) -> ::std::option::Option<&str> {
32        self.description.as_deref()
33    }
34    /// <p>The URI for the S3 bucket where the prompt is stored. You can provide S3 pre-signed URLs returned by the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_GetPromptFile.html">GetPromptFile</a> API instead of providing S3 URIs.</p>
35    pub fn s3_uri(&self) -> ::std::option::Option<&str> {
36        self.s3_uri.as_deref()
37    }
38}
39impl UpdatePromptInput {
40    /// Creates a new builder-style object to manufacture [`UpdatePromptInput`](crate::operation::update_prompt::UpdatePromptInput).
41    pub fn builder() -> crate::operation::update_prompt::builders::UpdatePromptInputBuilder {
42        crate::operation::update_prompt::builders::UpdatePromptInputBuilder::default()
43    }
44}
45
46/// A builder for [`UpdatePromptInput`](crate::operation::update_prompt::UpdatePromptInput).
47#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
48#[non_exhaustive]
49pub struct UpdatePromptInputBuilder {
50    pub(crate) instance_id: ::std::option::Option<::std::string::String>,
51    pub(crate) prompt_id: ::std::option::Option<::std::string::String>,
52    pub(crate) name: ::std::option::Option<::std::string::String>,
53    pub(crate) description: ::std::option::Option<::std::string::String>,
54    pub(crate) s3_uri: ::std::option::Option<::std::string::String>,
55}
56impl UpdatePromptInputBuilder {
57    /// <p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>
58    /// This field is required.
59    pub fn instance_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
60        self.instance_id = ::std::option::Option::Some(input.into());
61        self
62    }
63    /// <p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>
64    pub fn set_instance_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
65        self.instance_id = input;
66        self
67    }
68    /// <p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>
69    pub fn get_instance_id(&self) -> &::std::option::Option<::std::string::String> {
70        &self.instance_id
71    }
72    /// <p>A unique identifier for the prompt.</p>
73    /// This field is required.
74    pub fn prompt_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
75        self.prompt_id = ::std::option::Option::Some(input.into());
76        self
77    }
78    /// <p>A unique identifier for the prompt.</p>
79    pub fn set_prompt_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
80        self.prompt_id = input;
81        self
82    }
83    /// <p>A unique identifier for the prompt.</p>
84    pub fn get_prompt_id(&self) -> &::std::option::Option<::std::string::String> {
85        &self.prompt_id
86    }
87    /// <p>The name of the prompt.</p>
88    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
89        self.name = ::std::option::Option::Some(input.into());
90        self
91    }
92    /// <p>The name of the prompt.</p>
93    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
94        self.name = input;
95        self
96    }
97    /// <p>The name of the prompt.</p>
98    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
99        &self.name
100    }
101    /// <p>A description of the prompt.</p>
102    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
103        self.description = ::std::option::Option::Some(input.into());
104        self
105    }
106    /// <p>A description of the prompt.</p>
107    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
108        self.description = input;
109        self
110    }
111    /// <p>A description of the prompt.</p>
112    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
113        &self.description
114    }
115    /// <p>The URI for the S3 bucket where the prompt is stored. You can provide S3 pre-signed URLs returned by the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_GetPromptFile.html">GetPromptFile</a> API instead of providing S3 URIs.</p>
116    pub fn s3_uri(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
117        self.s3_uri = ::std::option::Option::Some(input.into());
118        self
119    }
120    /// <p>The URI for the S3 bucket where the prompt is stored. You can provide S3 pre-signed URLs returned by the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_GetPromptFile.html">GetPromptFile</a> API instead of providing S3 URIs.</p>
121    pub fn set_s3_uri(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
122        self.s3_uri = input;
123        self
124    }
125    /// <p>The URI for the S3 bucket where the prompt is stored. You can provide S3 pre-signed URLs returned by the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_GetPromptFile.html">GetPromptFile</a> API instead of providing S3 URIs.</p>
126    pub fn get_s3_uri(&self) -> &::std::option::Option<::std::string::String> {
127        &self.s3_uri
128    }
129    /// Consumes the builder and constructs a [`UpdatePromptInput`](crate::operation::update_prompt::UpdatePromptInput).
130    pub fn build(
131        self,
132    ) -> ::std::result::Result<crate::operation::update_prompt::UpdatePromptInput, ::aws_smithy_types::error::operation::BuildError> {
133        ::std::result::Result::Ok(crate::operation::update_prompt::UpdatePromptInput {
134            instance_id: self.instance_id,
135            prompt_id: self.prompt_id,
136            name: self.name,
137            description: self.description,
138            s3_uri: self.s3_uri,
139        })
140    }
141}