AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
Tmpfs.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ecs/ECS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ECS {
21namespace Model {
22
29class Tmpfs {
30 public:
31 AWS_ECS_API Tmpfs() = default;
32 AWS_ECS_API Tmpfs(Aws::Utils::Json::JsonView jsonValue);
35
37
40 inline const Aws::String& GetContainerPath() const { return m_containerPath; }
41 inline bool ContainerPathHasBeenSet() const { return m_containerPathHasBeenSet; }
42 template <typename ContainerPathT = Aws::String>
43 void SetContainerPath(ContainerPathT&& value) {
44 m_containerPathHasBeenSet = true;
45 m_containerPath = std::forward<ContainerPathT>(value);
46 }
47 template <typename ContainerPathT = Aws::String>
48 Tmpfs& WithContainerPath(ContainerPathT&& value) {
49 SetContainerPath(std::forward<ContainerPathT>(value));
50 return *this;
51 }
53
55
58 inline int GetSize() const { return m_size; }
59 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
60 inline void SetSize(int value) {
61 m_sizeHasBeenSet = true;
62 m_size = value;
63 }
64 inline Tmpfs& WithSize(int value) {
65 SetSize(value);
66 return *this;
67 }
69
71
80 inline const Aws::Vector<Aws::String>& GetMountOptions() const { return m_mountOptions; }
81 inline bool MountOptionsHasBeenSet() const { return m_mountOptionsHasBeenSet; }
82 template <typename MountOptionsT = Aws::Vector<Aws::String>>
83 void SetMountOptions(MountOptionsT&& value) {
84 m_mountOptionsHasBeenSet = true;
85 m_mountOptions = std::forward<MountOptionsT>(value);
86 }
87 template <typename MountOptionsT = Aws::Vector<Aws::String>>
88 Tmpfs& WithMountOptions(MountOptionsT&& value) {
89 SetMountOptions(std::forward<MountOptionsT>(value));
90 return *this;
91 }
92 template <typename MountOptionsT = Aws::String>
93 Tmpfs& AddMountOptions(MountOptionsT&& value) {
94 m_mountOptionsHasBeenSet = true;
95 m_mountOptions.emplace_back(std::forward<MountOptionsT>(value));
96 return *this;
97 }
99 private:
100 Aws::String m_containerPath;
101
102 int m_size{0};
103
104 Aws::Vector<Aws::String> m_mountOptions;
105 bool m_containerPathHasBeenSet = false;
106 bool m_sizeHasBeenSet = false;
107 bool m_mountOptionsHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace ECS
112} // namespace Aws
Tmpfs & WithSize(int value)
Definition Tmpfs.h:64
void SetContainerPath(ContainerPathT &&value)
Definition Tmpfs.h:43
Tmpfs & AddMountOptions(MountOptionsT &&value)
Definition Tmpfs.h:93
void SetMountOptions(MountOptionsT &&value)
Definition Tmpfs.h:83
bool ContainerPathHasBeenSet() const
Definition Tmpfs.h:41
AWS_ECS_API Tmpfs()=default
const Aws::Vector< Aws::String > & GetMountOptions() const
Definition Tmpfs.h:80
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:40
bool MountOptionsHasBeenSet() const
Definition Tmpfs.h:81
AWS_ECS_API Tmpfs(Aws::Utils::Json::JsonView jsonValue)
Tmpfs & WithMountOptions(MountOptionsT &&value)
Definition Tmpfs.h:88
Tmpfs & WithContainerPath(ContainerPathT &&value)
Definition Tmpfs.h:48
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