AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
CreateMembershipRequest.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/core/utils/memory/stl/AWSMap.h>
12#include <aws/security-ir/model/IncidentResponder.h>
13#include <aws/security-ir/model/OptInFeature.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace SecurityIR
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_SECURITYIR_API CreateMembershipRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateMembership"; }
36
37 AWS_SECURITYIR_API Aws::String SerializePayload() const override;
38
39
41
47 inline const Aws::String& GetClientToken() const { return m_clientToken; }
48 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
49 template<typename ClientTokenT = Aws::String>
50 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
51 template<typename ClientTokenT = Aws::String>
52 CreateMembershipRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
54
56
60 inline const Aws::String& GetMembershipName() const { return m_membershipName; }
61 inline bool MembershipNameHasBeenSet() const { return m_membershipNameHasBeenSet; }
62 template<typename MembershipNameT = Aws::String>
63 void SetMembershipName(MembershipNameT&& value) { m_membershipNameHasBeenSet = true; m_membershipName = std::forward<MembershipNameT>(value); }
64 template<typename MembershipNameT = Aws::String>
65 CreateMembershipRequest& WithMembershipName(MembershipNameT&& value) { SetMembershipName(std::forward<MembershipNameT>(value)); return *this;}
67
69
73 inline const Aws::Vector<IncidentResponder>& GetIncidentResponseTeam() const { return m_incidentResponseTeam; }
74 inline bool IncidentResponseTeamHasBeenSet() const { return m_incidentResponseTeamHasBeenSet; }
75 template<typename IncidentResponseTeamT = Aws::Vector<IncidentResponder>>
76 void SetIncidentResponseTeam(IncidentResponseTeamT&& value) { m_incidentResponseTeamHasBeenSet = true; m_incidentResponseTeam = std::forward<IncidentResponseTeamT>(value); }
77 template<typename IncidentResponseTeamT = Aws::Vector<IncidentResponder>>
78 CreateMembershipRequest& WithIncidentResponseTeam(IncidentResponseTeamT&& value) { SetIncidentResponseTeam(std::forward<IncidentResponseTeamT>(value)); return *this;}
79 template<typename IncidentResponseTeamT = IncidentResponder>
80 CreateMembershipRequest& AddIncidentResponseTeam(IncidentResponseTeamT&& value) { m_incidentResponseTeamHasBeenSet = true; m_incidentResponseTeam.emplace_back(std::forward<IncidentResponseTeamT>(value)); return *this; }
82
84
88 inline const Aws::Vector<OptInFeature>& GetOptInFeatures() const { return m_optInFeatures; }
89 inline bool OptInFeaturesHasBeenSet() const { return m_optInFeaturesHasBeenSet; }
90 template<typename OptInFeaturesT = Aws::Vector<OptInFeature>>
91 void SetOptInFeatures(OptInFeaturesT&& value) { m_optInFeaturesHasBeenSet = true; m_optInFeatures = std::forward<OptInFeaturesT>(value); }
92 template<typename OptInFeaturesT = Aws::Vector<OptInFeature>>
93 CreateMembershipRequest& WithOptInFeatures(OptInFeaturesT&& value) { SetOptInFeatures(std::forward<OptInFeaturesT>(value)); return *this;}
94 template<typename OptInFeaturesT = OptInFeature>
95 CreateMembershipRequest& AddOptInFeatures(OptInFeaturesT&& value) { m_optInFeaturesHasBeenSet = true; m_optInFeatures.emplace_back(std::forward<OptInFeaturesT>(value)); return *this; }
97
99
102 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
103 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
104 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
105 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
106 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
107 CreateMembershipRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
108 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
109 CreateMembershipRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
110 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
111 }
113
115
127 inline bool GetCoverEntireOrganization() const { return m_coverEntireOrganization; }
128 inline bool CoverEntireOrganizationHasBeenSet() const { return m_coverEntireOrganizationHasBeenSet; }
129 inline void SetCoverEntireOrganization(bool value) { m_coverEntireOrganizationHasBeenSet = true; m_coverEntireOrganization = value; }
132 private:
133
135 bool m_clientTokenHasBeenSet = true;
136
137 Aws::String m_membershipName;
138 bool m_membershipNameHasBeenSet = false;
139
140 Aws::Vector<IncidentResponder> m_incidentResponseTeam;
141 bool m_incidentResponseTeamHasBeenSet = false;
142
143 Aws::Vector<OptInFeature> m_optInFeatures;
144 bool m_optInFeaturesHasBeenSet = false;
145
147 bool m_tagsHasBeenSet = false;
148
149 bool m_coverEntireOrganization{false};
150 bool m_coverEntireOrganizationHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace SecurityIR
155} // 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