AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
UpdateApprovalTeamRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/mpa/MPARequest.h>
10#include <aws/mpa/MPA_EXPORTS.h>
11#include <aws/mpa/model/ApprovalStrategy.h>
12#include <aws/mpa/model/ApprovalTeamRequestApprover.h>
13#include <aws/mpa/model/UpdateAction.h>
14
15#include <utility>
16
17namespace Aws {
18namespace MPA {
19namespace Model {
20
24 public:
25 AWS_MPA_API UpdateApprovalTeamRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateApprovalTeam"; }
32
33 AWS_MPA_API Aws::String SerializePayload() const override;
34
36
40 inline const ApprovalStrategy& GetApprovalStrategy() const { return m_approvalStrategy; }
41 inline bool ApprovalStrategyHasBeenSet() const { return m_approvalStrategyHasBeenSet; }
42 template <typename ApprovalStrategyT = ApprovalStrategy>
43 void SetApprovalStrategy(ApprovalStrategyT&& value) {
44 m_approvalStrategyHasBeenSet = true;
45 m_approvalStrategy = std::forward<ApprovalStrategyT>(value);
46 }
47 template <typename ApprovalStrategyT = ApprovalStrategy>
48 UpdateApprovalTeamRequest& WithApprovalStrategy(ApprovalStrategyT&& value) {
49 SetApprovalStrategy(std::forward<ApprovalStrategyT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::Vector<ApprovalTeamRequestApprover>& GetApprovers() const { return m_approvers; }
60 inline bool ApproversHasBeenSet() const { return m_approversHasBeenSet; }
61 template <typename ApproversT = Aws::Vector<ApprovalTeamRequestApprover>>
62 void SetApprovers(ApproversT&& value) {
63 m_approversHasBeenSet = true;
64 m_approvers = std::forward<ApproversT>(value);
65 }
66 template <typename ApproversT = Aws::Vector<ApprovalTeamRequestApprover>>
68 SetApprovers(std::forward<ApproversT>(value));
69 return *this;
70 }
71 template <typename ApproversT = ApprovalTeamRequestApprover>
73 m_approversHasBeenSet = true;
74 m_approvers.emplace_back(std::forward<ApproversT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetDescription() const { return m_description; }
84 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
85 template <typename DescriptionT = Aws::String>
86 void SetDescription(DescriptionT&& value) {
87 m_descriptionHasBeenSet = true;
88 m_description = std::forward<DescriptionT>(value);
89 }
90 template <typename DescriptionT = Aws::String>
92 SetDescription(std::forward<DescriptionT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetArn() const { return m_arn; }
102 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
103 template <typename ArnT = Aws::String>
104 void SetArn(ArnT&& value) {
105 m_arnHasBeenSet = true;
106 m_arn = std::forward<ArnT>(value);
107 }
108 template <typename ArnT = Aws::String>
110 SetArn(std::forward<ArnT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::Vector<UpdateAction>& GetUpdateActions() const { return m_updateActions; }
120 inline bool UpdateActionsHasBeenSet() const { return m_updateActionsHasBeenSet; }
121 template <typename UpdateActionsT = Aws::Vector<UpdateAction>>
122 void SetUpdateActions(UpdateActionsT&& value) {
123 m_updateActionsHasBeenSet = true;
124 m_updateActions = std::forward<UpdateActionsT>(value);
125 }
126 template <typename UpdateActionsT = Aws::Vector<UpdateAction>>
128 SetUpdateActions(std::forward<UpdateActionsT>(value));
129 return *this;
130 }
132 m_updateActionsHasBeenSet = true;
133 m_updateActions.push_back(value);
134 return *this;
135 }
137 private:
138 ApprovalStrategy m_approvalStrategy;
139
141
142 Aws::String m_description;
143
144 Aws::String m_arn;
145
146 Aws::Vector<UpdateAction> m_updateActions;
147 bool m_approvalStrategyHasBeenSet = false;
148 bool m_approversHasBeenSet = false;
149 bool m_descriptionHasBeenSet = false;
150 bool m_arnHasBeenSet = false;
151 bool m_updateActionsHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace MPA
156} // namespace Aws
const Aws::Vector< ApprovalTeamRequestApprover > & GetApprovers() const
UpdateApprovalTeamRequest & WithApprovers(ApproversT &&value)
UpdateApprovalTeamRequest & WithArn(ArnT &&value)
const ApprovalStrategy & GetApprovalStrategy() const
UpdateApprovalTeamRequest & WithApprovalStrategy(ApprovalStrategyT &&value)
AWS_MPA_API Aws::String SerializePayload() const override
const Aws::Vector< UpdateAction > & GetUpdateActions() const
void SetApprovalStrategy(ApprovalStrategyT &&value)
UpdateApprovalTeamRequest & AddApprovers(ApproversT &&value)
AWS_MPA_API UpdateApprovalTeamRequest()=default
virtual const char * GetServiceRequestName() const override
UpdateApprovalTeamRequest & AddUpdateActions(UpdateAction value)
UpdateApprovalTeamRequest & WithDescription(DescriptionT &&value)
UpdateApprovalTeamRequest & WithUpdateActions(UpdateActionsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector