AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
LambdaVolumeMount.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
9#include <aws/greengrassv2/model/LambdaFilesystemPermission.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GreengrassV2 {
21namespace Model {
22
32 public:
33 AWS_GREENGRASSV2_API LambdaVolumeMount() = default;
34 AWS_GREENGRASSV2_API LambdaVolumeMount(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GREENGRASSV2_API LambdaVolumeMount& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetSourcePath() const { return m_sourcePath; }
43 inline bool SourcePathHasBeenSet() const { return m_sourcePathHasBeenSet; }
44 template <typename SourcePathT = Aws::String>
45 void SetSourcePath(SourcePathT&& value) {
46 m_sourcePathHasBeenSet = true;
47 m_sourcePath = std::forward<SourcePathT>(value);
48 }
49 template <typename SourcePathT = Aws::String>
50 LambdaVolumeMount& WithSourcePath(SourcePathT&& value) {
51 SetSourcePath(std::forward<SourcePathT>(value));
52 return *this;
53 }
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) {
64 m_destinationPathHasBeenSet = true;
65 m_destinationPath = std::forward<DestinationPathT>(value);
66 }
67 template <typename DestinationPathT = Aws::String>
68 LambdaVolumeMount& WithDestinationPath(DestinationPathT&& value) {
69 SetDestinationPath(std::forward<DestinationPathT>(value));
70 return *this;
71 }
73
75
79 inline LambdaFilesystemPermission GetPermission() const { return m_permission; }
80 inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
82 m_permissionHasBeenSet = true;
83 m_permission = value;
84 }
86 SetPermission(value);
87 return *this;
88 }
90
92
96 inline bool GetAddGroupOwner() const { return m_addGroupOwner; }
97 inline bool AddGroupOwnerHasBeenSet() const { return m_addGroupOwnerHasBeenSet; }
98 inline void SetAddGroupOwner(bool value) {
99 m_addGroupOwnerHasBeenSet = true;
100 m_addGroupOwner = value;
101 }
103 SetAddGroupOwner(value);
104 return *this;
105 }
107 private:
108 Aws::String m_sourcePath;
109
110 Aws::String m_destinationPath;
111
113
114 bool m_addGroupOwner{false};
115 bool m_sourcePathHasBeenSet = false;
116 bool m_destinationPathHasBeenSet = false;
117 bool m_permissionHasBeenSet = false;
118 bool m_addGroupOwnerHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace GreengrassV2
123} // 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