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

The full POSIX identity, including user ID (Uid), group ID * (Gid), and any secondary groups IDs (SecondaryGids), * that controls your users' access to your Amazon EFS file systems. The POSIX * permissions that are set on files and directories in your file system determine * the level of access your users get when transferring files into and out of your * Amazon EFS file systems.

See Also:

AWS * API Reference

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

The POSIX user ID used for all EFS operations by this user.

*/ inline long long GetUid() const{ return m_uid; } /** *

The POSIX user ID used for all EFS operations by this user.

*/ inline bool UidHasBeenSet() const { return m_uidHasBeenSet; } /** *

The POSIX user ID used for all EFS operations by this user.

*/ inline void SetUid(long long value) { m_uidHasBeenSet = true; m_uid = value; } /** *

The POSIX user ID used for all EFS operations by this user.

*/ inline PosixProfile& WithUid(long long value) { SetUid(value); return *this;} /** *

The POSIX group ID used for all EFS operations by this user.

*/ inline long long GetGid() const{ return m_gid; } /** *

The POSIX group ID used for all EFS operations by this user.

*/ inline bool GidHasBeenSet() const { return m_gidHasBeenSet; } /** *

The POSIX group ID used for all EFS operations by this user.

*/ inline void SetGid(long long value) { m_gidHasBeenSet = true; m_gid = value; } /** *

The POSIX group ID used for all EFS operations by this user.

*/ inline PosixProfile& WithGid(long long value) { SetGid(value); return *this;} /** *

The secondary POSIX group IDs used for all EFS operations by this user.

*/ inline const Aws::Vector& GetSecondaryGids() const{ return m_secondaryGids; } /** *

The secondary POSIX group IDs used for all EFS operations by this user.

*/ inline bool SecondaryGidsHasBeenSet() const { return m_secondaryGidsHasBeenSet; } /** *

The secondary POSIX group IDs used for all EFS operations by this user.

*/ inline void SetSecondaryGids(const Aws::Vector& value) { m_secondaryGidsHasBeenSet = true; m_secondaryGids = value; } /** *

The secondary POSIX group IDs used for all EFS operations by this user.

*/ inline void SetSecondaryGids(Aws::Vector&& value) { m_secondaryGidsHasBeenSet = true; m_secondaryGids = std::move(value); } /** *

The secondary POSIX group IDs used for all EFS operations by this user.

*/ inline PosixProfile& WithSecondaryGids(const Aws::Vector& value) { SetSecondaryGids(value); return *this;} /** *

The secondary POSIX group IDs used for all EFS operations by this user.

*/ inline PosixProfile& WithSecondaryGids(Aws::Vector&& value) { SetSecondaryGids(std::move(value)); return *this;} /** *

The secondary POSIX group IDs used for all EFS operations by this user.

*/ inline PosixProfile& AddSecondaryGids(long long value) { m_secondaryGidsHasBeenSet = true; m_secondaryGids.push_back(value); return *this; } private: long long m_uid; bool m_uidHasBeenSet = false; long long m_gid; bool m_gidHasBeenSet = false; Aws::Vector m_secondaryGids; bool m_secondaryGidsHasBeenSet = false; }; } // namespace Model } // namespace Transfer } // namespace Aws