AWS SDK for C++

AWS SDK for C++ Version 1.11.636

Loading...
Searching...
No Matches
UpdateMembershipRequest.h
1
6#pragma once
7#include <aws/security-ir/SecurityIR_EXPORTS.h>
8#include <aws/security-ir/SecurityIRRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/security-ir/model/MembershipAccountsConfigurationsUpdate.h>
12#include <aws/security-ir/model/IncidentResponder.h>
13#include <aws/security-ir/model/OptInFeature.h>
14#include <utility>
15
16namespace Aws
17{
18namespace SecurityIR
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_SECURITYIR_API UpdateMembershipRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateMembership"; }
35
36 AWS_SECURITYIR_API Aws::String SerializePayload() const override;
37
38
40
44 inline const Aws::String& GetMembershipId() const { return m_membershipId; }
45 inline bool MembershipIdHasBeenSet() const { return m_membershipIdHasBeenSet; }
46 template<typename MembershipIdT = Aws::String>
47 void SetMembershipId(MembershipIdT&& value) { m_membershipIdHasBeenSet = true; m_membershipId = std::forward<MembershipIdT>(value); }
48 template<typename MembershipIdT = Aws::String>
49 UpdateMembershipRequest& WithMembershipId(MembershipIdT&& value) { SetMembershipId(std::forward<MembershipIdT>(value)); return *this;}
51
53
56 inline const Aws::String& GetMembershipName() const { return m_membershipName; }
57 inline bool MembershipNameHasBeenSet() const { return m_membershipNameHasBeenSet; }
58 template<typename MembershipNameT = Aws::String>
59 void SetMembershipName(MembershipNameT&& value) { m_membershipNameHasBeenSet = true; m_membershipName = std::forward<MembershipNameT>(value); }
60 template<typename MembershipNameT = Aws::String>
61 UpdateMembershipRequest& WithMembershipName(MembershipNameT&& value) { SetMembershipName(std::forward<MembershipNameT>(value)); return *this;}
63
65
68 inline const Aws::Vector<IncidentResponder>& GetIncidentResponseTeam() const { return m_incidentResponseTeam; }
69 inline bool IncidentResponseTeamHasBeenSet() const { return m_incidentResponseTeamHasBeenSet; }
70 template<typename IncidentResponseTeamT = Aws::Vector<IncidentResponder>>
71 void SetIncidentResponseTeam(IncidentResponseTeamT&& value) { m_incidentResponseTeamHasBeenSet = true; m_incidentResponseTeam = std::forward<IncidentResponseTeamT>(value); }
72 template<typename IncidentResponseTeamT = Aws::Vector<IncidentResponder>>
73 UpdateMembershipRequest& WithIncidentResponseTeam(IncidentResponseTeamT&& value) { SetIncidentResponseTeam(std::forward<IncidentResponseTeamT>(value)); return *this;}
74 template<typename IncidentResponseTeamT = IncidentResponder>
75 UpdateMembershipRequest& AddIncidentResponseTeam(IncidentResponseTeamT&& value) { m_incidentResponseTeamHasBeenSet = true; m_incidentResponseTeam.emplace_back(std::forward<IncidentResponseTeamT>(value)); return *this; }
77
79
83 inline const Aws::Vector<OptInFeature>& GetOptInFeatures() const { return m_optInFeatures; }
84 inline bool OptInFeaturesHasBeenSet() const { return m_optInFeaturesHasBeenSet; }
85 template<typename OptInFeaturesT = Aws::Vector<OptInFeature>>
86 void SetOptInFeatures(OptInFeaturesT&& value) { m_optInFeaturesHasBeenSet = true; m_optInFeatures = std::forward<OptInFeaturesT>(value); }
87 template<typename OptInFeaturesT = Aws::Vector<OptInFeature>>
88 UpdateMembershipRequest& WithOptInFeatures(OptInFeaturesT&& value) { SetOptInFeatures(std::forward<OptInFeaturesT>(value)); return *this;}
89 template<typename OptInFeaturesT = OptInFeature>
90 UpdateMembershipRequest& AddOptInFeatures(OptInFeaturesT&& value) { m_optInFeaturesHasBeenSet = true; m_optInFeatures.emplace_back(std::forward<OptInFeaturesT>(value)); return *this; }
92
94
102 inline const MembershipAccountsConfigurationsUpdate& GetMembershipAccountsConfigurationsUpdate() const { return m_membershipAccountsConfigurationsUpdate; }
103 inline bool MembershipAccountsConfigurationsUpdateHasBeenSet() const { return m_membershipAccountsConfigurationsUpdateHasBeenSet; }
104 template<typename MembershipAccountsConfigurationsUpdateT = MembershipAccountsConfigurationsUpdate>
105 void SetMembershipAccountsConfigurationsUpdate(MembershipAccountsConfigurationsUpdateT&& value) { m_membershipAccountsConfigurationsUpdateHasBeenSet = true; m_membershipAccountsConfigurationsUpdate = std::forward<MembershipAccountsConfigurationsUpdateT>(value); }
106 template<typename MembershipAccountsConfigurationsUpdateT = MembershipAccountsConfigurationsUpdate>
107 UpdateMembershipRequest& WithMembershipAccountsConfigurationsUpdate(MembershipAccountsConfigurationsUpdateT&& value) { SetMembershipAccountsConfigurationsUpdate(std::forward<MembershipAccountsConfigurationsUpdateT>(value)); return *this;}
109
111
122 inline bool GetUndoMembershipCancellation() const { return m_undoMembershipCancellation; }
123 inline bool UndoMembershipCancellationHasBeenSet() const { return m_undoMembershipCancellationHasBeenSet; }
124 inline void SetUndoMembershipCancellation(bool value) { m_undoMembershipCancellationHasBeenSet = true; m_undoMembershipCancellation = value; }
127 private:
128
129 Aws::String m_membershipId;
130 bool m_membershipIdHasBeenSet = false;
131
132 Aws::String m_membershipName;
133 bool m_membershipNameHasBeenSet = false;
134
135 Aws::Vector<IncidentResponder> m_incidentResponseTeam;
136 bool m_incidentResponseTeamHasBeenSet = false;
137
138 Aws::Vector<OptInFeature> m_optInFeatures;
139 bool m_optInFeaturesHasBeenSet = false;
140
141 MembershipAccountsConfigurationsUpdate m_membershipAccountsConfigurationsUpdate;
142 bool m_membershipAccountsConfigurationsUpdateHasBeenSet = false;
143
144 bool m_undoMembershipCancellation{false};
145 bool m_undoMembershipCancellationHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace SecurityIR
150} // namespace Aws
UpdateMembershipRequest & WithUndoMembershipCancellation(bool value)
virtual const char * GetServiceRequestName() const override
void SetIncidentResponseTeam(IncidentResponseTeamT &&value)
void SetMembershipAccountsConfigurationsUpdate(MembershipAccountsConfigurationsUpdateT &&value)
const Aws::Vector< IncidentResponder > & GetIncidentResponseTeam() const
UpdateMembershipRequest & WithOptInFeatures(OptInFeaturesT &&value)
const Aws::Vector< OptInFeature > & GetOptInFeatures() const
UpdateMembershipRequest & WithMembershipName(MembershipNameT &&value)
AWS_SECURITYIR_API Aws::String SerializePayload() const override
UpdateMembershipRequest & WithMembershipId(MembershipIdT &&value)
UpdateMembershipRequest & WithIncidentResponseTeam(IncidentResponseTeamT &&value)
UpdateMembershipRequest & AddOptInFeatures(OptInFeaturesT &&value)
AWS_SECURITYIR_API UpdateMembershipRequest()=default
UpdateMembershipRequest & WithMembershipAccountsConfigurationsUpdate(MembershipAccountsConfigurationsUpdateT &&value)
const MembershipAccountsConfigurationsUpdate & GetMembershipAccountsConfigurationsUpdate() const
UpdateMembershipRequest & AddIncidentResponseTeam(IncidentResponseTeamT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector