AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Batch
23{
24namespace Model
25{
26
34 class Tmpfs
35 {
36 public:
37 AWS_BATCH_API Tmpfs() = default;
38 AWS_BATCH_API Tmpfs(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BATCH_API Tmpfs& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetContainerPath() const { return m_containerPath; }
49 inline bool ContainerPathHasBeenSet() const { return m_containerPathHasBeenSet; }
50 template<typename ContainerPathT = Aws::String>
51 void SetContainerPath(ContainerPathT&& value) { m_containerPathHasBeenSet = true; m_containerPath = std::forward<ContainerPathT>(value); }
52 template<typename ContainerPathT = Aws::String>
53 Tmpfs& WithContainerPath(ContainerPathT&& value) { SetContainerPath(std::forward<ContainerPathT>(value)); return *this;}
55
57
60 inline int GetSize() const { return m_size; }
61 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
62 inline void SetSize(int value) { m_sizeHasBeenSet = true; m_size = value; }
63 inline Tmpfs& WithSize(int value) { SetSize(value); return *this;}
65
67
82 inline const Aws::Vector<Aws::String>& GetMountOptions() const { return m_mountOptions; }
83 inline bool MountOptionsHasBeenSet() const { return m_mountOptionsHasBeenSet; }
84 template<typename MountOptionsT = Aws::Vector<Aws::String>>
85 void SetMountOptions(MountOptionsT&& value) { m_mountOptionsHasBeenSet = true; m_mountOptions = std::forward<MountOptionsT>(value); }
86 template<typename MountOptionsT = Aws::Vector<Aws::String>>
87 Tmpfs& WithMountOptions(MountOptionsT&& value) { SetMountOptions(std::forward<MountOptionsT>(value)); return *this;}
88 template<typename MountOptionsT = Aws::String>
89 Tmpfs& AddMountOptions(MountOptionsT&& value) { m_mountOptionsHasBeenSet = true; m_mountOptions.emplace_back(std::forward<MountOptionsT>(value)); return *this; }
91 private:
92
93 Aws::String m_containerPath;
94 bool m_containerPathHasBeenSet = false;
95
96 int m_size{0};
97 bool m_sizeHasBeenSet = false;
98
99 Aws::Vector<Aws::String> m_mountOptions;
100 bool m_mountOptionsHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace Batch
105} // namespace Aws
Tmpfs & WithSize(int value)
Definition Tmpfs.h:63
const Aws::Vector< Aws::String > & GetMountOptions() const
Definition Tmpfs.h:82
int GetSize() const
Definition Tmpfs.h:60
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
Tmpfs & WithMountOptions(MountOptionsT &&value)
Definition Tmpfs.h:87
void SetSize(int value)
Definition Tmpfs.h:62
Tmpfs & WithContainerPath(ContainerPathT &&value)
Definition Tmpfs.h:53
void SetContainerPath(ContainerPathT &&value)
Definition Tmpfs.h:51
bool SizeHasBeenSet() const
Definition Tmpfs.h:61
AWS_BATCH_API Tmpfs()=default
bool MountOptionsHasBeenSet() const
Definition Tmpfs.h:83
void SetMountOptions(MountOptionsT &&value)
Definition Tmpfs.h:85
bool ContainerPathHasBeenSet() const
Definition Tmpfs.h:49
Tmpfs & AddMountOptions(MountOptionsT &&value)
Definition Tmpfs.h:89
AWS_BATCH_API Tmpfs(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetContainerPath() const
Definition Tmpfs.h:48
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