AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PosixUser.h
1
6#pragma once
7#include <aws/elasticfilesystem/EFS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace EFS
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_EFS_API PosixUser();
37 AWS_EFS_API PosixUser(Aws::Utils::Json::JsonView jsonValue);
40
41
43
47 inline long long GetUid() const{ return m_uid; }
48 inline bool UidHasBeenSet() const { return m_uidHasBeenSet; }
49 inline void SetUid(long long value) { m_uidHasBeenSet = true; m_uid = value; }
50 inline PosixUser& WithUid(long long value) { SetUid(value); return *this;}
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) { m_gidHasBeenSet = true; m_gid = value; }
61 inline PosixUser& WithGid(long long value) { SetGid(value); return *this;}
63
65
69 inline const Aws::Vector<long long>& GetSecondaryGids() const{ return m_secondaryGids; }
70 inline bool SecondaryGidsHasBeenSet() const { return m_secondaryGidsHasBeenSet; }
71 inline void SetSecondaryGids(const Aws::Vector<long long>& value) { m_secondaryGidsHasBeenSet = true; m_secondaryGids = value; }
72 inline void SetSecondaryGids(Aws::Vector<long long>&& value) { m_secondaryGidsHasBeenSet = true; m_secondaryGids = std::move(value); }
73 inline PosixUser& WithSecondaryGids(const Aws::Vector<long long>& value) { SetSecondaryGids(value); return *this;}
74 inline PosixUser& WithSecondaryGids(Aws::Vector<long long>&& value) { SetSecondaryGids(std::move(value)); return *this;}
75 inline PosixUser& AddSecondaryGids(long long value) { m_secondaryGidsHasBeenSet = true; m_secondaryGids.push_back(value); return *this; }
77 private:
78
79 long long m_uid;
80 bool m_uidHasBeenSet = false;
81
82 long long m_gid;
83 bool m_gidHasBeenSet = false;
84
85 Aws::Vector<long long> m_secondaryGids;
86 bool m_secondaryGidsHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace EFS
91} // namespace Aws
AWS_EFS_API PosixUser(Aws::Utils::Json::JsonView jsonValue)
void SetUid(long long value)
Definition PosixUser.h:49
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(const Aws::Vector< long long > &value)
Definition PosixUser.h:71
bool UidHasBeenSet() const
Definition PosixUser.h:48
PosixUser & AddSecondaryGids(long long value)
Definition PosixUser.h:75
PosixUser & WithSecondaryGids(const Aws::Vector< long long > &value)
Definition PosixUser.h:73
void SetSecondaryGids(Aws::Vector< long long > &&value)
Definition PosixUser.h:72
PosixUser & WithGid(long long value)
Definition PosixUser.h:61
long long GetUid() const
Definition PosixUser.h:47
PosixUser & WithSecondaryGids(Aws::Vector< long long > &&value)
Definition PosixUser.h:74
PosixUser & WithUid(long long value)
Definition PosixUser.h:50
bool SecondaryGidsHasBeenSet() const
Definition PosixUser.h:70
const Aws::Vector< long long > & GetSecondaryGids() const
Definition PosixUser.h:69
long long GetGid() const
Definition PosixUser.h:58
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue