AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
Tmpfs.h
Go to the documentation of this file.
1
6#pragma once
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:
40
41
45 inline const Aws::String& GetContainerPath() const{ return m_containerPath; }
46
50 inline bool ContainerPathHasBeenSet() const { return m_containerPathHasBeenSet; }
51
55 inline void SetContainerPath(const Aws::String& value) { m_containerPathHasBeenSet = true; m_containerPath = value; }
56
60 inline void SetContainerPath(Aws::String&& value) { m_containerPathHasBeenSet = true; m_containerPath = std::move(value); }
61
65 inline void SetContainerPath(const char* value) { m_containerPathHasBeenSet = true; m_containerPath.assign(value); }
66
70 inline Tmpfs& WithContainerPath(const Aws::String& value) { SetContainerPath(value); return *this;}
71
75 inline Tmpfs& WithContainerPath(Aws::String&& value) { SetContainerPath(std::move(value)); return *this;}
76
80 inline Tmpfs& WithContainerPath(const char* value) { SetContainerPath(value); return *this;}
81
82
86 inline int GetSize() const{ return m_size; }
87
91 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
92
96 inline void SetSize(int value) { m_sizeHasBeenSet = true; m_size = value; }
97
101 inline Tmpfs& WithSize(int value) { SetSize(value); return *this;}
102
103
113 inline const Aws::Vector<Aws::String>& GetMountOptions() const{ return m_mountOptions; }
114
124 inline bool MountOptionsHasBeenSet() const { return m_mountOptionsHasBeenSet; }
125
135 inline void SetMountOptions(const Aws::Vector<Aws::String>& value) { m_mountOptionsHasBeenSet = true; m_mountOptions = value; }
136
146 inline void SetMountOptions(Aws::Vector<Aws::String>&& value) { m_mountOptionsHasBeenSet = true; m_mountOptions = std::move(value); }
147
157 inline Tmpfs& WithMountOptions(const Aws::Vector<Aws::String>& value) { SetMountOptions(value); return *this;}
158
168 inline Tmpfs& WithMountOptions(Aws::Vector<Aws::String>&& value) { SetMountOptions(std::move(value)); return *this;}
169
179 inline Tmpfs& AddMountOptions(const Aws::String& value) { m_mountOptionsHasBeenSet = true; m_mountOptions.push_back(value); return *this; }
180
190 inline Tmpfs& AddMountOptions(Aws::String&& value) { m_mountOptionsHasBeenSet = true; m_mountOptions.push_back(std::move(value)); return *this; }
191
201 inline Tmpfs& AddMountOptions(const char* value) { m_mountOptionsHasBeenSet = true; m_mountOptions.push_back(value); return *this; }
202
203 private:
204
205 Aws::String m_containerPath;
206 bool m_containerPathHasBeenSet = false;
207
208 int m_size;
209 bool m_sizeHasBeenSet = false;
210
211 Aws::Vector<Aws::String> m_mountOptions;
212 bool m_mountOptionsHasBeenSet = false;
213 };
214
215} // namespace Model
216} // namespace ECS
217} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
void SetMountOptions(const Aws::Vector< Aws::String > &value)
Definition: Tmpfs.h:135
Tmpfs & WithSize(int value)
Definition: Tmpfs.h:101
Tmpfs & WithContainerPath(Aws::String &&value)
Definition: Tmpfs.h:75
Tmpfs & AddMountOptions(Aws::String &&value)
Definition: Tmpfs.h:190
bool ContainerPathHasBeenSet() const
Definition: Tmpfs.h:50
Tmpfs & WithContainerPath(const char *value)
Definition: Tmpfs.h:80
Tmpfs & AddMountOptions(const Aws::String &value)
Definition: Tmpfs.h:179
Tmpfs & AddMountOptions(const char *value)
Definition: Tmpfs.h:201
const Aws::Vector< Aws::String > & GetMountOptions() const
Definition: Tmpfs.h:113
Tmpfs & WithMountOptions(const Aws::Vector< Aws::String > &value)
Definition: Tmpfs.h:157
Tmpfs & WithContainerPath(const Aws::String &value)
Definition: Tmpfs.h:70
void SetSize(int value)
Definition: Tmpfs.h:96
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetContainerPath() const
Definition: Tmpfs.h:45
void SetContainerPath(Aws::String &&value)
Definition: Tmpfs.h:60
void SetContainerPath(const Aws::String &value)
Definition: Tmpfs.h:55
bool MountOptionsHasBeenSet() const
Definition: Tmpfs.h:124
AWS_ECS_API Tmpfs(Aws::Utils::Json::JsonView jsonValue)
void SetContainerPath(const char *value)
Definition: Tmpfs.h:65
Tmpfs & WithMountOptions(Aws::Vector< Aws::String > &&value)
Definition: Tmpfs.h:168
void SetMountOptions(Aws::Vector< Aws::String > &&value)
Definition: Tmpfs.h:146
int GetSize() const
Definition: Tmpfs.h:86
AWS_ECS_API Tmpfs & operator=(Aws::Utils::Json::JsonView jsonValue)
bool SizeHasBeenSet() const
Definition: Tmpfs.h:91
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector