aws_sdk_connect/operation/update_queue_name/
_update_queue_name_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct UpdateQueueNameInput {
6 pub instance_id: ::std::option::Option<::std::string::String>,
8 pub queue_id: ::std::option::Option<::std::string::String>,
10 pub name: ::std::option::Option<::std::string::String>,
12 pub description: ::std::option::Option<::std::string::String>,
14}
15impl UpdateQueueNameInput {
16 pub fn instance_id(&self) -> ::std::option::Option<&str> {
18 self.instance_id.as_deref()
19 }
20 pub fn queue_id(&self) -> ::std::option::Option<&str> {
22 self.queue_id.as_deref()
23 }
24 pub fn name(&self) -> ::std::option::Option<&str> {
26 self.name.as_deref()
27 }
28 pub fn description(&self) -> ::std::option::Option<&str> {
30 self.description.as_deref()
31 }
32}
33impl UpdateQueueNameInput {
34 pub fn builder() -> crate::operation::update_queue_name::builders::UpdateQueueNameInputBuilder {
36 crate::operation::update_queue_name::builders::UpdateQueueNameInputBuilder::default()
37 }
38}
39
40#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
42#[non_exhaustive]
43pub struct UpdateQueueNameInputBuilder {
44 pub(crate) instance_id: ::std::option::Option<::std::string::String>,
45 pub(crate) queue_id: ::std::option::Option<::std::string::String>,
46 pub(crate) name: ::std::option::Option<::std::string::String>,
47 pub(crate) description: ::std::option::Option<::std::string::String>,
48}
49impl UpdateQueueNameInputBuilder {
50 pub fn instance_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
53 self.instance_id = ::std::option::Option::Some(input.into());
54 self
55 }
56 pub fn set_instance_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
58 self.instance_id = input;
59 self
60 }
61 pub fn get_instance_id(&self) -> &::std::option::Option<::std::string::String> {
63 &self.instance_id
64 }
65 pub fn queue_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
68 self.queue_id = ::std::option::Option::Some(input.into());
69 self
70 }
71 pub fn set_queue_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
73 self.queue_id = input;
74 self
75 }
76 pub fn get_queue_id(&self) -> &::std::option::Option<::std::string::String> {
78 &self.queue_id
79 }
80 pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
82 self.name = ::std::option::Option::Some(input.into());
83 self
84 }
85 pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
87 self.name = input;
88 self
89 }
90 pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
92 &self.name
93 }
94 pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
96 self.description = ::std::option::Option::Some(input.into());
97 self
98 }
99 pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
101 self.description = input;
102 self
103 }
104 pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
106 &self.description
107 }
108 pub fn build(
110 self,
111 ) -> ::std::result::Result<crate::operation::update_queue_name::UpdateQueueNameInput, ::aws_smithy_types::error::operation::BuildError> {
112 ::std::result::Result::Ok(crate::operation::update_queue_name::UpdateQueueNameInput {
113 instance_id: self.instance_id,
114 queue_id: self.queue_id,
115 name: self.name,
116 description: self.description,
117 })
118 }
119}