/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IdentityStore { namespace Model { /** *

Indicates whether a resource is a member of a group in the identity * store.

See Also:

AWS * API Reference

*/ class GroupMembershipExistenceResult { public: AWS_IDENTITYSTORE_API GroupMembershipExistenceResult(); AWS_IDENTITYSTORE_API GroupMembershipExistenceResult(Aws::Utils::Json::JsonView jsonValue); AWS_IDENTITYSTORE_API GroupMembershipExistenceResult& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IDENTITYSTORE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The identifier for a group in the identity store.

*/ inline const Aws::String& GetGroupId() const{ return m_groupId; } /** *

The identifier for a group in the identity store.

*/ inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; } /** *

The identifier for a group in the identity store.

*/ inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; } /** *

The identifier for a group in the identity store.

*/ inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); } /** *

The identifier for a group in the identity store.

*/ inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); } /** *

The identifier for a group in the identity store.

*/ inline GroupMembershipExistenceResult& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;} /** *

The identifier for a group in the identity store.

*/ inline GroupMembershipExistenceResult& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;} /** *

The identifier for a group in the identity store.

*/ inline GroupMembershipExistenceResult& WithGroupId(const char* value) { SetGroupId(value); return *this;} /** *

An object that contains the identifier of a group member. Setting the * UserID field to the specific identifier for a user indicates that * the user is a member of the group.

*/ inline const MemberId& GetMemberId() const{ return m_memberId; } /** *

An object that contains the identifier of a group member. Setting the * UserID field to the specific identifier for a user indicates that * the user is a member of the group.

*/ inline bool MemberIdHasBeenSet() const { return m_memberIdHasBeenSet; } /** *

An object that contains the identifier of a group member. Setting the * UserID field to the specific identifier for a user indicates that * the user is a member of the group.

*/ inline void SetMemberId(const MemberId& value) { m_memberIdHasBeenSet = true; m_memberId = value; } /** *

An object that contains the identifier of a group member. Setting the * UserID field to the specific identifier for a user indicates that * the user is a member of the group.

*/ inline void SetMemberId(MemberId&& value) { m_memberIdHasBeenSet = true; m_memberId = std::move(value); } /** *

An object that contains the identifier of a group member. Setting the * UserID field to the specific identifier for a user indicates that * the user is a member of the group.

*/ inline GroupMembershipExistenceResult& WithMemberId(const MemberId& value) { SetMemberId(value); return *this;} /** *

An object that contains the identifier of a group member. Setting the * UserID field to the specific identifier for a user indicates that * the user is a member of the group.

*/ inline GroupMembershipExistenceResult& WithMemberId(MemberId&& value) { SetMemberId(std::move(value)); return *this;} /** *

Indicates whether a membership relation exists or not.

*/ inline bool GetMembershipExists() const{ return m_membershipExists; } /** *

Indicates whether a membership relation exists or not.

*/ inline bool MembershipExistsHasBeenSet() const { return m_membershipExistsHasBeenSet; } /** *

Indicates whether a membership relation exists or not.

*/ inline void SetMembershipExists(bool value) { m_membershipExistsHasBeenSet = true; m_membershipExists = value; } /** *

Indicates whether a membership relation exists or not.

*/ inline GroupMembershipExistenceResult& WithMembershipExists(bool value) { SetMembershipExists(value); return *this;} private: Aws::String m_groupId; bool m_groupIdHasBeenSet = false; MemberId m_memberId; bool m_memberIdHasBeenSet = false; bool m_membershipExists; bool m_membershipExistsHasBeenSet = false; }; } // namespace Model } // namespace IdentityStore } // namespace Aws