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