AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename HostT = Host>
56 void SetHost(HostT&& value) { m_hostHasBeenSet = true; m_host = std::forward<HostT>(value); }
57 template<typename HostT = Host>
58 Volume& WithHost(HostT&& value) { SetHost(std::forward<HostT>(value)); return *this;}
60
62
68 inline const Aws::String& GetName() const { return m_name; }
69 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
70 template<typename NameT = Aws::String>
71 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
72 template<typename NameT = Aws::String>
73 Volume& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
75
77
82 inline const EFSVolumeConfiguration& GetEfsVolumeConfiguration() const { return m_efsVolumeConfiguration; }
83 inline bool EfsVolumeConfigurationHasBeenSet() const { return m_efsVolumeConfigurationHasBeenSet; }
84 template<typename EfsVolumeConfigurationT = EFSVolumeConfiguration>
85 void SetEfsVolumeConfiguration(EfsVolumeConfigurationT&& value) { m_efsVolumeConfigurationHasBeenSet = true; m_efsVolumeConfiguration = std::forward<EfsVolumeConfigurationT>(value); }
86 template<typename EfsVolumeConfigurationT = EFSVolumeConfiguration>
87 Volume& WithEfsVolumeConfiguration(EfsVolumeConfigurationT&& value) { SetEfsVolumeConfiguration(std::forward<EfsVolumeConfigurationT>(value)); return *this;}
89 private:
90
91 Host m_host;
92 bool m_hostHasBeenSet = false;
93
94 Aws::String m_name;
95 bool m_nameHasBeenSet = false;
96
97 EFSVolumeConfiguration m_efsVolumeConfiguration;
98 bool m_efsVolumeConfigurationHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace Batch
103} // namespace Aws
void SetEfsVolumeConfiguration(EfsVolumeConfigurationT &&value)
Definition Volume.h:85
Volume & WithEfsVolumeConfiguration(EfsVolumeConfigurationT &&value)
Definition Volume.h:87
const Host & GetHost() const
Definition Volume.h:53
Volume & WithHost(HostT &&value)
Definition Volume.h:58
void SetName(NameT &&value)
Definition Volume.h:71
bool HostHasBeenSet() const
Definition Volume.h:54
void SetHost(HostT &&value)
Definition Volume.h:56
const Aws::String & GetName() const
Definition Volume.h:68
const EFSVolumeConfiguration & GetEfsVolumeConfiguration() const
Definition Volume.h:82
Volume & WithName(NameT &&value)
Definition Volume.h:73
bool NameHasBeenSet() const
Definition Volume.h:69
AWS_BATCH_API Volume & operator=(Aws::Utils::Json::JsonView jsonValue)
bool EfsVolumeConfigurationHasBeenSet() const
Definition Volume.h:83
AWS_BATCH_API Volume()=default
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