AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
EksVolume.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/EksEmptyDir.h>
9#include <aws/batch/model/EksHostPath.h>
10#include <aws/batch/model/EksPersistentVolumeClaim.h>
11#include <aws/batch/model/EksSecret.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Batch {
24namespace Model {
25
31class EksVolume {
32 public:
33 AWS_BATCH_API EksVolume() = default;
34 AWS_BATCH_API EksVolume(Aws::Utils::Json::JsonView jsonValue);
36 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template <typename NameT = Aws::String>
48 void SetName(NameT&& value) {
49 m_nameHasBeenSet = true;
50 m_name = std::forward<NameT>(value);
51 }
52 template <typename NameT = Aws::String>
53 EksVolume& WithName(NameT&& value) {
54 SetName(std::forward<NameT>(value));
55 return *this;
56 }
58
60
66 inline const EksHostPath& GetHostPath() const { return m_hostPath; }
67 inline bool HostPathHasBeenSet() const { return m_hostPathHasBeenSet; }
68 template <typename HostPathT = EksHostPath>
69 void SetHostPath(HostPathT&& value) {
70 m_hostPathHasBeenSet = true;
71 m_hostPath = std::forward<HostPathT>(value);
72 }
73 template <typename HostPathT = EksHostPath>
74 EksVolume& WithHostPath(HostPathT&& value) {
75 SetHostPath(std::forward<HostPathT>(value));
76 return *this;
77 }
79
81
87 inline const EksEmptyDir& GetEmptyDir() const { return m_emptyDir; }
88 inline bool EmptyDirHasBeenSet() const { return m_emptyDirHasBeenSet; }
89 template <typename EmptyDirT = EksEmptyDir>
90 void SetEmptyDir(EmptyDirT&& value) {
91 m_emptyDirHasBeenSet = true;
92 m_emptyDir = std::forward<EmptyDirT>(value);
93 }
94 template <typename EmptyDirT = EksEmptyDir>
95 EksVolume& WithEmptyDir(EmptyDirT&& value) {
96 SetEmptyDir(std::forward<EmptyDirT>(value));
97 return *this;
98 }
100
102
108 inline const EksSecret& GetSecret() const { return m_secret; }
109 inline bool SecretHasBeenSet() const { return m_secretHasBeenSet; }
110 template <typename SecretT = EksSecret>
111 void SetSecret(SecretT&& value) {
112 m_secretHasBeenSet = true;
113 m_secret = std::forward<SecretT>(value);
114 }
115 template <typename SecretT = EksSecret>
116 EksVolume& WithSecret(SecretT&& value) {
117 SetSecret(std::forward<SecretT>(value));
118 return *this;
119 }
121
123
130 inline const EksPersistentVolumeClaim& GetPersistentVolumeClaim() const { return m_persistentVolumeClaim; }
131 inline bool PersistentVolumeClaimHasBeenSet() const { return m_persistentVolumeClaimHasBeenSet; }
132 template <typename PersistentVolumeClaimT = EksPersistentVolumeClaim>
133 void SetPersistentVolumeClaim(PersistentVolumeClaimT&& value) {
134 m_persistentVolumeClaimHasBeenSet = true;
135 m_persistentVolumeClaim = std::forward<PersistentVolumeClaimT>(value);
136 }
137 template <typename PersistentVolumeClaimT = EksPersistentVolumeClaim>
138 EksVolume& WithPersistentVolumeClaim(PersistentVolumeClaimT&& value) {
139 SetPersistentVolumeClaim(std::forward<PersistentVolumeClaimT>(value));
140 return *this;
141 }
143 private:
144 Aws::String m_name;
145
146 EksHostPath m_hostPath;
147
148 EksEmptyDir m_emptyDir;
149
150 EksSecret m_secret;
151
152 EksPersistentVolumeClaim m_persistentVolumeClaim;
153 bool m_nameHasBeenSet = false;
154 bool m_hostPathHasBeenSet = false;
155 bool m_emptyDirHasBeenSet = false;
156 bool m_secretHasBeenSet = false;
157 bool m_persistentVolumeClaimHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace Batch
162} // namespace Aws
EksVolume & WithPersistentVolumeClaim(PersistentVolumeClaimT &&value)
Definition EksVolume.h:138
AWS_BATCH_API EksVolume()=default
void SetPersistentVolumeClaim(PersistentVolumeClaimT &&value)
Definition EksVolume.h:133
EksVolume & WithSecret(SecretT &&value)
Definition EksVolume.h:116
EksVolume & WithName(NameT &&value)
Definition EksVolume.h:53
bool EmptyDirHasBeenSet() const
Definition EksVolume.h:88
const EksEmptyDir & GetEmptyDir() const
Definition EksVolume.h:87
bool HostPathHasBeenSet() const
Definition EksVolume.h:67
void SetSecret(SecretT &&value)
Definition EksVolume.h:111
const Aws::String & GetName() const
Definition EksVolume.h:45
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BATCH_API EksVolume(Aws::Utils::Json::JsonView jsonValue)
const EksPersistentVolumeClaim & GetPersistentVolumeClaim() const
Definition EksVolume.h:130
AWS_BATCH_API EksVolume & operator=(Aws::Utils::Json::JsonView jsonValue)
const EksSecret & GetSecret() const
Definition EksVolume.h:108
bool PersistentVolumeClaimHasBeenSet() const
Definition EksVolume.h:131
const EksHostPath & GetHostPath() const
Definition EksVolume.h:66
void SetName(NameT &&value)
Definition EksVolume.h:48
void SetEmptyDir(EmptyDirT &&value)
Definition EksVolume.h:90
EksVolume & WithEmptyDir(EmptyDirT &&value)
Definition EksVolume.h:95
EksVolume & WithHostPath(HostPathT &&value)
Definition EksVolume.h:74
void SetHostPath(HostPathT &&value)
Definition EksVolume.h:69
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue