AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GroupMembership.h
1
6#pragma once
7#include <aws/identitystore/IdentityStore_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/identitystore/model/MemberId.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IdentityStore
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_IDENTITYSTORE_API GroupMembership();
38 AWS_IDENTITYSTORE_API GroupMembership(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IDENTITYSTORE_API GroupMembership& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IDENTITYSTORE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetIdentityStoreId() const{ return m_identityStoreId; }
48 inline bool IdentityStoreIdHasBeenSet() const { return m_identityStoreIdHasBeenSet; }
49 inline void SetIdentityStoreId(const Aws::String& value) { m_identityStoreIdHasBeenSet = true; m_identityStoreId = value; }
50 inline void SetIdentityStoreId(Aws::String&& value) { m_identityStoreIdHasBeenSet = true; m_identityStoreId = std::move(value); }
51 inline void SetIdentityStoreId(const char* value) { m_identityStoreIdHasBeenSet = true; m_identityStoreId.assign(value); }
52 inline GroupMembership& WithIdentityStoreId(const Aws::String& value) { SetIdentityStoreId(value); return *this;}
53 inline GroupMembership& WithIdentityStoreId(Aws::String&& value) { SetIdentityStoreId(std::move(value)); return *this;}
54 inline GroupMembership& WithIdentityStoreId(const char* value) { SetIdentityStoreId(value); return *this;}
56
58
62 inline const Aws::String& GetMembershipId() const{ return m_membershipId; }
63 inline bool MembershipIdHasBeenSet() const { return m_membershipIdHasBeenSet; }
64 inline void SetMembershipId(const Aws::String& value) { m_membershipIdHasBeenSet = true; m_membershipId = value; }
65 inline void SetMembershipId(Aws::String&& value) { m_membershipIdHasBeenSet = true; m_membershipId = std::move(value); }
66 inline void SetMembershipId(const char* value) { m_membershipIdHasBeenSet = true; m_membershipId.assign(value); }
67 inline GroupMembership& WithMembershipId(const Aws::String& value) { SetMembershipId(value); return *this;}
68 inline GroupMembership& WithMembershipId(Aws::String&& value) { SetMembershipId(std::move(value)); return *this;}
69 inline GroupMembership& WithMembershipId(const char* value) { SetMembershipId(value); return *this;}
71
73
76 inline const Aws::String& GetGroupId() const{ return m_groupId; }
77 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
78 inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
79 inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
80 inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
81 inline GroupMembership& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
82 inline GroupMembership& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
83 inline GroupMembership& WithGroupId(const char* value) { SetGroupId(value); return *this;}
85
87
92 inline const MemberId& GetMemberId() const{ return m_memberId; }
93 inline bool MemberIdHasBeenSet() const { return m_memberIdHasBeenSet; }
94 inline void SetMemberId(const MemberId& value) { m_memberIdHasBeenSet = true; m_memberId = value; }
95 inline void SetMemberId(MemberId&& value) { m_memberIdHasBeenSet = true; m_memberId = std::move(value); }
96 inline GroupMembership& WithMemberId(const MemberId& value) { SetMemberId(value); return *this;}
97 inline GroupMembership& WithMemberId(MemberId&& value) { SetMemberId(std::move(value)); return *this;}
99 private:
100
101 Aws::String m_identityStoreId;
102 bool m_identityStoreIdHasBeenSet = false;
103
104 Aws::String m_membershipId;
105 bool m_membershipIdHasBeenSet = false;
106
107 Aws::String m_groupId;
108 bool m_groupIdHasBeenSet = false;
109
110 MemberId m_memberId;
111 bool m_memberIdHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace IdentityStore
116} // namespace Aws
GroupMembership & WithMembershipId(const char *value)
void SetMembershipId(const Aws::String &value)
void SetMemberId(const MemberId &value)
AWS_IDENTITYSTORE_API GroupMembership & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetIdentityStoreId() const
GroupMembership & WithGroupId(Aws::String &&value)
void SetIdentityStoreId(Aws::String &&value)
GroupMembership & WithIdentityStoreId(const Aws::String &value)
void SetGroupId(const Aws::String &value)
AWS_IDENTITYSTORE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IDENTITYSTORE_API GroupMembership(Aws::Utils::Json::JsonView jsonValue)
GroupMembership & WithMembershipId(Aws::String &&value)
const Aws::String & GetMembershipId() const
GroupMembership & WithGroupId(const char *value)
GroupMembership & WithMemberId(MemberId &&value)
GroupMembership & WithMembershipId(const Aws::String &value)
GroupMembership & WithIdentityStoreId(Aws::String &&value)
void SetIdentityStoreId(const Aws::String &value)
GroupMembership & WithGroupId(const Aws::String &value)
GroupMembership & WithIdentityStoreId(const char *value)
GroupMembership & WithMemberId(const MemberId &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue