AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateGroupMembershipRequest.h
1
6#pragma once
7#include <aws/identitystore/IdentityStore_EXPORTS.h>
8#include <aws/identitystore/IdentityStoreRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/identitystore/model/MemberId.h>
11#include <utility>
12
13namespace Aws
14{
15namespace IdentityStore
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_IDENTITYSTORE_API CreateGroupMembershipRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateGroupMembership"; }
32
33 AWS_IDENTITYSTORE_API Aws::String SerializePayload() const override;
34
35 AWS_IDENTITYSTORE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
42 inline const Aws::String& GetIdentityStoreId() const { return m_identityStoreId; }
43 inline bool IdentityStoreIdHasBeenSet() const { return m_identityStoreIdHasBeenSet; }
44 template<typename IdentityStoreIdT = Aws::String>
45 void SetIdentityStoreId(IdentityStoreIdT&& value) { m_identityStoreIdHasBeenSet = true; m_identityStoreId = std::forward<IdentityStoreIdT>(value); }
46 template<typename IdentityStoreIdT = Aws::String>
47 CreateGroupMembershipRequest& WithIdentityStoreId(IdentityStoreIdT&& value) { SetIdentityStoreId(std::forward<IdentityStoreIdT>(value)); return *this;}
49
51
54 inline const Aws::String& GetGroupId() const { return m_groupId; }
55 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
56 template<typename GroupIdT = Aws::String>
57 void SetGroupId(GroupIdT&& value) { m_groupIdHasBeenSet = true; m_groupId = std::forward<GroupIdT>(value); }
58 template<typename GroupIdT = Aws::String>
59 CreateGroupMembershipRequest& WithGroupId(GroupIdT&& value) { SetGroupId(std::forward<GroupIdT>(value)); return *this;}
61
63
68 inline const MemberId& GetMemberId() const { return m_memberId; }
69 inline bool MemberIdHasBeenSet() const { return m_memberIdHasBeenSet; }
70 template<typename MemberIdT = MemberId>
71 void SetMemberId(MemberIdT&& value) { m_memberIdHasBeenSet = true; m_memberId = std::forward<MemberIdT>(value); }
72 template<typename MemberIdT = MemberId>
73 CreateGroupMembershipRequest& WithMemberId(MemberIdT&& value) { SetMemberId(std::forward<MemberIdT>(value)); return *this;}
75 private:
76
77 Aws::String m_identityStoreId;
78 bool m_identityStoreIdHasBeenSet = false;
79
80 Aws::String m_groupId;
81 bool m_groupIdHasBeenSet = false;
82
83 MemberId m_memberId;
84 bool m_memberIdHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace IdentityStore
89} // namespace Aws
AWS_IDENTITYSTORE_API CreateGroupMembershipRequest()=default
CreateGroupMembershipRequest & WithGroupId(GroupIdT &&value)
CreateGroupMembershipRequest & WithIdentityStoreId(IdentityStoreIdT &&value)
CreateGroupMembershipRequest & WithMemberId(MemberIdT &&value)
AWS_IDENTITYSTORE_API Aws::String SerializePayload() const override
AWS_IDENTITYSTORE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String