AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Batch
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_BATCH_API MountPoint() = default;
39 AWS_BATCH_API MountPoint(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetContainerPath() const { return m_containerPath; }
49 inline bool ContainerPathHasBeenSet() const { return m_containerPathHasBeenSet; }
50 template<typename ContainerPathT = Aws::String>
51 void SetContainerPath(ContainerPathT&& value) { m_containerPathHasBeenSet = true; m_containerPath = std::forward<ContainerPathT>(value); }
52 template<typename ContainerPathT = Aws::String>
53 MountPoint& WithContainerPath(ContainerPathT&& value) { SetContainerPath(std::forward<ContainerPathT>(value)); return *this;}
55
57
62 inline bool GetReadOnly() const { return m_readOnly; }
63 inline bool ReadOnlyHasBeenSet() const { return m_readOnlyHasBeenSet; }
64 inline void SetReadOnly(bool value) { m_readOnlyHasBeenSet = true; m_readOnly = value; }
65 inline MountPoint& WithReadOnly(bool value) { SetReadOnly(value); return *this;}
67
69
72 inline const Aws::String& GetSourceVolume() const { return m_sourceVolume; }
73 inline bool SourceVolumeHasBeenSet() const { return m_sourceVolumeHasBeenSet; }
74 template<typename SourceVolumeT = Aws::String>
75 void SetSourceVolume(SourceVolumeT&& value) { m_sourceVolumeHasBeenSet = true; m_sourceVolume = std::forward<SourceVolumeT>(value); }
76 template<typename SourceVolumeT = Aws::String>
77 MountPoint& WithSourceVolume(SourceVolumeT&& value) { SetSourceVolume(std::forward<SourceVolumeT>(value)); return *this;}
79 private:
80
81 Aws::String m_containerPath;
82 bool m_containerPathHasBeenSet = false;
83
84 bool m_readOnly{false};
85 bool m_readOnlyHasBeenSet = false;
86
87 Aws::String m_sourceVolume;
88 bool m_sourceVolumeHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace Batch
93} // namespace Aws
const Aws::String & GetSourceVolume() const
Definition MountPoint.h:72
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:49
void SetContainerPath(ContainerPathT &&value)
Definition MountPoint.h:51
MountPoint & WithReadOnly(bool value)
Definition MountPoint.h:65
MountPoint & WithContainerPath(ContainerPathT &&value)
Definition MountPoint.h:53
bool SourceVolumeHasBeenSet() const
Definition MountPoint.h:73
AWS_BATCH_API MountPoint()=default
const Aws::String & GetContainerPath() const
Definition MountPoint.h:48
MountPoint & WithSourceVolume(SourceVolumeT &&value)
Definition MountPoint.h:77
void SetSourceVolume(SourceVolumeT &&value)
Definition MountPoint.h:75
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