AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LambdaVolumeMount.h
1
6#pragma once
7#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/greengrassv2/model/LambdaFilesystemPermission.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GreengrassV2
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_GREENGRASSV2_API LambdaVolumeMount() = default;
39 AWS_GREENGRASSV2_API LambdaVolumeMount(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GREENGRASSV2_API LambdaVolumeMount& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetSourcePath() const { return m_sourcePath; }
49 inline bool SourcePathHasBeenSet() const { return m_sourcePathHasBeenSet; }
50 template<typename SourcePathT = Aws::String>
51 void SetSourcePath(SourcePathT&& value) { m_sourcePathHasBeenSet = true; m_sourcePath = std::forward<SourcePathT>(value); }
52 template<typename SourcePathT = Aws::String>
53 LambdaVolumeMount& WithSourcePath(SourcePathT&& value) { SetSourcePath(std::forward<SourcePathT>(value)); return *this;}
55
57
60 inline const Aws::String& GetDestinationPath() const { return m_destinationPath; }
61 inline bool DestinationPathHasBeenSet() const { return m_destinationPathHasBeenSet; }
62 template<typename DestinationPathT = Aws::String>
63 void SetDestinationPath(DestinationPathT&& value) { m_destinationPathHasBeenSet = true; m_destinationPath = std::forward<DestinationPathT>(value); }
64 template<typename DestinationPathT = Aws::String>
65 LambdaVolumeMount& WithDestinationPath(DestinationPathT&& value) { SetDestinationPath(std::forward<DestinationPathT>(value)); return *this;}
67
69
73 inline LambdaFilesystemPermission GetPermission() const { return m_permission; }
74 inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
75 inline void SetPermission(LambdaFilesystemPermission value) { m_permissionHasBeenSet = true; m_permission = value; }
78
80
84 inline bool GetAddGroupOwner() const { return m_addGroupOwner; }
85 inline bool AddGroupOwnerHasBeenSet() const { return m_addGroupOwnerHasBeenSet; }
86 inline void SetAddGroupOwner(bool value) { m_addGroupOwnerHasBeenSet = true; m_addGroupOwner = value; }
87 inline LambdaVolumeMount& WithAddGroupOwner(bool value) { SetAddGroupOwner(value); return *this;}
89 private:
90
91 Aws::String m_sourcePath;
92 bool m_sourcePathHasBeenSet = false;
93
94 Aws::String m_destinationPath;
95 bool m_destinationPathHasBeenSet = false;
96
98 bool m_permissionHasBeenSet = false;
99
100 bool m_addGroupOwner{false};
101 bool m_addGroupOwnerHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace GreengrassV2
106} // namespace Aws
LambdaFilesystemPermission GetPermission() const
LambdaVolumeMount & WithPermission(LambdaFilesystemPermission value)
AWS_GREENGRASSV2_API LambdaVolumeMount()=default
AWS_GREENGRASSV2_API LambdaVolumeMount(Aws::Utils::Json::JsonView jsonValue)
LambdaVolumeMount & WithDestinationPath(DestinationPathT &&value)
void SetPermission(LambdaFilesystemPermission value)
void SetDestinationPath(DestinationPathT &&value)
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDestinationPath() const
AWS_GREENGRASSV2_API LambdaVolumeMount & operator=(Aws::Utils::Json::JsonView jsonValue)
LambdaVolumeMount & WithAddGroupOwner(bool value)
LambdaVolumeMount & WithSourcePath(SourcePathT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue