AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
CreateMembershipRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityagent/SecurityAgentRequest.h>
9#include <aws/securityagent/SecurityAgent_EXPORTS.h>
10#include <aws/securityagent/model/MembershipConfig.h>
11#include <aws/securityagent/model/MembershipType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SecurityAgent {
17namespace Model {
18
26 public:
27 AWS_SECURITYAGENT_API CreateMembershipRequest() = 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 "CreateMembership"; }
34
35 AWS_SECURITYAGENT_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
42 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
43 template <typename ApplicationIdT = Aws::String>
44 void SetApplicationId(ApplicationIdT&& value) {
45 m_applicationIdHasBeenSet = true;
46 m_applicationId = std::forward<ApplicationIdT>(value);
47 }
48 template <typename ApplicationIdT = Aws::String>
49 CreateMembershipRequest& WithApplicationId(ApplicationIdT&& value) {
50 SetApplicationId(std::forward<ApplicationIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
60 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
61 template <typename AgentSpaceIdT = Aws::String>
62 void SetAgentSpaceId(AgentSpaceIdT&& value) {
63 m_agentSpaceIdHasBeenSet = true;
64 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
65 }
66 template <typename AgentSpaceIdT = Aws::String>
67 CreateMembershipRequest& WithAgentSpaceId(AgentSpaceIdT&& value) {
68 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetMembershipId() const { return m_membershipId; }
78 inline bool MembershipIdHasBeenSet() const { return m_membershipIdHasBeenSet; }
79 template <typename MembershipIdT = Aws::String>
80 void SetMembershipId(MembershipIdT&& value) {
81 m_membershipIdHasBeenSet = true;
82 m_membershipId = std::forward<MembershipIdT>(value);
83 }
84 template <typename MembershipIdT = Aws::String>
85 CreateMembershipRequest& WithMembershipId(MembershipIdT&& value) {
86 SetMembershipId(std::forward<MembershipIdT>(value));
87 return *this;
88 }
90
92
95 inline MembershipType GetMemberType() const { return m_memberType; }
96 inline bool MemberTypeHasBeenSet() const { return m_memberTypeHasBeenSet; }
97 inline void SetMemberType(MembershipType value) {
98 m_memberTypeHasBeenSet = true;
99 m_memberType = value;
100 }
102 SetMemberType(value);
103 return *this;
104 }
106
108
111 inline const MembershipConfig& GetConfig() const { return m_config; }
112 inline bool ConfigHasBeenSet() const { return m_configHasBeenSet; }
113 template <typename ConfigT = MembershipConfig>
114 void SetConfig(ConfigT&& value) {
115 m_configHasBeenSet = true;
116 m_config = std::forward<ConfigT>(value);
117 }
118 template <typename ConfigT = MembershipConfig>
120 SetConfig(std::forward<ConfigT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_applicationId;
126
127 Aws::String m_agentSpaceId;
128
129 Aws::String m_membershipId;
130
132
133 MembershipConfig m_config;
134 bool m_applicationIdHasBeenSet = false;
135 bool m_agentSpaceIdHasBeenSet = false;
136 bool m_membershipIdHasBeenSet = false;
137 bool m_memberTypeHasBeenSet = false;
138 bool m_configHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace SecurityAgent
143} // namespace Aws
CreateMembershipRequest & WithAgentSpaceId(AgentSpaceIdT &&value)
virtual const char * GetServiceRequestName() const override
CreateMembershipRequest & WithMembershipId(MembershipIdT &&value)
AWS_SECURITYAGENT_API CreateMembershipRequest()=default
AWS_SECURITYAGENT_API Aws::String SerializePayload() const override
CreateMembershipRequest & WithApplicationId(ApplicationIdT &&value)
CreateMembershipRequest & WithMemberType(MembershipType value)
CreateMembershipRequest & WithConfig(ConfigT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String