aws_sdk_devicefarm/operation/get_suite/
_get_suite_output.rs1#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct GetSuiteOutput {
7 pub suite: ::std::option::Option<crate::types::Suite>,
9 _request_id: Option<String>,
10}
11impl GetSuiteOutput {
12 pub fn suite(&self) -> ::std::option::Option<&crate::types::Suite> {
14 self.suite.as_ref()
15 }
16}
17impl ::aws_types::request_id::RequestId for GetSuiteOutput {
18 fn request_id(&self) -> Option<&str> {
19 self._request_id.as_deref()
20 }
21}
22impl GetSuiteOutput {
23 pub fn builder() -> crate::operation::get_suite::builders::GetSuiteOutputBuilder {
25 crate::operation::get_suite::builders::GetSuiteOutputBuilder::default()
26 }
27}
28
29#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
31#[non_exhaustive]
32pub struct GetSuiteOutputBuilder {
33 pub(crate) suite: ::std::option::Option<crate::types::Suite>,
34 _request_id: Option<String>,
35}
36impl GetSuiteOutputBuilder {
37 pub fn suite(mut self, input: crate::types::Suite) -> Self {
39 self.suite = ::std::option::Option::Some(input);
40 self
41 }
42 pub fn set_suite(mut self, input: ::std::option::Option<crate::types::Suite>) -> Self {
44 self.suite = input;
45 self
46 }
47 pub fn get_suite(&self) -> &::std::option::Option<crate::types::Suite> {
49 &self.suite
50 }
51 pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
52 self._request_id = Some(request_id.into());
53 self
54 }
55
56 pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
57 self._request_id = request_id;
58 self
59 }
60 pub fn build(self) -> crate::operation::get_suite::GetSuiteOutput {
62 crate::operation::get_suite::GetSuiteOutput {
63 suite: self.suite,
64 _request_id: self._request_id,
65 }
66 }
67}