AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Batch
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_BATCH_API EksVolume();
38 AWS_BATCH_API EksVolume(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
50 inline const Aws::String& GetName() const{ return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
53 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
54 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
55 inline EksVolume& WithName(const Aws::String& value) { SetName(value); return *this;}
56 inline EksVolume& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
57 inline EksVolume& WithName(const char* value) { SetName(value); return *this;}
59
61
67 inline const EksHostPath& GetHostPath() const{ return m_hostPath; }
68 inline bool HostPathHasBeenSet() const { return m_hostPathHasBeenSet; }
69 inline void SetHostPath(const EksHostPath& value) { m_hostPathHasBeenSet = true; m_hostPath = value; }
70 inline void SetHostPath(EksHostPath&& value) { m_hostPathHasBeenSet = true; m_hostPath = std::move(value); }
71 inline EksVolume& WithHostPath(const EksHostPath& value) { SetHostPath(value); return *this;}
72 inline EksVolume& WithHostPath(EksHostPath&& value) { SetHostPath(std::move(value)); return *this;}
74
76
82 inline const EksEmptyDir& GetEmptyDir() const{ return m_emptyDir; }
83 inline bool EmptyDirHasBeenSet() const { return m_emptyDirHasBeenSet; }
84 inline void SetEmptyDir(const EksEmptyDir& value) { m_emptyDirHasBeenSet = true; m_emptyDir = value; }
85 inline void SetEmptyDir(EksEmptyDir&& value) { m_emptyDirHasBeenSet = true; m_emptyDir = std::move(value); }
86 inline EksVolume& WithEmptyDir(const EksEmptyDir& value) { SetEmptyDir(value); return *this;}
87 inline EksVolume& WithEmptyDir(EksEmptyDir&& value) { SetEmptyDir(std::move(value)); return *this;}
89
91
97 inline const EksSecret& GetSecret() const{ return m_secret; }
98 inline bool SecretHasBeenSet() const { return m_secretHasBeenSet; }
99 inline void SetSecret(const EksSecret& value) { m_secretHasBeenSet = true; m_secret = value; }
100 inline void SetSecret(EksSecret&& value) { m_secretHasBeenSet = true; m_secret = std::move(value); }
101 inline EksVolume& WithSecret(const EksSecret& value) { SetSecret(value); return *this;}
102 inline EksVolume& WithSecret(EksSecret&& value) { SetSecret(std::move(value)); return *this;}
104 private:
105
106 Aws::String m_name;
107 bool m_nameHasBeenSet = false;
108
109 EksHostPath m_hostPath;
110 bool m_hostPathHasBeenSet = false;
111
112 EksEmptyDir m_emptyDir;
113 bool m_emptyDirHasBeenSet = false;
114
115 EksSecret m_secret;
116 bool m_secretHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace Batch
121} // namespace Aws
EksVolume & WithName(Aws::String &&value)
Definition EksVolume.h:56
void SetHostPath(EksHostPath &&value)
Definition EksVolume.h:70
void SetName(const Aws::String &value)
Definition EksVolume.h:52
void SetName(const char *value)
Definition EksVolume.h:54
void SetEmptyDir(const EksEmptyDir &value)
Definition EksVolume.h:84
bool EmptyDirHasBeenSet() const
Definition EksVolume.h:83
const EksEmptyDir & GetEmptyDir() const
Definition EksVolume.h:82
EksVolume & WithSecret(const EksSecret &value)
Definition EksVolume.h:101
bool HostPathHasBeenSet() const
Definition EksVolume.h:68
void SetSecret(EksSecret &&value)
Definition EksVolume.h:100
EksVolume & WithEmptyDir(EksEmptyDir &&value)
Definition EksVolume.h:87
void SetHostPath(const EksHostPath &value)
Definition EksVolume.h:69
EksVolume & WithName(const char *value)
Definition EksVolume.h:57
const Aws::String & GetName() const
Definition EksVolume.h:50
EksVolume & WithName(const Aws::String &value)
Definition EksVolume.h:55
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BATCH_API EksVolume(Aws::Utils::Json::JsonView jsonValue)
void SetEmptyDir(EksEmptyDir &&value)
Definition EksVolume.h:85
AWS_BATCH_API EksVolume & operator=(Aws::Utils::Json::JsonView jsonValue)
const EksSecret & GetSecret() const
Definition EksVolume.h:97
void SetSecret(const EksSecret &value)
Definition EksVolume.h:99
void SetName(Aws::String &&value)
Definition EksVolume.h:53
const EksHostPath & GetHostPath() const
Definition EksVolume.h:67
EksVolume & WithHostPath(const EksHostPath &value)
Definition EksVolume.h:71
EksVolume & WithHostPath(EksHostPath &&value)
Definition EksVolume.h:72
EksVolume & WithSecret(EksSecret &&value)
Definition EksVolume.h:102
bool SecretHasBeenSet() const
Definition EksVolume.h:98
EksVolume & WithEmptyDir(const EksEmptyDir &value)
Definition EksVolume.h:86
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue