AWS SDK for C++  1.9.157
AWS SDK for C++
MountPoint.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace ECS
22 {
23 namespace 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;
163 
164  Aws::String m_containerPath;
165  bool m_containerPathHasBeenSet;
166 
167  bool m_readOnly;
168  bool m_readOnlyHasBeenSet;
169  };
170 
171 } // namespace Model
172 } // namespace ECS
173 } // namespace Aws
Aws::ECS::Model::MountPoint::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECS::Model::MountPoint::SetSourceVolume
void SetSourceVolume(const Aws::String &value)
Definition: MountPoint.h:57
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::MountPoint::GetSourceVolume
const Aws::String & GetSourceVolume() const
Definition: MountPoint.h:45
Aws::ECS::Model::MountPoint::SourceVolumeHasBeenSet
bool SourceVolumeHasBeenSet() const
Definition: MountPoint.h:51
Aws::ECS::Model::MountPoint
Definition: MountPoint.h:33
Aws::ECS::Model::MountPoint::ContainerPathHasBeenSet
bool ContainerPathHasBeenSet() const
Definition: MountPoint.h:98
Aws::ECS::Model::MountPoint::MountPoint
MountPoint()
Aws::ECS::Model::MountPoint::WithContainerPath
MountPoint & WithContainerPath(const char *value)
Definition: MountPoint.h:128
Aws::ECS::Model::MountPoint::WithSourceVolume
MountPoint & WithSourceVolume(const Aws::String &value)
Definition: MountPoint.h:75
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::MountPoint::WithContainerPath
MountPoint & WithContainerPath(const Aws::String &value)
Definition: MountPoint.h:118
Aws::ECS::Model::MountPoint::MountPoint
MountPoint(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::MountPoint::SetSourceVolume
void SetSourceVolume(const char *value)
Definition: MountPoint.h:69
Aws::ECS::Model::MountPoint::SetContainerPath
void SetContainerPath(Aws::String &&value)
Definition: MountPoint.h:108
Aws::ECS::Model::MountPoint::WithContainerPath
MountPoint & WithContainerPath(Aws::String &&value)
Definition: MountPoint.h:123
Aws::ECS::Model::MountPoint::operator=
MountPoint & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::MountPoint::WithSourceVolume
MountPoint & WithSourceVolume(Aws::String &&value)
Definition: MountPoint.h:81
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECS::Model::MountPoint::GetReadOnly
bool GetReadOnly() const
Definition: MountPoint.h:136
Aws::ECS::Model::MountPoint::SetContainerPath
void SetContainerPath(const char *value)
Definition: MountPoint.h:113
Aws::ECS::Model::MountPoint::SetContainerPath
void SetContainerPath(const Aws::String &value)
Definition: MountPoint.h:103
Aws::ECS::Model::MountPoint::ReadOnlyHasBeenSet
bool ReadOnlyHasBeenSet() const
Definition: MountPoint.h:143
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::ECS::Model::MountPoint::SetSourceVolume
void SetSourceVolume(Aws::String &&value)
Definition: MountPoint.h:63
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::MountPoint::SetReadOnly
void SetReadOnly(bool value)
Definition: MountPoint.h:150
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::MountPoint::WithReadOnly
MountPoint & WithReadOnly(bool value)
Definition: MountPoint.h:157
Aws::ECS::Model::MountPoint::WithSourceVolume
MountPoint & WithSourceVolume(const char *value)
Definition: MountPoint.h:87
ECS_EXPORTS.h
Aws::ECS::Model::MountPoint::GetContainerPath
const Aws::String & GetContainerPath() const
Definition: MountPoint.h:93