aws_sdk_dax/types/
_node_type_specific_value.rs1#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct NodeTypeSpecificValue {
7 pub node_type: ::std::option::Option<::std::string::String>,
9 pub value: ::std::option::Option<::std::string::String>,
11}
12impl NodeTypeSpecificValue {
13 pub fn node_type(&self) -> ::std::option::Option<&str> {
15 self.node_type.as_deref()
16 }
17 pub fn value(&self) -> ::std::option::Option<&str> {
19 self.value.as_deref()
20 }
21}
22impl NodeTypeSpecificValue {
23 pub fn builder() -> crate::types::builders::NodeTypeSpecificValueBuilder {
25 crate::types::builders::NodeTypeSpecificValueBuilder::default()
26 }
27}
28
29#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
31#[non_exhaustive]
32pub struct NodeTypeSpecificValueBuilder {
33 pub(crate) node_type: ::std::option::Option<::std::string::String>,
34 pub(crate) value: ::std::option::Option<::std::string::String>,
35}
36impl NodeTypeSpecificValueBuilder {
37 pub fn node_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
39 self.node_type = ::std::option::Option::Some(input.into());
40 self
41 }
42 pub fn set_node_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
44 self.node_type = input;
45 self
46 }
47 pub fn get_node_type(&self) -> &::std::option::Option<::std::string::String> {
49 &self.node_type
50 }
51 pub fn value(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
53 self.value = ::std::option::Option::Some(input.into());
54 self
55 }
56 pub fn set_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
58 self.value = input;
59 self
60 }
61 pub fn get_value(&self) -> &::std::option::Option<::std::string::String> {
63 &self.value
64 }
65 pub fn build(self) -> crate::types::NodeTypeSpecificValue {
67 crate::types::NodeTypeSpecificValue {
68 node_type: self.node_type,
69 value: self.value,
70 }
71 }
72}