AWS SDK for C++

AWS SDK for C++ Version 1.11.689

Loading...
Searching...
No Matches
PosixProfile.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Transfer {
20namespace Model {
21
33 public:
34 AWS_TRANSFER_API PosixProfile() = default;
35 AWS_TRANSFER_API PosixProfile(Aws::Utils::Json::JsonView jsonValue);
37 AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline long long GetUid() const { return m_uid; }
44 inline bool UidHasBeenSet() const { return m_uidHasBeenSet; }
45 inline void SetUid(long long value) {
46 m_uidHasBeenSet = true;
47 m_uid = value;
48 }
49 inline PosixProfile& WithUid(long long value) {
50 SetUid(value);
51 return *this;
52 }
54
56
59 inline long long GetGid() const { return m_gid; }
60 inline bool GidHasBeenSet() const { return m_gidHasBeenSet; }
61 inline void SetGid(long long value) {
62 m_gidHasBeenSet = true;
63 m_gid = value;
64 }
65 inline PosixProfile& WithGid(long long value) {
66 SetGid(value);
67 return *this;
68 }
70
72
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 PosixProfile& WithSecondaryGids(SecondaryGidsT&& value) {
84 SetSecondaryGids(std::forward<SecondaryGidsT>(value));
85 return *this;
86 }
87 inline PosixProfile& 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 bool m_uidHasBeenSet = false;
96
97 long long m_gid{0};
98 bool m_gidHasBeenSet = false;
99
100 Aws::Vector<long long> m_secondaryGids;
101 bool m_secondaryGidsHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace Transfer
106} // namespace Aws
const Aws::Vector< long long > & GetSecondaryGids() const
PosixProfile & WithSecondaryGids(SecondaryGidsT &&value)
PosixProfile & WithGid(long long value)
AWS_TRANSFER_API PosixProfile & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSecondaryGids(SecondaryGidsT &&value)
AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const
PosixProfile & AddSecondaryGids(long long value)
AWS_TRANSFER_API PosixProfile()=default
PosixProfile & WithUid(long long value)
AWS_TRANSFER_API PosixProfile(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue