aws_db_esdk/operation/resolve_attributes/
_resolve_attributes_output.rs1#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6#[allow(missing_docs)]
7pub struct ResolveAttributesOutput {
8 pub compound_beacons: ::std::option::Option<
10 ::std::collections::HashMap<::std::string::String, ::std::string::String>,
11 >,
12 pub virtual_fields: ::std::option::Option<
14 ::std::collections::HashMap<::std::string::String, ::std::string::String>,
15 >,
16}
17impl ResolveAttributesOutput {
18 pub fn compound_beacons(
20 &self,
21 ) -> &::std::option::Option<
22 ::std::collections::HashMap<::std::string::String, ::std::string::String>,
23 > {
24 &self.compound_beacons
25 }
26 pub fn virtual_fields(
28 &self,
29 ) -> &::std::option::Option<
30 ::std::collections::HashMap<::std::string::String, ::std::string::String>,
31 > {
32 &self.virtual_fields
33 }
34}
35impl ResolveAttributesOutput {
36 pub fn builder(
38 ) -> crate::operation::resolve_attributes::builders::ResolveAttributesOutputBuilder {
39 crate::operation::resolve_attributes::builders::ResolveAttributesOutputBuilder::default()
40 }
41}
42
43#[non_exhaustive]
45#[derive(
46 ::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug,
47)]
48pub struct ResolveAttributesOutputBuilder {
49 pub(crate) compound_beacons: ::std::option::Option<
50 ::std::collections::HashMap<::std::string::String, ::std::string::String>,
51 >,
52 pub(crate) virtual_fields: ::std::option::Option<
53 ::std::collections::HashMap<::std::string::String, ::std::string::String>,
54 >,
55}
56impl ResolveAttributesOutputBuilder {
57 pub fn compound_beacons(
59 mut self,
60 input: impl ::std::convert::Into<
61 ::std::collections::HashMap<::std::string::String, ::std::string::String>,
62 >,
63 ) -> Self {
64 self.compound_beacons = ::std::option::Option::Some(input.into());
65 self
66 }
67 pub fn set_compound_beacons(
69 mut self,
70 input: ::std::option::Option<
71 ::std::collections::HashMap<::std::string::String, ::std::string::String>,
72 >,
73 ) -> Self {
74 self.compound_beacons = input;
75 self
76 }
77 pub fn get_compound_beacons(
79 &self,
80 ) -> &::std::option::Option<
81 ::std::collections::HashMap<::std::string::String, ::std::string::String>,
82 > {
83 &self.compound_beacons
84 }
85 pub fn virtual_fields(
87 mut self,
88 input: impl ::std::convert::Into<
89 ::std::collections::HashMap<::std::string::String, ::std::string::String>,
90 >,
91 ) -> Self {
92 self.virtual_fields = ::std::option::Option::Some(input.into());
93 self
94 }
95 pub fn set_virtual_fields(
97 mut self,
98 input: ::std::option::Option<
99 ::std::collections::HashMap<::std::string::String, ::std::string::String>,
100 >,
101 ) -> Self {
102 self.virtual_fields = input;
103 self
104 }
105 pub fn get_virtual_fields(
107 &self,
108 ) -> &::std::option::Option<
109 ::std::collections::HashMap<::std::string::String, ::std::string::String>,
110 > {
111 &self.virtual_fields
112 }
113 pub fn build(
115 self,
116 ) -> ::std::result::Result<
117 crate::operation::resolve_attributes::ResolveAttributesOutput,
118 ::aws_smithy_types::error::operation::BuildError,
119 > {
120 ::std::result::Result::Ok(
121 crate::operation::resolve_attributes::ResolveAttributesOutput {
122 compound_beacons: self.compound_beacons,
123 virtual_fields: self.virtual_fields,
124 },
125 )
126 }
127}