AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
PosixUser.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/elasticfilesystem/EFS_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace EFS {
20namespace Model {
21
29class PosixUser {
30 public:
31 AWS_EFS_API PosixUser() = default;
32 AWS_EFS_API PosixUser(Aws::Utils::Json::JsonView jsonValue);
35
37
41 inline long long GetUid() const { return m_uid; }
42 inline bool UidHasBeenSet() const { return m_uidHasBeenSet; }
43 inline void SetUid(long long value) {
44 m_uidHasBeenSet = true;
45 m_uid = value;
46 }
47 inline PosixUser& WithUid(long long value) {
48 SetUid(value);
49 return *this;
50 }
52
54
58 inline long long GetGid() const { return m_gid; }
59 inline bool GidHasBeenSet() const { return m_gidHasBeenSet; }
60 inline void SetGid(long long value) {
61 m_gidHasBeenSet = true;
62 m_gid = value;
63 }
64 inline PosixUser& WithGid(long long value) {
65 SetGid(value);
66 return *this;
67 }
69
71
75 inline const Aws::Vector<long long>& GetSecondaryGids() const { return m_secondaryGids; }
76 inline bool SecondaryGidsHasBeenSet() const { return m_secondaryGidsHasBeenSet; }
77 template <typename SecondaryGidsT = Aws::Vector<long long>>
78 void SetSecondaryGids(SecondaryGidsT&& value) {
79 m_secondaryGidsHasBeenSet = true;
80 m_secondaryGids = std::forward<SecondaryGidsT>(value);
81 }
82 template <typename SecondaryGidsT = Aws::Vector<long long>>
83 PosixUser& WithSecondaryGids(SecondaryGidsT&& value) {
84 SetSecondaryGids(std::forward<SecondaryGidsT>(value));
85 return *this;
86 }
87 inline PosixUser& AddSecondaryGids(long long value) {
88 m_secondaryGidsHasBeenSet = true;
89 m_secondaryGids.push_back(value);
90 return *this;
91 }
93 private:
94 long long m_uid{0};
95
96 long long m_gid{0};
97
98 Aws::Vector<long long> m_secondaryGids;
99 bool m_uidHasBeenSet = false;
100 bool m_gidHasBeenSet = false;
101 bool m_secondaryGidsHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace EFS
106} // namespace Aws
AWS_EFS_API PosixUser(Aws::Utils::Json::JsonView jsonValue)
void SetUid(long long value)
Definition PosixUser.h:43
bool GidHasBeenSet() const
Definition PosixUser.h:59
AWS_EFS_API PosixUser & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetGid(long long value)
Definition PosixUser.h:60
AWS_EFS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSecondaryGids(SecondaryGidsT &&value)
Definition PosixUser.h:78
bool UidHasBeenSet() const
Definition PosixUser.h:42
PosixUser & AddSecondaryGids(long long value)
Definition PosixUser.h:87
AWS_EFS_API PosixUser()=default
PosixUser & WithGid(long long value)
Definition PosixUser.h:64
long long GetUid() const
Definition PosixUser.h:41
PosixUser & WithSecondaryGids(SecondaryGidsT &&value)
Definition PosixUser.h:83
PosixUser & WithUid(long long value)
Definition PosixUser.h:47
bool SecondaryGidsHasBeenSet() const
Definition PosixUser.h:76
const Aws::Vector< long long > & GetSecondaryGids() const
Definition PosixUser.h:75
long long GetGid() const
Definition PosixUser.h:58
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue