AWS SDK for C++  1.9.44
AWS SDK for C++
Volume.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace ECS
26 {
27 namespace Model
28 {
29 
45  {
46  public:
47  Volume();
51 
52 
59  inline const Aws::String& GetName() const{ return m_name; }
60 
67  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
68 
75  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
76 
83  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
84 
91  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
92 
99  inline Volume& WithName(const Aws::String& value) { SetName(value); return *this;}
100 
107  inline Volume& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
108 
115  inline Volume& WithName(const char* value) { SetName(value); return *this;}
116 
117 
131  inline const HostVolumeProperties& GetHost() const{ return m_host; }
132 
146  inline bool HostHasBeenSet() const { return m_hostHasBeenSet; }
147 
161  inline void SetHost(const HostVolumeProperties& value) { m_hostHasBeenSet = true; m_host = value; }
162 
176  inline void SetHost(HostVolumeProperties&& value) { m_hostHasBeenSet = true; m_host = std::move(value); }
177 
191  inline Volume& WithHost(const HostVolumeProperties& value) { SetHost(value); return *this;}
192 
206  inline Volume& WithHost(HostVolumeProperties&& value) { SetHost(std::move(value)); return *this;}
207 
208 
215  inline const DockerVolumeConfiguration& GetDockerVolumeConfiguration() const{ return m_dockerVolumeConfiguration; }
216 
223  inline bool DockerVolumeConfigurationHasBeenSet() const { return m_dockerVolumeConfigurationHasBeenSet; }
224 
231  inline void SetDockerVolumeConfiguration(const DockerVolumeConfiguration& value) { m_dockerVolumeConfigurationHasBeenSet = true; m_dockerVolumeConfiguration = value; }
232 
239  inline void SetDockerVolumeConfiguration(DockerVolumeConfiguration&& value) { m_dockerVolumeConfigurationHasBeenSet = true; m_dockerVolumeConfiguration = std::move(value); }
240 
247  inline Volume& WithDockerVolumeConfiguration(const DockerVolumeConfiguration& value) { SetDockerVolumeConfiguration(value); return *this;}
248 
255  inline Volume& WithDockerVolumeConfiguration(DockerVolumeConfiguration&& value) { SetDockerVolumeConfiguration(std::move(value)); return *this;}
256 
257 
262  inline const EFSVolumeConfiguration& GetEfsVolumeConfiguration() const{ return m_efsVolumeConfiguration; }
263 
268  inline bool EfsVolumeConfigurationHasBeenSet() const { return m_efsVolumeConfigurationHasBeenSet; }
269 
274  inline void SetEfsVolumeConfiguration(const EFSVolumeConfiguration& value) { m_efsVolumeConfigurationHasBeenSet = true; m_efsVolumeConfiguration = value; }
275 
280  inline void SetEfsVolumeConfiguration(EFSVolumeConfiguration&& value) { m_efsVolumeConfigurationHasBeenSet = true; m_efsVolumeConfiguration = std::move(value); }
281 
286  inline Volume& WithEfsVolumeConfiguration(const EFSVolumeConfiguration& value) { SetEfsVolumeConfiguration(value); return *this;}
287 
292  inline Volume& WithEfsVolumeConfiguration(EFSVolumeConfiguration&& value) { SetEfsVolumeConfiguration(std::move(value)); return *this;}
293 
294 
299  inline const FSxWindowsFileServerVolumeConfiguration& GetFsxWindowsFileServerVolumeConfiguration() const{ return m_fsxWindowsFileServerVolumeConfiguration; }
300 
305  inline bool FsxWindowsFileServerVolumeConfigurationHasBeenSet() const { return m_fsxWindowsFileServerVolumeConfigurationHasBeenSet; }
306 
311  inline void SetFsxWindowsFileServerVolumeConfiguration(const FSxWindowsFileServerVolumeConfiguration& value) { m_fsxWindowsFileServerVolumeConfigurationHasBeenSet = true; m_fsxWindowsFileServerVolumeConfiguration = value; }
312 
317  inline void SetFsxWindowsFileServerVolumeConfiguration(FSxWindowsFileServerVolumeConfiguration&& value) { m_fsxWindowsFileServerVolumeConfigurationHasBeenSet = true; m_fsxWindowsFileServerVolumeConfiguration = std::move(value); }
318 
323  inline Volume& WithFsxWindowsFileServerVolumeConfiguration(const FSxWindowsFileServerVolumeConfiguration& value) { SetFsxWindowsFileServerVolumeConfiguration(value); return *this;}
324 
329  inline Volume& WithFsxWindowsFileServerVolumeConfiguration(FSxWindowsFileServerVolumeConfiguration&& value) { SetFsxWindowsFileServerVolumeConfiguration(std::move(value)); return *this;}
330 
331  private:
332 
333  Aws::String m_name;
334  bool m_nameHasBeenSet;
335 
336  HostVolumeProperties m_host;
337  bool m_hostHasBeenSet;
338 
339  DockerVolumeConfiguration m_dockerVolumeConfiguration;
340  bool m_dockerVolumeConfigurationHasBeenSet;
341 
342  EFSVolumeConfiguration m_efsVolumeConfiguration;
343  bool m_efsVolumeConfigurationHasBeenSet;
344 
345  FSxWindowsFileServerVolumeConfiguration m_fsxWindowsFileServerVolumeConfiguration;
346  bool m_fsxWindowsFileServerVolumeConfigurationHasBeenSet;
347  };
348 
349 } // namespace Model
350 } // namespace ECS
351 } // namespace Aws
FSxWindowsFileServerVolumeConfiguration.h
Aws::ECS::Model::HostVolumeProperties
Definition: HostVolumeProperties.h:33
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::Volume::WithDockerVolumeConfiguration
Volume & WithDockerVolumeConfiguration(const DockerVolumeConfiguration &value)
Definition: Volume.h:247
Aws::ECS::Model::Volume::SetFsxWindowsFileServerVolumeConfiguration
void SetFsxWindowsFileServerVolumeConfiguration(FSxWindowsFileServerVolumeConfiguration &&value)
Definition: Volume.h:317
Aws::ECS::Model::Volume::GetName
const Aws::String & GetName() const
Definition: Volume.h:59
Aws::ECS::Model::Volume::GetEfsVolumeConfiguration
const EFSVolumeConfiguration & GetEfsVolumeConfiguration() const
Definition: Volume.h:262
Aws::ECS::Model::Volume::HostHasBeenSet
bool HostHasBeenSet() const
Definition: Volume.h:146
Aws::ECS::Model::Volume::WithEfsVolumeConfiguration
Volume & WithEfsVolumeConfiguration(const EFSVolumeConfiguration &value)
Definition: Volume.h:286
Aws::ECS::Model::Volume::WithName
Volume & WithName(const Aws::String &value)
Definition: Volume.h:99
Aws::ECS::Model::Volume::WithFsxWindowsFileServerVolumeConfiguration
Volume & WithFsxWindowsFileServerVolumeConfiguration(const FSxWindowsFileServerVolumeConfiguration &value)
Definition: Volume.h:323
Aws::ECS::Model::DockerVolumeConfiguration
Definition: DockerVolumeConfiguration.h:37
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::Volume::Volume
Volume(Aws::Utils::Json::JsonView jsonValue)
HostVolumeProperties.h
Aws::ECS::Model::Volume::SetEfsVolumeConfiguration
void SetEfsVolumeConfiguration(EFSVolumeConfiguration &&value)
Definition: Volume.h:280
Aws::ECS::Model::Volume
Definition: Volume.h:45
Aws::ECS::Model::Volume::WithHost
Volume & WithHost(HostVolumeProperties &&value)
Definition: Volume.h:206
Aws::ECS::Model::Volume::WithName
Volume & WithName(Aws::String &&value)
Definition: Volume.h:107
Aws::ECS::Model::Volume::WithFsxWindowsFileServerVolumeConfiguration
Volume & WithFsxWindowsFileServerVolumeConfiguration(FSxWindowsFileServerVolumeConfiguration &&value)
Definition: Volume.h:329
Aws::ECS::Model::Volume::FsxWindowsFileServerVolumeConfigurationHasBeenSet
bool FsxWindowsFileServerVolumeConfigurationHasBeenSet() const
Definition: Volume.h:305
Aws::ECS::Model::Volume::WithEfsVolumeConfiguration
Volume & WithEfsVolumeConfiguration(EFSVolumeConfiguration &&value)
Definition: Volume.h:292
Aws::ECS::Model::FSxWindowsFileServerVolumeConfiguration
Definition: FSxWindowsFileServerVolumeConfiguration.h:39
Aws::ECS::Model::Volume::SetFsxWindowsFileServerVolumeConfiguration
void SetFsxWindowsFileServerVolumeConfiguration(const FSxWindowsFileServerVolumeConfiguration &value)
Definition: Volume.h:311
Aws::ECS::Model::Volume::SetName
void SetName(Aws::String &&value)
Definition: Volume.h:83
Aws::ECS::Model::Volume::GetFsxWindowsFileServerVolumeConfiguration
const FSxWindowsFileServerVolumeConfiguration & GetFsxWindowsFileServerVolumeConfiguration() const
Definition: Volume.h:299
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::ECS::Model::Volume::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Volume.h:67
Aws::ECS::Model::Volume::SetHost
void SetHost(HostVolumeProperties &&value)
Definition: Volume.h:176
Aws::ECS::Model::Volume::SetHost
void SetHost(const HostVolumeProperties &value)
Definition: Volume.h:161
DockerVolumeConfiguration.h
Aws::ECS::Model::Volume::GetDockerVolumeConfiguration
const DockerVolumeConfiguration & GetDockerVolumeConfiguration() const
Definition: Volume.h:215
Aws::ECS::Model::Volume::operator=
Volume & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::Volume::WithName
Volume & WithName(const char *value)
Definition: Volume.h:115
Aws::ECS::Model::Volume::SetName
void SetName(const char *value)
Definition: Volume.h:91
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::Volume::Volume
Volume()
Aws::ECS::Model::Volume::DockerVolumeConfigurationHasBeenSet
bool DockerVolumeConfigurationHasBeenSet() const
Definition: Volume.h:223
Aws::ECS::Model::Volume::SetDockerVolumeConfiguration
void SetDockerVolumeConfiguration(DockerVolumeConfiguration &&value)
Definition: Volume.h:239
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
EFSVolumeConfiguration.h
Aws::ECS::Model::EFSVolumeConfiguration
Definition: EFSVolumeConfiguration.h:38
Aws::ECS::Model::Volume::GetHost
const HostVolumeProperties & GetHost() const
Definition: Volume.h:131
Aws::ECS::Model::Volume::SetDockerVolumeConfiguration
void SetDockerVolumeConfiguration(const DockerVolumeConfiguration &value)
Definition: Volume.h:231
Aws::ECS::Model::Volume::EfsVolumeConfigurationHasBeenSet
bool EfsVolumeConfigurationHasBeenSet() const
Definition: Volume.h:268
Aws::ECS::Model::Volume::WithHost
Volume & WithHost(const HostVolumeProperties &value)
Definition: Volume.h:191
ECS_EXPORTS.h
Aws::ECS::Model::Volume::SetEfsVolumeConfiguration
void SetEfsVolumeConfiguration(const EFSVolumeConfiguration &value)
Definition: Volume.h:274
Aws::ECS::Model::Volume::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECS::Model::Volume::SetName
void SetName(const Aws::String &value)
Definition: Volume.h:75
Aws::ECS::Model::Volume::WithDockerVolumeConfiguration
Volume & WithDockerVolumeConfiguration(DockerVolumeConfiguration &&value)
Definition: Volume.h:255