aws_sdk_devicefarm/operation/get_suite/
_get_suite_output.rs#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetSuiteOutput {
pub suite: ::std::option::Option<crate::types::Suite>,
_request_id: Option<String>,
}
impl GetSuiteOutput {
pub fn suite(&self) -> ::std::option::Option<&crate::types::Suite> {
self.suite.as_ref()
}
}
impl ::aws_types::request_id::RequestId for GetSuiteOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetSuiteOutput {
pub fn builder() -> crate::operation::get_suite::builders::GetSuiteOutputBuilder {
crate::operation::get_suite::builders::GetSuiteOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetSuiteOutputBuilder {
pub(crate) suite: ::std::option::Option<crate::types::Suite>,
_request_id: Option<String>,
}
impl GetSuiteOutputBuilder {
pub fn suite(mut self, input: crate::types::Suite) -> Self {
self.suite = ::std::option::Option::Some(input);
self
}
pub fn set_suite(mut self, input: ::std::option::Option<crate::types::Suite>) -> Self {
self.suite = input;
self
}
pub fn get_suite(&self) -> &::std::option::Option<crate::types::Suite> {
&self.suite
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::get_suite::GetSuiteOutput {
crate::operation::get_suite::GetSuiteOutput {
suite: self.suite,
_request_id: self._request_id,
}
}
}