AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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