AWS SDK for C++  1.9.123
AWS SDK for C++
LambdaVolumeMount.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace GreengrassV2
23 {
24 namespace Model
25 {
26 
36  {
37  public:
42 
43 
47  inline const Aws::String& GetSourcePath() const{ return m_sourcePath; }
48 
52  inline bool SourcePathHasBeenSet() const { return m_sourcePathHasBeenSet; }
53 
57  inline void SetSourcePath(const Aws::String& value) { m_sourcePathHasBeenSet = true; m_sourcePath = value; }
58 
62  inline void SetSourcePath(Aws::String&& value) { m_sourcePathHasBeenSet = true; m_sourcePath = std::move(value); }
63 
67  inline void SetSourcePath(const char* value) { m_sourcePathHasBeenSet = true; m_sourcePath.assign(value); }
68 
72  inline LambdaVolumeMount& WithSourcePath(const Aws::String& value) { SetSourcePath(value); return *this;}
73 
77  inline LambdaVolumeMount& WithSourcePath(Aws::String&& value) { SetSourcePath(std::move(value)); return *this;}
78 
82  inline LambdaVolumeMount& WithSourcePath(const char* value) { SetSourcePath(value); return *this;}
83 
84 
88  inline const Aws::String& GetDestinationPath() const{ return m_destinationPath; }
89 
93  inline bool DestinationPathHasBeenSet() const { return m_destinationPathHasBeenSet; }
94 
98  inline void SetDestinationPath(const Aws::String& value) { m_destinationPathHasBeenSet = true; m_destinationPath = value; }
99 
103  inline void SetDestinationPath(Aws::String&& value) { m_destinationPathHasBeenSet = true; m_destinationPath = std::move(value); }
104 
108  inline void SetDestinationPath(const char* value) { m_destinationPathHasBeenSet = true; m_destinationPath.assign(value); }
109 
113  inline LambdaVolumeMount& WithDestinationPath(const Aws::String& value) { SetDestinationPath(value); return *this;}
114 
118  inline LambdaVolumeMount& WithDestinationPath(Aws::String&& value) { SetDestinationPath(std::move(value)); return *this;}
119 
123  inline LambdaVolumeMount& WithDestinationPath(const char* value) { SetDestinationPath(value); return *this;}
124 
125 
130  inline const LambdaFilesystemPermission& GetPermission() const{ return m_permission; }
131 
136  inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
137 
142  inline void SetPermission(const LambdaFilesystemPermission& value) { m_permissionHasBeenSet = true; m_permission = value; }
143 
148  inline void SetPermission(LambdaFilesystemPermission&& value) { m_permissionHasBeenSet = true; m_permission = std::move(value); }
149 
154  inline LambdaVolumeMount& WithPermission(const LambdaFilesystemPermission& value) { SetPermission(value); return *this;}
155 
160  inline LambdaVolumeMount& WithPermission(LambdaFilesystemPermission&& value) { SetPermission(std::move(value)); return *this;}
161 
162 
167  inline bool GetAddGroupOwner() const{ return m_addGroupOwner; }
168 
173  inline bool AddGroupOwnerHasBeenSet() const { return m_addGroupOwnerHasBeenSet; }
174 
179  inline void SetAddGroupOwner(bool value) { m_addGroupOwnerHasBeenSet = true; m_addGroupOwner = value; }
180 
185  inline LambdaVolumeMount& WithAddGroupOwner(bool value) { SetAddGroupOwner(value); return *this;}
186 
187  private:
188 
189  Aws::String m_sourcePath;
190  bool m_sourcePathHasBeenSet;
191 
192  Aws::String m_destinationPath;
193  bool m_destinationPathHasBeenSet;
194 
195  LambdaFilesystemPermission m_permission;
196  bool m_permissionHasBeenSet;
197 
198  bool m_addGroupOwner;
199  bool m_addGroupOwnerHasBeenSet;
200  };
201 
202 } // namespace Model
203 } // namespace GreengrassV2
204 } // namespace Aws
Aws::GreengrassV2::Model::LambdaVolumeMount::SourcePathHasBeenSet
bool SourcePathHasBeenSet() const
Definition: LambdaVolumeMount.h:52
Aws::GreengrassV2::Model::LambdaVolumeMount::SetDestinationPath
void SetDestinationPath(Aws::String &&value)
Definition: LambdaVolumeMount.h:103
Aws::GreengrassV2::Model::LambdaVolumeMount::WithAddGroupOwner
LambdaVolumeMount & WithAddGroupOwner(bool value)
Definition: LambdaVolumeMount.h:185
Aws::GreengrassV2::Model::LambdaVolumeMount::WithDestinationPath
LambdaVolumeMount & WithDestinationPath(Aws::String &&value)
Definition: LambdaVolumeMount.h:118
Aws::GreengrassV2::Model::LambdaVolumeMount
Definition: LambdaVolumeMount.h:36
Aws::GreengrassV2::Model::LambdaVolumeMount::WithSourcePath
LambdaVolumeMount & WithSourcePath(Aws::String &&value)
Definition: LambdaVolumeMount.h:77
GreengrassV2_EXPORTS.h
Aws::GreengrassV2::Model::LambdaVolumeMount::DestinationPathHasBeenSet
bool DestinationPathHasBeenSet() const
Definition: LambdaVolumeMount.h:93
Aws::GreengrassV2::Model::LambdaFilesystemPermission
LambdaFilesystemPermission
Definition: LambdaFilesystemPermission.h:17
Aws::GreengrassV2::Model::LambdaVolumeMount::SetDestinationPath
void SetDestinationPath(const Aws::String &value)
Definition: LambdaVolumeMount.h:98
LambdaFilesystemPermission.h
Aws::GreengrassV2::Model::LambdaVolumeMount::operator=
LambdaVolumeMount & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GREENGRASSV2_API
#define AWS_GREENGRASSV2_API
Definition: GreengrassV2_EXPORTS.h:28
Aws::GreengrassV2::Model::LambdaVolumeMount::WithDestinationPath
LambdaVolumeMount & WithDestinationPath(const char *value)
Definition: LambdaVolumeMount.h:123
Aws::GreengrassV2::Model::LambdaVolumeMount::SetSourcePath
void SetSourcePath(const char *value)
Definition: LambdaVolumeMount.h:67
Aws::GreengrassV2::Model::LambdaVolumeMount::WithSourcePath
LambdaVolumeMount & WithSourcePath(const Aws::String &value)
Definition: LambdaVolumeMount.h:72
Aws::GreengrassV2::Model::LambdaVolumeMount::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GreengrassV2::Model::LambdaVolumeMount::LambdaVolumeMount
LambdaVolumeMount()
Aws::GreengrassV2::Model::LambdaVolumeMount::AddGroupOwnerHasBeenSet
bool AddGroupOwnerHasBeenSet() const
Definition: LambdaVolumeMount.h:173
Aws::GreengrassV2::Model::LambdaVolumeMount::LambdaVolumeMount
LambdaVolumeMount(Aws::Utils::Json::JsonView jsonValue)
Aws::GreengrassV2::Model::LambdaVolumeMount::GetPermission
const LambdaFilesystemPermission & GetPermission() const
Definition: LambdaVolumeMount.h:130
Aws::GreengrassV2::Model::LambdaVolumeMount::SetDestinationPath
void SetDestinationPath(const char *value)
Definition: LambdaVolumeMount.h:108
Aws::GreengrassV2::Model::LambdaVolumeMount::SetSourcePath
void SetSourcePath(const Aws::String &value)
Definition: LambdaVolumeMount.h:57
Aws::GreengrassV2::Model::LambdaVolumeMount::SetSourcePath
void SetSourcePath(Aws::String &&value)
Definition: LambdaVolumeMount.h:62
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::GreengrassV2::Model::LambdaVolumeMount::WithPermission
LambdaVolumeMount & WithPermission(LambdaFilesystemPermission &&value)
Definition: LambdaVolumeMount.h:160
Aws::GreengrassV2::Model::LambdaVolumeMount::WithPermission
LambdaVolumeMount & WithPermission(const LambdaFilesystemPermission &value)
Definition: LambdaVolumeMount.h:154
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GreengrassV2::Model::LambdaVolumeMount::GetDestinationPath
const Aws::String & GetDestinationPath() const
Definition: LambdaVolumeMount.h:88
Aws::GreengrassV2::Model::LambdaVolumeMount::SetPermission
void SetPermission(const LambdaFilesystemPermission &value)
Definition: LambdaVolumeMount.h:142
Aws::GreengrassV2::Model::LambdaVolumeMount::GetAddGroupOwner
bool GetAddGroupOwner() const
Definition: LambdaVolumeMount.h:167
Aws::GreengrassV2::Model::LambdaVolumeMount::SetAddGroupOwner
void SetAddGroupOwner(bool value)
Definition: LambdaVolumeMount.h:179
Aws
Definition: AccessManagementClient.h:15
Aws::GreengrassV2::Model::LambdaVolumeMount::SetPermission
void SetPermission(LambdaFilesystemPermission &&value)
Definition: LambdaVolumeMount.h:148
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GreengrassV2::Model::LambdaVolumeMount::GetSourcePath
const Aws::String & GetSourcePath() const
Definition: LambdaVolumeMount.h:47
Aws::GreengrassV2::Model::LambdaVolumeMount::WithSourcePath
LambdaVolumeMount & WithSourcePath(const char *value)
Definition: LambdaVolumeMount.h:82
Aws::GreengrassV2::Model::LambdaVolumeMount::WithDestinationPath
LambdaVolumeMount & WithDestinationPath(const Aws::String &value)
Definition: LambdaVolumeMount.h:113
Aws::GreengrassV2::Model::LambdaVolumeMount::PermissionHasBeenSet
bool PermissionHasBeenSet() const
Definition: LambdaVolumeMount.h:136