AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
MountPoint.h
Go to the documentation of this file.
1
6#pragma once
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 ECS
22{
23namespace Model
24{
25
33 {
34 public:
39
40
45 inline const Aws::String& GetSourceVolume() const{ return m_sourceVolume; }
46
51 inline bool SourceVolumeHasBeenSet() const { return m_sourceVolumeHasBeenSet; }
52
57 inline void SetSourceVolume(const Aws::String& value) { m_sourceVolumeHasBeenSet = true; m_sourceVolume = value; }
58
63 inline void SetSourceVolume(Aws::String&& value) { m_sourceVolumeHasBeenSet = true; m_sourceVolume = std::move(value); }
64
69 inline void SetSourceVolume(const char* value) { m_sourceVolumeHasBeenSet = true; m_sourceVolume.assign(value); }
70
75 inline MountPoint& WithSourceVolume(const Aws::String& value) { SetSourceVolume(value); return *this;}
76
81 inline MountPoint& WithSourceVolume(Aws::String&& value) { SetSourceVolume(std::move(value)); return *this;}
82
87 inline MountPoint& WithSourceVolume(const char* value) { SetSourceVolume(value); return *this;}
88
89
93 inline const Aws::String& GetContainerPath() const{ return m_containerPath; }
94
98 inline bool ContainerPathHasBeenSet() const { return m_containerPathHasBeenSet; }
99
103 inline void SetContainerPath(const Aws::String& value) { m_containerPathHasBeenSet = true; m_containerPath = value; }
104
108 inline void SetContainerPath(Aws::String&& value) { m_containerPathHasBeenSet = true; m_containerPath = std::move(value); }
109
113 inline void SetContainerPath(const char* value) { m_containerPathHasBeenSet = true; m_containerPath.assign(value); }
114
118 inline MountPoint& WithContainerPath(const Aws::String& value) { SetContainerPath(value); return *this;}
119
123 inline MountPoint& WithContainerPath(Aws::String&& value) { SetContainerPath(std::move(value)); return *this;}
124
128 inline MountPoint& WithContainerPath(const char* value) { SetContainerPath(value); return *this;}
129
130
136 inline bool GetReadOnly() const{ return m_readOnly; }
137
143 inline bool ReadOnlyHasBeenSet() const { return m_readOnlyHasBeenSet; }
144
150 inline void SetReadOnly(bool value) { m_readOnlyHasBeenSet = true; m_readOnly = value; }
151
157 inline MountPoint& WithReadOnly(bool value) { SetReadOnly(value); return *this;}
158
159 private:
160
161 Aws::String m_sourceVolume;
162 bool m_sourceVolumeHasBeenSet = false;
163
164 Aws::String m_containerPath;
165 bool m_containerPathHasBeenSet = false;
166
167 bool m_readOnly;
168 bool m_readOnlyHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace ECS
173} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
AWS_ECS_API MountPoint & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ReadOnlyHasBeenSet() const
Definition: MountPoint.h:143
MountPoint & WithReadOnly(bool value)
Definition: MountPoint.h:157
void SetSourceVolume(const Aws::String &value)
Definition: MountPoint.h:57
MountPoint & WithSourceVolume(const Aws::String &value)
Definition: MountPoint.h:75
MountPoint & WithSourceVolume(Aws::String &&value)
Definition: MountPoint.h:81
void SetSourceVolume(const char *value)
Definition: MountPoint.h:69
void SetReadOnly(bool value)
Definition: MountPoint.h:150
MountPoint & WithContainerPath(const char *value)
Definition: MountPoint.h:128
void SetContainerPath(const char *value)
Definition: MountPoint.h:113
MountPoint & WithContainerPath(const Aws::String &value)
Definition: MountPoint.h:118
bool SourceVolumeHasBeenSet() const
Definition: MountPoint.h:51
MountPoint & WithSourceVolume(const char *value)
Definition: MountPoint.h:87
const Aws::String & GetSourceVolume() const
Definition: MountPoint.h:45
void SetContainerPath(Aws::String &&value)
Definition: MountPoint.h:108
void SetSourceVolume(Aws::String &&value)
Definition: MountPoint.h:63
void SetContainerPath(const Aws::String &value)
Definition: MountPoint.h:103
MountPoint & WithContainerPath(Aws::String &&value)
Definition: MountPoint.h:123
bool ContainerPathHasBeenSet() const
Definition: MountPoint.h:98
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:93
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String