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