AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
14#include <utility>
15
16namespace Aws {
17namespace MPA {
18namespace Model {
19
23 public:
24 AWS_MPA_API UpdateApprovalTeamRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateApprovalTeam"; }
31
32 AWS_MPA_API Aws::String SerializePayload() const override;
33
35
39 inline const ApprovalStrategy& GetApprovalStrategy() const { return m_approvalStrategy; }
40 inline bool ApprovalStrategyHasBeenSet() const { return m_approvalStrategyHasBeenSet; }
41 template <typename ApprovalStrategyT = ApprovalStrategy>
42 void SetApprovalStrategy(ApprovalStrategyT&& value) {
43 m_approvalStrategyHasBeenSet = true;
44 m_approvalStrategy = std::forward<ApprovalStrategyT>(value);
45 }
46 template <typename ApprovalStrategyT = ApprovalStrategy>
47 UpdateApprovalTeamRequest& WithApprovalStrategy(ApprovalStrategyT&& value) {
48 SetApprovalStrategy(std::forward<ApprovalStrategyT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::Vector<ApprovalTeamRequestApprover>& GetApprovers() const { return m_approvers; }
59 inline bool ApproversHasBeenSet() const { return m_approversHasBeenSet; }
60 template <typename ApproversT = Aws::Vector<ApprovalTeamRequestApprover>>
61 void SetApprovers(ApproversT&& value) {
62 m_approversHasBeenSet = true;
63 m_approvers = std::forward<ApproversT>(value);
64 }
65 template <typename ApproversT = Aws::Vector<ApprovalTeamRequestApprover>>
67 SetApprovers(std::forward<ApproversT>(value));
68 return *this;
69 }
70 template <typename ApproversT = ApprovalTeamRequestApprover>
72 m_approversHasBeenSet = true;
73 m_approvers.emplace_back(std::forward<ApproversT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetDescription() const { return m_description; }
83 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
84 template <typename DescriptionT = Aws::String>
85 void SetDescription(DescriptionT&& value) {
86 m_descriptionHasBeenSet = true;
87 m_description = std::forward<DescriptionT>(value);
88 }
89 template <typename DescriptionT = Aws::String>
91 SetDescription(std::forward<DescriptionT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetArn() const { return m_arn; }
101 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
102 template <typename ArnT = Aws::String>
103 void SetArn(ArnT&& value) {
104 m_arnHasBeenSet = true;
105 m_arn = std::forward<ArnT>(value);
106 }
107 template <typename ArnT = Aws::String>
109 SetArn(std::forward<ArnT>(value));
110 return *this;
111 }
113 private:
114 ApprovalStrategy m_approvalStrategy;
115
117
118 Aws::String m_description;
119
120 Aws::String m_arn;
121 bool m_approvalStrategyHasBeenSet = false;
122 bool m_approversHasBeenSet = false;
123 bool m_descriptionHasBeenSet = false;
124 bool m_arnHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace MPA
129} // 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
void SetApprovalStrategy(ApprovalStrategyT &&value)
UpdateApprovalTeamRequest & AddApprovers(ApproversT &&value)
AWS_MPA_API UpdateApprovalTeamRequest()=default
virtual const char * GetServiceRequestName() const override
UpdateApprovalTeamRequest & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector