AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
CreateMembershipRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/security-ir/SecurityIRRequest.h>
12#include <aws/security-ir/SecurityIR_EXPORTS.h>
13#include <aws/security-ir/model/IncidentResponder.h>
14#include <aws/security-ir/model/OptInFeature.h>
15
16#include <utility>
17
18namespace Aws {
19namespace SecurityIR {
20namespace Model {
21
25 public:
26 AWS_SECURITYIR_API CreateMembershipRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateMembership"; }
33
34 AWS_SECURITYIR_API Aws::String SerializePayload() const override;
35
37
43 inline const Aws::String& GetClientToken() const { return m_clientToken; }
44 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
45 template <typename ClientTokenT = Aws::String>
46 void SetClientToken(ClientTokenT&& value) {
47 m_clientTokenHasBeenSet = true;
48 m_clientToken = std::forward<ClientTokenT>(value);
49 }
50 template <typename ClientTokenT = Aws::String>
52 SetClientToken(std::forward<ClientTokenT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetMembershipName() const { return m_membershipName; }
63 inline bool MembershipNameHasBeenSet() const { return m_membershipNameHasBeenSet; }
64 template <typename MembershipNameT = Aws::String>
65 void SetMembershipName(MembershipNameT&& value) {
66 m_membershipNameHasBeenSet = true;
67 m_membershipName = std::forward<MembershipNameT>(value);
68 }
69 template <typename MembershipNameT = Aws::String>
70 CreateMembershipRequest& WithMembershipName(MembershipNameT&& value) {
71 SetMembershipName(std::forward<MembershipNameT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::Vector<IncidentResponder>& GetIncidentResponseTeam() const { return m_incidentResponseTeam; }
82 inline bool IncidentResponseTeamHasBeenSet() const { return m_incidentResponseTeamHasBeenSet; }
83 template <typename IncidentResponseTeamT = Aws::Vector<IncidentResponder>>
84 void SetIncidentResponseTeam(IncidentResponseTeamT&& value) {
85 m_incidentResponseTeamHasBeenSet = true;
86 m_incidentResponseTeam = std::forward<IncidentResponseTeamT>(value);
87 }
88 template <typename IncidentResponseTeamT = Aws::Vector<IncidentResponder>>
89 CreateMembershipRequest& WithIncidentResponseTeam(IncidentResponseTeamT&& value) {
90 SetIncidentResponseTeam(std::forward<IncidentResponseTeamT>(value));
91 return *this;
92 }
93 template <typename IncidentResponseTeamT = IncidentResponder>
94 CreateMembershipRequest& AddIncidentResponseTeam(IncidentResponseTeamT&& value) {
95 m_incidentResponseTeamHasBeenSet = true;
96 m_incidentResponseTeam.emplace_back(std::forward<IncidentResponseTeamT>(value));
97 return *this;
98 }
100
102
106 inline const Aws::Vector<OptInFeature>& GetOptInFeatures() const { return m_optInFeatures; }
107 inline bool OptInFeaturesHasBeenSet() const { return m_optInFeaturesHasBeenSet; }
108 template <typename OptInFeaturesT = Aws::Vector<OptInFeature>>
109 void SetOptInFeatures(OptInFeaturesT&& value) {
110 m_optInFeaturesHasBeenSet = true;
111 m_optInFeatures = std::forward<OptInFeaturesT>(value);
112 }
113 template <typename OptInFeaturesT = Aws::Vector<OptInFeature>>
115 SetOptInFeatures(std::forward<OptInFeaturesT>(value));
116 return *this;
117 }
118 template <typename OptInFeaturesT = OptInFeature>
119 CreateMembershipRequest& AddOptInFeatures(OptInFeaturesT&& value) {
120 m_optInFeaturesHasBeenSet = true;
121 m_optInFeatures.emplace_back(std::forward<OptInFeaturesT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
131 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
132 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
133 void SetTags(TagsT&& value) {
134 m_tagsHasBeenSet = true;
135 m_tags = std::forward<TagsT>(value);
136 }
137 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
139 SetTags(std::forward<TagsT>(value));
140 return *this;
141 }
142 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
143 CreateMembershipRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
144 m_tagsHasBeenSet = true;
145 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
146 return *this;
147 }
149
151
163 inline bool GetCoverEntireOrganization() const { return m_coverEntireOrganization; }
164 inline bool CoverEntireOrganizationHasBeenSet() const { return m_coverEntireOrganizationHasBeenSet; }
165 inline void SetCoverEntireOrganization(bool value) {
166 m_coverEntireOrganizationHasBeenSet = true;
167 m_coverEntireOrganization = value;
168 }
171 return *this;
172 }
174 private:
176
177 Aws::String m_membershipName;
178
179 Aws::Vector<IncidentResponder> m_incidentResponseTeam;
180
181 Aws::Vector<OptInFeature> m_optInFeatures;
182
184
185 bool m_coverEntireOrganization{false};
186 bool m_clientTokenHasBeenSet = true;
187 bool m_membershipNameHasBeenSet = false;
188 bool m_incidentResponseTeamHasBeenSet = false;
189 bool m_optInFeaturesHasBeenSet = false;
190 bool m_tagsHasBeenSet = false;
191 bool m_coverEntireOrganizationHasBeenSet = false;
192};
193
194} // namespace Model
195} // namespace SecurityIR
196} // namespace Aws
CreateMembershipRequest & WithIncidentResponseTeam(IncidentResponseTeamT &&value)
AWS_SECURITYIR_API CreateMembershipRequest()=default
const Aws::Vector< OptInFeature > & GetOptInFeatures() const
virtual const char * GetServiceRequestName() const override
const Aws::Vector< IncidentResponder > & GetIncidentResponseTeam() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetIncidentResponseTeam(IncidentResponseTeamT &&value)
CreateMembershipRequest & WithClientToken(ClientTokenT &&value)
CreateMembershipRequest & WithCoverEntireOrganization(bool value)
CreateMembershipRequest & WithTags(TagsT &&value)
CreateMembershipRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateMembershipRequest & WithMembershipName(MembershipNameT &&value)
CreateMembershipRequest & AddOptInFeatures(OptInFeaturesT &&value)
AWS_SECURITYIR_API Aws::String SerializePayload() const override
CreateMembershipRequest & WithOptInFeatures(OptInFeaturesT &&value)
CreateMembershipRequest & AddIncidentResponseTeam(IncidentResponseTeamT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector