/** * 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 FinSpaceData { namespace Model { /** *

The structure of a permission group associated with a user * account.

See Also:

AWS * API Reference

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

The unique identifier for the permission group.

*/ inline const Aws::String& GetPermissionGroupId() const{ return m_permissionGroupId; } /** *

The unique identifier for the permission group.

*/ inline bool PermissionGroupIdHasBeenSet() const { return m_permissionGroupIdHasBeenSet; } /** *

The unique identifier for the permission group.

*/ inline void SetPermissionGroupId(const Aws::String& value) { m_permissionGroupIdHasBeenSet = true; m_permissionGroupId = value; } /** *

The unique identifier for the permission group.

*/ inline void SetPermissionGroupId(Aws::String&& value) { m_permissionGroupIdHasBeenSet = true; m_permissionGroupId = std::move(value); } /** *

The unique identifier for the permission group.

*/ inline void SetPermissionGroupId(const char* value) { m_permissionGroupIdHasBeenSet = true; m_permissionGroupId.assign(value); } /** *

The unique identifier for the permission group.

*/ inline PermissionGroupByUser& WithPermissionGroupId(const Aws::String& value) { SetPermissionGroupId(value); return *this;} /** *

The unique identifier for the permission group.

*/ inline PermissionGroupByUser& WithPermissionGroupId(Aws::String&& value) { SetPermissionGroupId(std::move(value)); return *this;} /** *

The unique identifier for the permission group.

*/ inline PermissionGroupByUser& WithPermissionGroupId(const char* value) { SetPermissionGroupId(value); return *this;} /** *

The name of the permission group.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the permission group.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the permission group.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the permission group.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the permission group.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the permission group.

*/ inline PermissionGroupByUser& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the permission group.

*/ inline PermissionGroupByUser& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the permission group.

*/ inline PermissionGroupByUser& WithName(const char* value) { SetName(value); return *this;} /** *

Indicates the status of the user account within a permission group.

    *
  • ADDITION_IN_PROGRESS – The user account is currently being * added to the permission group.

  • ADDITION_SUCCESS * – The user account is successfully added to the permission group.

  • *

    REMOVAL_IN_PROGRESS – The user is currently being removed from * the permission group.

*/ inline const PermissionGroupMembershipStatus& GetMembershipStatus() const{ return m_membershipStatus; } /** *

Indicates the status of the user account within a permission group.

    *
  • ADDITION_IN_PROGRESS – The user account is currently being * added to the permission group.

  • ADDITION_SUCCESS * – The user account is successfully added to the permission group.

  • *

    REMOVAL_IN_PROGRESS – The user is currently being removed from * the permission group.

*/ inline bool MembershipStatusHasBeenSet() const { return m_membershipStatusHasBeenSet; } /** *

Indicates the status of the user account within a permission group.

    *
  • ADDITION_IN_PROGRESS – The user account is currently being * added to the permission group.

  • ADDITION_SUCCESS * – The user account is successfully added to the permission group.

  • *

    REMOVAL_IN_PROGRESS – The user is currently being removed from * the permission group.

*/ inline void SetMembershipStatus(const PermissionGroupMembershipStatus& value) { m_membershipStatusHasBeenSet = true; m_membershipStatus = value; } /** *

Indicates the status of the user account within a permission group.

    *
  • ADDITION_IN_PROGRESS – The user account is currently being * added to the permission group.

  • ADDITION_SUCCESS * – The user account is successfully added to the permission group.

  • *

    REMOVAL_IN_PROGRESS – The user is currently being removed from * the permission group.

*/ inline void SetMembershipStatus(PermissionGroupMembershipStatus&& value) { m_membershipStatusHasBeenSet = true; m_membershipStatus = std::move(value); } /** *

Indicates the status of the user account within a permission group.

    *
  • ADDITION_IN_PROGRESS – The user account is currently being * added to the permission group.

  • ADDITION_SUCCESS * – The user account is successfully added to the permission group.

  • *

    REMOVAL_IN_PROGRESS – The user is currently being removed from * the permission group.

*/ inline PermissionGroupByUser& WithMembershipStatus(const PermissionGroupMembershipStatus& value) { SetMembershipStatus(value); return *this;} /** *

Indicates the status of the user account within a permission group.

    *
  • ADDITION_IN_PROGRESS – The user account is currently being * added to the permission group.

  • ADDITION_SUCCESS * – The user account is successfully added to the permission group.

  • *

    REMOVAL_IN_PROGRESS – The user is currently being removed from * the permission group.

*/ inline PermissionGroupByUser& WithMembershipStatus(PermissionGroupMembershipStatus&& value) { SetMembershipStatus(std::move(value)); return *this;} private: Aws::String m_permissionGroupId; bool m_permissionGroupIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; PermissionGroupMembershipStatus m_membershipStatus; bool m_membershipStatusHasBeenSet = false; }; } // namespace Model } // namespace FinSpaceData } // namespace Aws