AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreationInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.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
40 public:
41 AWS_EFS_API CreationInfo() = default;
45
47
51 inline long long GetOwnerUid() const { return m_ownerUid; }
52 inline bool OwnerUidHasBeenSet() const { return m_ownerUidHasBeenSet; }
53 inline void SetOwnerUid(long long value) {
54 m_ownerUidHasBeenSet = true;
55 m_ownerUid = value;
56 }
57 inline CreationInfo& WithOwnerUid(long long value) {
58 SetOwnerUid(value);
59 return *this;
60 }
62
64
68 inline long long GetOwnerGid() const { return m_ownerGid; }
69 inline bool OwnerGidHasBeenSet() const { return m_ownerGidHasBeenSet; }
70 inline void SetOwnerGid(long long value) {
71 m_ownerGidHasBeenSet = true;
72 m_ownerGid = value;
73 }
74 inline CreationInfo& WithOwnerGid(long long value) {
75 SetOwnerGid(value);
76 return *this;
77 }
79
81
85 inline const Aws::String& GetPermissions() const { return m_permissions; }
86 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
87 template <typename PermissionsT = Aws::String>
88 void SetPermissions(PermissionsT&& value) {
89 m_permissionsHasBeenSet = true;
90 m_permissions = std::forward<PermissionsT>(value);
91 }
92 template <typename PermissionsT = Aws::String>
93 CreationInfo& WithPermissions(PermissionsT&& value) {
94 SetPermissions(std::forward<PermissionsT>(value));
95 return *this;
96 }
98 private:
99 long long m_ownerUid{0};
100
101 long long m_ownerGid{0};
102
103 Aws::String m_permissions;
104 bool m_ownerUidHasBeenSet = false;
105 bool m_ownerGidHasBeenSet = false;
106 bool m_permissionsHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace EFS
111} // namespace Aws
AWS_EFS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetPermissions() const
CreationInfo & WithPermissions(PermissionsT &&value)
CreationInfo & WithOwnerGid(long long value)
AWS_EFS_API CreationInfo()=default
void SetOwnerUid(long long value)
CreationInfo & WithOwnerUid(long long value)
long long GetOwnerGid() const
AWS_EFS_API CreationInfo(Aws::Utils::Json::JsonView jsonValue)
void SetOwnerGid(long long value)
long long GetOwnerUid() const
void SetPermissions(PermissionsT &&value)
AWS_EFS_API CreationInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue