AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Volume.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/Host.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/batch/model/EFSVolumeConfiguration.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Batch
24{
25namespace Model
26{
27
34 class Volume
35 {
36 public:
37 AWS_BATCH_API Volume();
38 AWS_BATCH_API Volume(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BATCH_API Volume& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
53 inline const Host& GetHost() const{ return m_host; }
54 inline bool HostHasBeenSet() const { return m_hostHasBeenSet; }
55 inline void SetHost(const Host& value) { m_hostHasBeenSet = true; m_host = value; }
56 inline void SetHost(Host&& value) { m_hostHasBeenSet = true; m_host = std::move(value); }
57 inline Volume& WithHost(const Host& value) { SetHost(value); return *this;}
58 inline Volume& WithHost(Host&& value) { SetHost(std::move(value)); return *this;}
60
62
68 inline const Aws::String& GetName() const{ return m_name; }
69 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
70 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
71 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
72 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
73 inline Volume& WithName(const Aws::String& value) { SetName(value); return *this;}
74 inline Volume& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
75 inline Volume& WithName(const char* value) { SetName(value); return *this;}
77
79
84 inline const EFSVolumeConfiguration& GetEfsVolumeConfiguration() const{ return m_efsVolumeConfiguration; }
85 inline bool EfsVolumeConfigurationHasBeenSet() const { return m_efsVolumeConfigurationHasBeenSet; }
86 inline void SetEfsVolumeConfiguration(const EFSVolumeConfiguration& value) { m_efsVolumeConfigurationHasBeenSet = true; m_efsVolumeConfiguration = value; }
87 inline void SetEfsVolumeConfiguration(EFSVolumeConfiguration&& value) { m_efsVolumeConfigurationHasBeenSet = true; m_efsVolumeConfiguration = std::move(value); }
89 inline Volume& WithEfsVolumeConfiguration(EFSVolumeConfiguration&& value) { SetEfsVolumeConfiguration(std::move(value)); return *this;}
91 private:
92
93 Host m_host;
94 bool m_hostHasBeenSet = false;
95
96 Aws::String m_name;
97 bool m_nameHasBeenSet = false;
98
99 EFSVolumeConfiguration m_efsVolumeConfiguration;
100 bool m_efsVolumeConfigurationHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace Batch
105} // namespace Aws
Volume & WithName(const Aws::String &value)
Definition Volume.h:73
Volume & WithHost(const Host &value)
Definition Volume.h:57
Volume & WithHost(Host &&value)
Definition Volume.h:58
Volume & WithEfsVolumeConfiguration(const EFSVolumeConfiguration &value)
Definition Volume.h:88
void SetEfsVolumeConfiguration(EFSVolumeConfiguration &&value)
Definition Volume.h:87
void SetName(Aws::String &&value)
Definition Volume.h:71
void SetEfsVolumeConfiguration(const EFSVolumeConfiguration &value)
Definition Volume.h:86
const Host & GetHost() const
Definition Volume.h:53
Volume & WithName(const char *value)
Definition Volume.h:75
void SetHost(const Host &value)
Definition Volume.h:55
Volume & WithEfsVolumeConfiguration(EFSVolumeConfiguration &&value)
Definition Volume.h:89
bool HostHasBeenSet() const
Definition Volume.h:54
void SetHost(Host &&value)
Definition Volume.h:56
void SetName(const char *value)
Definition Volume.h:72
const Aws::String & GetName() const
Definition Volume.h:68
const EFSVolumeConfiguration & GetEfsVolumeConfiguration() const
Definition Volume.h:84
bool NameHasBeenSet() const
Definition Volume.h:69
AWS_BATCH_API Volume()
AWS_BATCH_API Volume & operator=(Aws::Utils::Json::JsonView jsonValue)
Volume & WithName(Aws::String &&value)
Definition Volume.h:74
bool EfsVolumeConfigurationHasBeenSet() const
Definition Volume.h:85
void SetName(const Aws::String &value)
Definition Volume.h:70
AWS_BATCH_API Volume(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue