aws_sdk_devicefarm/operation/update_project/
_update_project_output.rs#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateProjectOutput {
pub project: ::std::option::Option<crate::types::Project>,
_request_id: Option<String>,
}
impl UpdateProjectOutput {
pub fn project(&self) -> ::std::option::Option<&crate::types::Project> {
self.project.as_ref()
}
}
impl ::aws_types::request_id::RequestId for UpdateProjectOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl UpdateProjectOutput {
pub fn builder() -> crate::operation::update_project::builders::UpdateProjectOutputBuilder {
crate::operation::update_project::builders::UpdateProjectOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateProjectOutputBuilder {
pub(crate) project: ::std::option::Option<crate::types::Project>,
_request_id: Option<String>,
}
impl UpdateProjectOutputBuilder {
pub fn project(mut self, input: crate::types::Project) -> Self {
self.project = ::std::option::Option::Some(input);
self
}
pub fn set_project(mut self, input: ::std::option::Option<crate::types::Project>) -> Self {
self.project = input;
self
}
pub fn get_project(&self) -> &::std::option::Option<crate::types::Project> {
&self.project
}
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::update_project::UpdateProjectOutput {
crate::operation::update_project::UpdateProjectOutput {
project: self.project,
_request_id: self._request_id,
}
}
}