AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateApprovalTeamRequest.h
1
6#pragma once
7#include <aws/mpa/MPA_EXPORTS.h>
8#include <aws/mpa/MPARequest.h>
9#include <aws/mpa/model/ApprovalStrategy.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/mpa/model/ApprovalTeamRequestApprover.h>
13#include <utility>
14
15namespace Aws
16{
17namespace MPA
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_MPA_API UpdateApprovalTeamRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateApprovalTeam"; }
34
35 AWS_MPA_API Aws::String SerializePayload() const override;
36
37
39
43 inline const ApprovalStrategy& GetApprovalStrategy() const { return m_approvalStrategy; }
44 inline bool ApprovalStrategyHasBeenSet() const { return m_approvalStrategyHasBeenSet; }
45 template<typename ApprovalStrategyT = ApprovalStrategy>
46 void SetApprovalStrategy(ApprovalStrategyT&& value) { m_approvalStrategyHasBeenSet = true; m_approvalStrategy = std::forward<ApprovalStrategyT>(value); }
47 template<typename ApprovalStrategyT = ApprovalStrategy>
48 UpdateApprovalTeamRequest& WithApprovalStrategy(ApprovalStrategyT&& value) { SetApprovalStrategy(std::forward<ApprovalStrategyT>(value)); return *this;}
50
52
56 inline const Aws::Vector<ApprovalTeamRequestApprover>& GetApprovers() const { return m_approvers; }
57 inline bool ApproversHasBeenSet() const { return m_approversHasBeenSet; }
58 template<typename ApproversT = Aws::Vector<ApprovalTeamRequestApprover>>
59 void SetApprovers(ApproversT&& value) { m_approversHasBeenSet = true; m_approvers = std::forward<ApproversT>(value); }
60 template<typename ApproversT = Aws::Vector<ApprovalTeamRequestApprover>>
61 UpdateApprovalTeamRequest& WithApprovers(ApproversT&& value) { SetApprovers(std::forward<ApproversT>(value)); return *this;}
62 template<typename ApproversT = ApprovalTeamRequestApprover>
63 UpdateApprovalTeamRequest& AddApprovers(ApproversT&& value) { m_approversHasBeenSet = true; m_approvers.emplace_back(std::forward<ApproversT>(value)); return *this; }
65
67
70 inline const Aws::String& GetDescription() const { return m_description; }
71 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
72 template<typename DescriptionT = Aws::String>
73 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
74 template<typename DescriptionT = Aws::String>
75 UpdateApprovalTeamRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
77
79
82 inline const Aws::String& GetArn() const { return m_arn; }
83 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
84 template<typename ArnT = Aws::String>
85 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
86 template<typename ArnT = Aws::String>
87 UpdateApprovalTeamRequest& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
89 private:
90
91 ApprovalStrategy m_approvalStrategy;
92 bool m_approvalStrategyHasBeenSet = false;
93
95 bool m_approversHasBeenSet = false;
96
97 Aws::String m_description;
98 bool m_descriptionHasBeenSet = false;
99
100 Aws::String m_arn;
101 bool m_arnHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace MPA
106} // 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