AWS SDK for C++

AWS SDK for C++ Version 1.11.787

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