AWS SDK for C++  1.9.123
AWS SDK for C++
NFSFileShareDefaults.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace StorageGateway
22 {
23 namespace Model
24 {
25 
37  {
38  public:
43 
44 
50  inline const Aws::String& GetFileMode() const{ return m_fileMode; }
51 
57  inline bool FileModeHasBeenSet() const { return m_fileModeHasBeenSet; }
58 
64  inline void SetFileMode(const Aws::String& value) { m_fileModeHasBeenSet = true; m_fileMode = value; }
65 
71  inline void SetFileMode(Aws::String&& value) { m_fileModeHasBeenSet = true; m_fileMode = std::move(value); }
72 
78  inline void SetFileMode(const char* value) { m_fileModeHasBeenSet = true; m_fileMode.assign(value); }
79 
85  inline NFSFileShareDefaults& WithFileMode(const Aws::String& value) { SetFileMode(value); return *this;}
86 
92  inline NFSFileShareDefaults& WithFileMode(Aws::String&& value) { SetFileMode(std::move(value)); return *this;}
93 
99  inline NFSFileShareDefaults& WithFileMode(const char* value) { SetFileMode(value); return *this;}
100 
101 
107  inline const Aws::String& GetDirectoryMode() const{ return m_directoryMode; }
108 
114  inline bool DirectoryModeHasBeenSet() const { return m_directoryModeHasBeenSet; }
115 
121  inline void SetDirectoryMode(const Aws::String& value) { m_directoryModeHasBeenSet = true; m_directoryMode = value; }
122 
128  inline void SetDirectoryMode(Aws::String&& value) { m_directoryModeHasBeenSet = true; m_directoryMode = std::move(value); }
129 
135  inline void SetDirectoryMode(const char* value) { m_directoryModeHasBeenSet = true; m_directoryMode.assign(value); }
136 
142  inline NFSFileShareDefaults& WithDirectoryMode(const Aws::String& value) { SetDirectoryMode(value); return *this;}
143 
149  inline NFSFileShareDefaults& WithDirectoryMode(Aws::String&& value) { SetDirectoryMode(std::move(value)); return *this;}
150 
156  inline NFSFileShareDefaults& WithDirectoryMode(const char* value) { SetDirectoryMode(value); return *this;}
157 
158 
163  inline long long GetGroupId() const{ return m_groupId; }
164 
169  inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
170 
175  inline void SetGroupId(long long value) { m_groupIdHasBeenSet = true; m_groupId = value; }
176 
181  inline NFSFileShareDefaults& WithGroupId(long long value) { SetGroupId(value); return *this;}
182 
183 
188  inline long long GetOwnerId() const{ return m_ownerId; }
189 
194  inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
195 
200  inline void SetOwnerId(long long value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
201 
206  inline NFSFileShareDefaults& WithOwnerId(long long value) { SetOwnerId(value); return *this;}
207 
208  private:
209 
210  Aws::String m_fileMode;
211  bool m_fileModeHasBeenSet;
212 
213  Aws::String m_directoryMode;
214  bool m_directoryModeHasBeenSet;
215 
216  long long m_groupId;
217  bool m_groupIdHasBeenSet;
218 
219  long long m_ownerId;
220  bool m_ownerIdHasBeenSet;
221  };
222 
223 } // namespace Model
224 } // namespace StorageGateway
225 } // namespace Aws
Aws::StorageGateway::Model::NFSFileShareDefaults::GetDirectoryMode
const Aws::String & GetDirectoryMode() const
Definition: NFSFileShareDefaults.h:107
Aws::StorageGateway::Model::NFSFileShareDefaults::NFSFileShareDefaults
NFSFileShareDefaults()
Aws::StorageGateway::Model::NFSFileShareDefaults::WithFileMode
NFSFileShareDefaults & WithFileMode(const Aws::String &value)
Definition: NFSFileShareDefaults.h:85
Aws::StorageGateway::Model::NFSFileShareDefaults::OwnerIdHasBeenSet
bool OwnerIdHasBeenSet() const
Definition: NFSFileShareDefaults.h:194
Aws::StorageGateway::Model::NFSFileShareDefaults::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::StorageGateway::Model::NFSFileShareDefaults::WithOwnerId
NFSFileShareDefaults & WithOwnerId(long long value)
Definition: NFSFileShareDefaults.h:206
Aws::StorageGateway::Model::NFSFileShareDefaults::GetFileMode
const Aws::String & GetFileMode() const
Definition: NFSFileShareDefaults.h:50
Aws::StorageGateway::Model::NFSFileShareDefaults::GroupIdHasBeenSet
bool GroupIdHasBeenSet() const
Definition: NFSFileShareDefaults.h:169
Aws::StorageGateway::Model::NFSFileShareDefaults::NFSFileShareDefaults
NFSFileShareDefaults(Aws::Utils::Json::JsonView jsonValue)
Aws::StorageGateway::Model::NFSFileShareDefaults::WithDirectoryMode
NFSFileShareDefaults & WithDirectoryMode(const Aws::String &value)
Definition: NFSFileShareDefaults.h:142
Aws::StorageGateway::Model::NFSFileShareDefaults::WithGroupId
NFSFileShareDefaults & WithGroupId(long long value)
Definition: NFSFileShareDefaults.h:181
Aws::StorageGateway::Model::NFSFileShareDefaults::DirectoryModeHasBeenSet
bool DirectoryModeHasBeenSet() const
Definition: NFSFileShareDefaults.h:114
Aws::StorageGateway::Model::NFSFileShareDefaults::SetDirectoryMode
void SetDirectoryMode(const char *value)
Definition: NFSFileShareDefaults.h:135
Aws::StorageGateway::Model::NFSFileShareDefaults::GetOwnerId
long long GetOwnerId() const
Definition: NFSFileShareDefaults.h:188
Aws::StorageGateway::Model::NFSFileShareDefaults::SetDirectoryMode
void SetDirectoryMode(Aws::String &&value)
Definition: NFSFileShareDefaults.h:128
Aws::StorageGateway::Model::NFSFileShareDefaults::WithFileMode
NFSFileShareDefaults & WithFileMode(Aws::String &&value)
Definition: NFSFileShareDefaults.h:92
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::NFSFileShareDefaults::WithFileMode
NFSFileShareDefaults & WithFileMode(const char *value)
Definition: NFSFileShareDefaults.h:99
Aws::StorageGateway::Model::NFSFileShareDefaults::SetFileMode
void SetFileMode(Aws::String &&value)
Definition: NFSFileShareDefaults.h:71
Aws::StorageGateway::Model::NFSFileShareDefaults::SetDirectoryMode
void SetDirectoryMode(const Aws::String &value)
Definition: NFSFileShareDefaults.h:121
Aws::StorageGateway::Model::NFSFileShareDefaults::WithDirectoryMode
NFSFileShareDefaults & WithDirectoryMode(const char *value)
Definition: NFSFileShareDefaults.h:156
Aws::StorageGateway::Model::NFSFileShareDefaults
Definition: NFSFileShareDefaults.h:37
Aws
Definition: AccessManagementClient.h:15
StorageGateway_EXPORTS.h
Aws::StorageGateway::Model::NFSFileShareDefaults::operator=
NFSFileShareDefaults & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::StorageGateway::Model::NFSFileShareDefaults::GetGroupId
long long GetGroupId() const
Definition: NFSFileShareDefaults.h:163
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::StorageGateway::Model::NFSFileShareDefaults::SetGroupId
void SetGroupId(long long value)
Definition: NFSFileShareDefaults.h:175
Aws::StorageGateway::Model::NFSFileShareDefaults::SetOwnerId
void SetOwnerId(long long value)
Definition: NFSFileShareDefaults.h:200
Aws::StorageGateway::Model::NFSFileShareDefaults::SetFileMode
void SetFileMode(const Aws::String &value)
Definition: NFSFileShareDefaults.h:64
Aws::StorageGateway::Model::NFSFileShareDefaults::WithDirectoryMode
NFSFileShareDefaults & WithDirectoryMode(Aws::String &&value)
Definition: NFSFileShareDefaults.h:149
Aws::StorageGateway::Model::NFSFileShareDefaults::FileModeHasBeenSet
bool FileModeHasBeenSet() const
Definition: NFSFileShareDefaults.h:57
Aws::StorageGateway::Model::NFSFileShareDefaults::SetFileMode
void SetFileMode(const char *value)
Definition: NFSFileShareDefaults.h:78