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/ecs/ECS_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 ECS
23{
24namespace Model
25{
26
33 class Tmpfs
34 {
35 public:
36 AWS_ECS_API Tmpfs() = default;
37 AWS_ECS_API Tmpfs(Aws::Utils::Json::JsonView jsonValue);
40
41
43
46 inline const Aws::String& GetContainerPath() const { return m_containerPath; }
47 inline bool ContainerPathHasBeenSet() const { return m_containerPathHasBeenSet; }
48 template<typename ContainerPathT = Aws::String>
49 void SetContainerPath(ContainerPathT&& value) { m_containerPathHasBeenSet = true; m_containerPath = std::forward<ContainerPathT>(value); }
50 template<typename ContainerPathT = Aws::String>
51 Tmpfs& WithContainerPath(ContainerPathT&& value) { SetContainerPath(std::forward<ContainerPathT>(value)); return *this;}
53
55
58 inline int GetSize() const { return m_size; }
59 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
60 inline void SetSize(int value) { m_sizeHasBeenSet = true; m_size = value; }
61 inline Tmpfs& WithSize(int value) { SetSize(value); return *this;}
63
65
74 inline const Aws::Vector<Aws::String>& GetMountOptions() const { return m_mountOptions; }
75 inline bool MountOptionsHasBeenSet() const { return m_mountOptionsHasBeenSet; }
76 template<typename MountOptionsT = Aws::Vector<Aws::String>>
77 void SetMountOptions(MountOptionsT&& value) { m_mountOptionsHasBeenSet = true; m_mountOptions = std::forward<MountOptionsT>(value); }
78 template<typename MountOptionsT = Aws::Vector<Aws::String>>
79 Tmpfs& WithMountOptions(MountOptionsT&& value) { SetMountOptions(std::forward<MountOptionsT>(value)); return *this;}
80 template<typename MountOptionsT = Aws::String>
81 Tmpfs& AddMountOptions(MountOptionsT&& value) { m_mountOptionsHasBeenSet = true; m_mountOptions.emplace_back(std::forward<MountOptionsT>(value)); return *this; }
83 private:
84
85 Aws::String m_containerPath;
86 bool m_containerPathHasBeenSet = false;
87
88 int m_size{0};
89 bool m_sizeHasBeenSet = false;
90
91 Aws::Vector<Aws::String> m_mountOptions;
92 bool m_mountOptionsHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace ECS
97} // namespace Aws
Tmpfs & WithSize(int value)
Definition Tmpfs.h:61
void SetContainerPath(ContainerPathT &&value)
Definition Tmpfs.h:49
Tmpfs & AddMountOptions(MountOptionsT &&value)
Definition Tmpfs.h:81
void SetMountOptions(MountOptionsT &&value)
Definition Tmpfs.h:77
bool ContainerPathHasBeenSet() const
Definition Tmpfs.h:47
AWS_ECS_API Tmpfs()=default
const Aws::Vector< Aws::String > & GetMountOptions() const
Definition Tmpfs.h:74
void SetSize(int value)
Definition Tmpfs.h:60
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetContainerPath() const
Definition Tmpfs.h:46
bool MountOptionsHasBeenSet() const
Definition Tmpfs.h:75
AWS_ECS_API Tmpfs(Aws::Utils::Json::JsonView jsonValue)
Tmpfs & WithMountOptions(MountOptionsT &&value)
Definition Tmpfs.h:79
Tmpfs & WithContainerPath(ContainerPathT &&value)
Definition Tmpfs.h:51
int GetSize() const
Definition Tmpfs.h:58
AWS_ECS_API Tmpfs & operator=(Aws::Utils::Json::JsonView jsonValue)
bool SizeHasBeenSet() const
Definition Tmpfs.h:59
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue