aws_sdk_detective/operation/get_investigation/
_get_investigation_output.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct GetInvestigationOutput {
6 pub graph_arn: ::std::option::Option<::std::string::String>,
8 pub investigation_id: ::std::option::Option<::std::string::String>,
10 pub entity_arn: ::std::option::Option<::std::string::String>,
12 pub entity_type: ::std::option::Option<crate::types::EntityType>,
14 pub created_time: ::std::option::Option<::aws_smithy_types::DateTime>,
16 pub scope_start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
18 pub scope_end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
20 pub status: ::std::option::Option<crate::types::Status>,
22 pub severity: ::std::option::Option<crate::types::Severity>,
24 pub state: ::std::option::Option<crate::types::State>,
26 _request_id: Option<String>,
27}
28impl GetInvestigationOutput {
29 pub fn graph_arn(&self) -> ::std::option::Option<&str> {
31 self.graph_arn.as_deref()
32 }
33 pub fn investigation_id(&self) -> ::std::option::Option<&str> {
35 self.investigation_id.as_deref()
36 }
37 pub fn entity_arn(&self) -> ::std::option::Option<&str> {
39 self.entity_arn.as_deref()
40 }
41 pub fn entity_type(&self) -> ::std::option::Option<&crate::types::EntityType> {
43 self.entity_type.as_ref()
44 }
45 pub fn created_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
47 self.created_time.as_ref()
48 }
49 pub fn scope_start_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
51 self.scope_start_time.as_ref()
52 }
53 pub fn scope_end_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
55 self.scope_end_time.as_ref()
56 }
57 pub fn status(&self) -> ::std::option::Option<&crate::types::Status> {
59 self.status.as_ref()
60 }
61 pub fn severity(&self) -> ::std::option::Option<&crate::types::Severity> {
63 self.severity.as_ref()
64 }
65 pub fn state(&self) -> ::std::option::Option<&crate::types::State> {
67 self.state.as_ref()
68 }
69}
70impl ::aws_types::request_id::RequestId for GetInvestigationOutput {
71 fn request_id(&self) -> Option<&str> {
72 self._request_id.as_deref()
73 }
74}
75impl GetInvestigationOutput {
76 pub fn builder() -> crate::operation::get_investigation::builders::GetInvestigationOutputBuilder {
78 crate::operation::get_investigation::builders::GetInvestigationOutputBuilder::default()
79 }
80}
81
82#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
84#[non_exhaustive]
85pub struct GetInvestigationOutputBuilder {
86 pub(crate) graph_arn: ::std::option::Option<::std::string::String>,
87 pub(crate) investigation_id: ::std::option::Option<::std::string::String>,
88 pub(crate) entity_arn: ::std::option::Option<::std::string::String>,
89 pub(crate) entity_type: ::std::option::Option<crate::types::EntityType>,
90 pub(crate) created_time: ::std::option::Option<::aws_smithy_types::DateTime>,
91 pub(crate) scope_start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
92 pub(crate) scope_end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
93 pub(crate) status: ::std::option::Option<crate::types::Status>,
94 pub(crate) severity: ::std::option::Option<crate::types::Severity>,
95 pub(crate) state: ::std::option::Option<crate::types::State>,
96 _request_id: Option<String>,
97}
98impl GetInvestigationOutputBuilder {
99 pub fn graph_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
101 self.graph_arn = ::std::option::Option::Some(input.into());
102 self
103 }
104 pub fn set_graph_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
106 self.graph_arn = input;
107 self
108 }
109 pub fn get_graph_arn(&self) -> &::std::option::Option<::std::string::String> {
111 &self.graph_arn
112 }
113 pub fn investigation_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
115 self.investigation_id = ::std::option::Option::Some(input.into());
116 self
117 }
118 pub fn set_investigation_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
120 self.investigation_id = input;
121 self
122 }
123 pub fn get_investigation_id(&self) -> &::std::option::Option<::std::string::String> {
125 &self.investigation_id
126 }
127 pub fn entity_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
129 self.entity_arn = ::std::option::Option::Some(input.into());
130 self
131 }
132 pub fn set_entity_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
134 self.entity_arn = input;
135 self
136 }
137 pub fn get_entity_arn(&self) -> &::std::option::Option<::std::string::String> {
139 &self.entity_arn
140 }
141 pub fn entity_type(mut self, input: crate::types::EntityType) -> Self {
143 self.entity_type = ::std::option::Option::Some(input);
144 self
145 }
146 pub fn set_entity_type(mut self, input: ::std::option::Option<crate::types::EntityType>) -> Self {
148 self.entity_type = input;
149 self
150 }
151 pub fn get_entity_type(&self) -> &::std::option::Option<crate::types::EntityType> {
153 &self.entity_type
154 }
155 pub fn created_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
157 self.created_time = ::std::option::Option::Some(input);
158 self
159 }
160 pub fn set_created_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
162 self.created_time = input;
163 self
164 }
165 pub fn get_created_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
167 &self.created_time
168 }
169 pub fn scope_start_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
171 self.scope_start_time = ::std::option::Option::Some(input);
172 self
173 }
174 pub fn set_scope_start_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
176 self.scope_start_time = input;
177 self
178 }
179 pub fn get_scope_start_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
181 &self.scope_start_time
182 }
183 pub fn scope_end_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
185 self.scope_end_time = ::std::option::Option::Some(input);
186 self
187 }
188 pub fn set_scope_end_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
190 self.scope_end_time = input;
191 self
192 }
193 pub fn get_scope_end_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
195 &self.scope_end_time
196 }
197 pub fn status(mut self, input: crate::types::Status) -> Self {
199 self.status = ::std::option::Option::Some(input);
200 self
201 }
202 pub fn set_status(mut self, input: ::std::option::Option<crate::types::Status>) -> Self {
204 self.status = input;
205 self
206 }
207 pub fn get_status(&self) -> &::std::option::Option<crate::types::Status> {
209 &self.status
210 }
211 pub fn severity(mut self, input: crate::types::Severity) -> Self {
213 self.severity = ::std::option::Option::Some(input);
214 self
215 }
216 pub fn set_severity(mut self, input: ::std::option::Option<crate::types::Severity>) -> Self {
218 self.severity = input;
219 self
220 }
221 pub fn get_severity(&self) -> &::std::option::Option<crate::types::Severity> {
223 &self.severity
224 }
225 pub fn state(mut self, input: crate::types::State) -> Self {
227 self.state = ::std::option::Option::Some(input);
228 self
229 }
230 pub fn set_state(mut self, input: ::std::option::Option<crate::types::State>) -> Self {
232 self.state = input;
233 self
234 }
235 pub fn get_state(&self) -> &::std::option::Option<crate::types::State> {
237 &self.state
238 }
239 pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
240 self._request_id = Some(request_id.into());
241 self
242 }
243
244 pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
245 self._request_id = request_id;
246 self
247 }
248 pub fn build(self) -> crate::operation::get_investigation::GetInvestigationOutput {
250 crate::operation::get_investigation::GetInvestigationOutput {
251 graph_arn: self.graph_arn,
252 investigation_id: self.investigation_id,
253 entity_arn: self.entity_arn,
254 entity_type: self.entity_type,
255 created_time: self.created_time,
256 scope_start_time: self.scope_start_time,
257 scope_end_time: self.scope_end_time,
258 status: self.status,
259 severity: self.severity,
260 state: self.state,
261 _request_id: self._request_id,
262 }
263 }
264}