AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EksVolume.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/batch/model/EksHostPath.h>
10#include <aws/batch/model/EksEmptyDir.h>
11#include <aws/batch/model/EksSecret.h>
12#include <aws/batch/model/EksPersistentVolumeClaim.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Batch
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_BATCH_API EksVolume() = default;
39 AWS_BATCH_API EksVolume(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
51 inline const Aws::String& GetName() const { return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 template<typename NameT = Aws::String>
54 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
55 template<typename NameT = Aws::String>
56 EksVolume& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_hostPathHasBeenSet = true; m_hostPath = std::forward<HostPathT>(value); }
70 template<typename HostPathT = EksHostPath>
71 EksVolume& WithHostPath(HostPathT&& value) { SetHostPath(std::forward<HostPathT>(value)); return *this;}
73
75
81 inline const EksEmptyDir& GetEmptyDir() const { return m_emptyDir; }
82 inline bool EmptyDirHasBeenSet() const { return m_emptyDirHasBeenSet; }
83 template<typename EmptyDirT = EksEmptyDir>
84 void SetEmptyDir(EmptyDirT&& value) { m_emptyDirHasBeenSet = true; m_emptyDir = std::forward<EmptyDirT>(value); }
85 template<typename EmptyDirT = EksEmptyDir>
86 EksVolume& WithEmptyDir(EmptyDirT&& value) { SetEmptyDir(std::forward<EmptyDirT>(value)); return *this;}
88
90
96 inline const EksSecret& GetSecret() const { return m_secret; }
97 inline bool SecretHasBeenSet() const { return m_secretHasBeenSet; }
98 template<typename SecretT = EksSecret>
99 void SetSecret(SecretT&& value) { m_secretHasBeenSet = true; m_secret = std::forward<SecretT>(value); }
100 template<typename SecretT = EksSecret>
101 EksVolume& WithSecret(SecretT&& value) { SetSecret(std::forward<SecretT>(value)); return *this;}
103
105
112 inline const EksPersistentVolumeClaim& GetPersistentVolumeClaim() const { return m_persistentVolumeClaim; }
113 inline bool PersistentVolumeClaimHasBeenSet() const { return m_persistentVolumeClaimHasBeenSet; }
114 template<typename PersistentVolumeClaimT = EksPersistentVolumeClaim>
115 void SetPersistentVolumeClaim(PersistentVolumeClaimT&& value) { m_persistentVolumeClaimHasBeenSet = true; m_persistentVolumeClaim = std::forward<PersistentVolumeClaimT>(value); }
116 template<typename PersistentVolumeClaimT = EksPersistentVolumeClaim>
117 EksVolume& WithPersistentVolumeClaim(PersistentVolumeClaimT&& value) { SetPersistentVolumeClaim(std::forward<PersistentVolumeClaimT>(value)); return *this;}
119 private:
120
121 Aws::String m_name;
122 bool m_nameHasBeenSet = false;
123
124 EksHostPath m_hostPath;
125 bool m_hostPathHasBeenSet = false;
126
127 EksEmptyDir m_emptyDir;
128 bool m_emptyDirHasBeenSet = false;
129
130 EksSecret m_secret;
131 bool m_secretHasBeenSet = false;
132
133 EksPersistentVolumeClaim m_persistentVolumeClaim;
134 bool m_persistentVolumeClaimHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace Batch
139} // namespace Aws
EksVolume & WithPersistentVolumeClaim(PersistentVolumeClaimT &&value)
Definition EksVolume.h:117
AWS_BATCH_API EksVolume()=default
void SetPersistentVolumeClaim(PersistentVolumeClaimT &&value)
Definition EksVolume.h:115
EksVolume & WithSecret(SecretT &&value)
Definition EksVolume.h:101
EksVolume & WithName(NameT &&value)
Definition EksVolume.h:56
bool EmptyDirHasBeenSet() const
Definition EksVolume.h:82
const EksEmptyDir & GetEmptyDir() const
Definition EksVolume.h:81
bool HostPathHasBeenSet() const
Definition EksVolume.h:67
void SetSecret(SecretT &&value)
Definition EksVolume.h:99
const Aws::String & GetName() const
Definition EksVolume.h:51
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:112
AWS_BATCH_API EksVolume & operator=(Aws::Utils::Json::JsonView jsonValue)
const EksSecret & GetSecret() const
Definition EksVolume.h:96
bool PersistentVolumeClaimHasBeenSet() const
Definition EksVolume.h:113
const EksHostPath & GetHostPath() const
Definition EksVolume.h:66
void SetName(NameT &&value)
Definition EksVolume.h:54
void SetEmptyDir(EmptyDirT &&value)
Definition EksVolume.h:84
EksVolume & WithEmptyDir(EmptyDirT &&value)
Definition EksVolume.h:86
EksVolume & WithHostPath(HostPathT &&value)
Definition EksVolume.h:71
bool SecretHasBeenSet() const
Definition EksVolume.h:97
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