AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
MountPoint.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Batch {
20namespace Model {
21
32 public:
33 AWS_BATCH_API MountPoint() = default;
34 AWS_BATCH_API MountPoint(Aws::Utils::Json::JsonView jsonValue);
36 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetContainerPath() const { return m_containerPath; }
43 inline bool ContainerPathHasBeenSet() const { return m_containerPathHasBeenSet; }
44 template <typename ContainerPathT = Aws::String>
45 void SetContainerPath(ContainerPathT&& value) {
46 m_containerPathHasBeenSet = true;
47 m_containerPath = std::forward<ContainerPathT>(value);
48 }
49 template <typename ContainerPathT = Aws::String>
50 MountPoint& WithContainerPath(ContainerPathT&& value) {
51 SetContainerPath(std::forward<ContainerPathT>(value));
52 return *this;
53 }
55
57
62 inline bool GetReadOnly() const { return m_readOnly; }
63 inline bool ReadOnlyHasBeenSet() const { return m_readOnlyHasBeenSet; }
64 inline void SetReadOnly(bool value) {
65 m_readOnlyHasBeenSet = true;
66 m_readOnly = value;
67 }
68 inline MountPoint& WithReadOnly(bool value) {
69 SetReadOnly(value);
70 return *this;
71 }
73
75
78 inline const Aws::String& GetSourceVolume() const { return m_sourceVolume; }
79 inline bool SourceVolumeHasBeenSet() const { return m_sourceVolumeHasBeenSet; }
80 template <typename SourceVolumeT = Aws::String>
81 void SetSourceVolume(SourceVolumeT&& value) {
82 m_sourceVolumeHasBeenSet = true;
83 m_sourceVolume = std::forward<SourceVolumeT>(value);
84 }
85 template <typename SourceVolumeT = Aws::String>
86 MountPoint& WithSourceVolume(SourceVolumeT&& value) {
87 SetSourceVolume(std::forward<SourceVolumeT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_containerPath;
93
94 bool m_readOnly{false};
95
96 Aws::String m_sourceVolume;
97 bool m_containerPathHasBeenSet = false;
98 bool m_readOnlyHasBeenSet = false;
99 bool m_sourceVolumeHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace Batch
104} // namespace Aws
const Aws::String & GetSourceVolume() const
Definition MountPoint.h:78
AWS_BATCH_API MountPoint & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
bool ContainerPathHasBeenSet() const
Definition MountPoint.h:43
void SetContainerPath(ContainerPathT &&value)
Definition MountPoint.h:45
MountPoint & WithReadOnly(bool value)
Definition MountPoint.h:68
MountPoint & WithContainerPath(ContainerPathT &&value)
Definition MountPoint.h:50
bool SourceVolumeHasBeenSet() const
Definition MountPoint.h:79
AWS_BATCH_API MountPoint()=default
const Aws::String & GetContainerPath() const
Definition MountPoint.h:42
MountPoint & WithSourceVolume(SourceVolumeT &&value)
Definition MountPoint.h:86
void SetSourceVolume(SourceVolumeT &&value)
Definition MountPoint.h:81
AWS_BATCH_API MountPoint(Aws::Utils::Json::JsonView jsonValue)
void SetReadOnly(bool value)
Definition MountPoint.h:64
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue