AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Tmpfs.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Batch {
21namespace Model {
22
30class Tmpfs {
31 public:
32 AWS_BATCH_API Tmpfs() = default;
33 AWS_BATCH_API Tmpfs(Aws::Utils::Json::JsonView jsonValue);
34 AWS_BATCH_API Tmpfs& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetContainerPath() const { return m_containerPath; }
43 inline bool ContainerPathHasBeenSet() const { return m_containerPathHasBeenSet; }
44 template <typename ContainerPathT = Aws::String>
45 void SetContainerPath(ContainerPathT&& value) {
46 m_containerPathHasBeenSet = true;
47 m_containerPath = std::forward<ContainerPathT>(value);
48 }
49 template <typename ContainerPathT = Aws::String>
50 Tmpfs& WithContainerPath(ContainerPathT&& value) {
51 SetContainerPath(std::forward<ContainerPathT>(value));
52 return *this;
53 }
55
57
60 inline int GetSize() const { return m_size; }
61 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
62 inline void SetSize(int value) {
63 m_sizeHasBeenSet = true;
64 m_size = value;
65 }
66 inline Tmpfs& WithSize(int value) {
67 SetSize(value);
68 return *this;
69 }
71
73
88 inline const Aws::Vector<Aws::String>& GetMountOptions() const { return m_mountOptions; }
89 inline bool MountOptionsHasBeenSet() const { return m_mountOptionsHasBeenSet; }
90 template <typename MountOptionsT = Aws::Vector<Aws::String>>
91 void SetMountOptions(MountOptionsT&& value) {
92 m_mountOptionsHasBeenSet = true;
93 m_mountOptions = std::forward<MountOptionsT>(value);
94 }
95 template <typename MountOptionsT = Aws::Vector<Aws::String>>
96 Tmpfs& WithMountOptions(MountOptionsT&& value) {
97 SetMountOptions(std::forward<MountOptionsT>(value));
98 return *this;
99 }
100 template <typename MountOptionsT = Aws::String>
101 Tmpfs& AddMountOptions(MountOptionsT&& value) {
102 m_mountOptionsHasBeenSet = true;
103 m_mountOptions.emplace_back(std::forward<MountOptionsT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_containerPath;
109
110 int m_size{0};
111
112 Aws::Vector<Aws::String> m_mountOptions;
113 bool m_containerPathHasBeenSet = false;
114 bool m_sizeHasBeenSet = false;
115 bool m_mountOptionsHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace Batch
120} // namespace Aws
Tmpfs & WithSize(int value)
Definition Tmpfs.h:66
const Aws::Vector< Aws::String > & GetMountOptions() const
Definition Tmpfs.h:88
int GetSize() const
Definition Tmpfs.h:60
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
Tmpfs & WithMountOptions(MountOptionsT &&value)
Definition Tmpfs.h:96
void SetSize(int value)
Definition Tmpfs.h:62
Tmpfs & WithContainerPath(ContainerPathT &&value)
Definition Tmpfs.h:50
void SetContainerPath(ContainerPathT &&value)
Definition Tmpfs.h:45
bool SizeHasBeenSet() const
Definition Tmpfs.h:61
AWS_BATCH_API Tmpfs()=default
bool MountOptionsHasBeenSet() const
Definition Tmpfs.h:89
void SetMountOptions(MountOptionsT &&value)
Definition Tmpfs.h:91
bool ContainerPathHasBeenSet() const
Definition Tmpfs.h:43
Tmpfs & AddMountOptions(MountOptionsT &&value)
Definition Tmpfs.h:101
AWS_BATCH_API Tmpfs(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetContainerPath() const
Definition Tmpfs.h:42
AWS_BATCH_API Tmpfs & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue