aws_sdk_codedeploy/operation/get_deployment/
_get_deployment_output.rs1#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct GetDeploymentOutput {
7 pub deployment_info: ::std::option::Option<crate::types::DeploymentInfo>,
9 _request_id: Option<String>,
10}
11impl GetDeploymentOutput {
12 pub fn deployment_info(&self) -> ::std::option::Option<&crate::types::DeploymentInfo> {
14 self.deployment_info.as_ref()
15 }
16}
17impl ::aws_types::request_id::RequestId for GetDeploymentOutput {
18 fn request_id(&self) -> Option<&str> {
19 self._request_id.as_deref()
20 }
21}
22impl GetDeploymentOutput {
23 pub fn builder() -> crate::operation::get_deployment::builders::GetDeploymentOutputBuilder {
25 crate::operation::get_deployment::builders::GetDeploymentOutputBuilder::default()
26 }
27}
28
29#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
31#[non_exhaustive]
32pub struct GetDeploymentOutputBuilder {
33 pub(crate) deployment_info: ::std::option::Option<crate::types::DeploymentInfo>,
34 _request_id: Option<String>,
35}
36impl GetDeploymentOutputBuilder {
37 pub fn deployment_info(mut self, input: crate::types::DeploymentInfo) -> Self {
39 self.deployment_info = ::std::option::Option::Some(input);
40 self
41 }
42 pub fn set_deployment_info(mut self, input: ::std::option::Option<crate::types::DeploymentInfo>) -> Self {
44 self.deployment_info = input;
45 self
46 }
47 pub fn get_deployment_info(&self) -> &::std::option::Option<crate::types::DeploymentInfo> {
49 &self.deployment_info
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_deployment::GetDeploymentOutput {
62 crate::operation::get_deployment::GetDeploymentOutput {
63 deployment_info: self.deployment_info,
64 _request_id: self._request_id,
65 }
66 }
67}