AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Device.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/DeviceCgroupPermission.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Batch {
22namespace Model {
23
31class Device {
32 public:
33 AWS_BATCH_API Device() = default;
34 AWS_BATCH_API Device(Aws::Utils::Json::JsonView jsonValue);
35 AWS_BATCH_API Device& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetHostPath() const { return m_hostPath; }
43 inline bool HostPathHasBeenSet() const { return m_hostPathHasBeenSet; }
44 template <typename HostPathT = Aws::String>
45 void SetHostPath(HostPathT&& value) {
46 m_hostPathHasBeenSet = true;
47 m_hostPath = std::forward<HostPathT>(value);
48 }
49 template <typename HostPathT = Aws::String>
50 Device& WithHostPath(HostPathT&& value) {
51 SetHostPath(std::forward<HostPathT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetContainerPath() const { return m_containerPath; }
62 inline bool ContainerPathHasBeenSet() const { return m_containerPathHasBeenSet; }
63 template <typename ContainerPathT = Aws::String>
64 void SetContainerPath(ContainerPathT&& value) {
65 m_containerPathHasBeenSet = true;
66 m_containerPath = std::forward<ContainerPathT>(value);
67 }
68 template <typename ContainerPathT = Aws::String>
69 Device& WithContainerPath(ContainerPathT&& value) {
70 SetContainerPath(std::forward<ContainerPathT>(value));
71 return *this;
72 }
74
76
81 inline const Aws::Vector<DeviceCgroupPermission>& GetPermissions() const { return m_permissions; }
82 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
83 template <typename PermissionsT = Aws::Vector<DeviceCgroupPermission>>
84 void SetPermissions(PermissionsT&& value) {
85 m_permissionsHasBeenSet = true;
86 m_permissions = std::forward<PermissionsT>(value);
87 }
88 template <typename PermissionsT = Aws::Vector<DeviceCgroupPermission>>
89 Device& WithPermissions(PermissionsT&& value) {
90 SetPermissions(std::forward<PermissionsT>(value));
91 return *this;
92 }
94 m_permissionsHasBeenSet = true;
95 m_permissions.push_back(value);
96 return *this;
97 }
99 private:
100 Aws::String m_hostPath;
101
102 Aws::String m_containerPath;
103
105 bool m_hostPathHasBeenSet = false;
106 bool m_containerPathHasBeenSet = false;
107 bool m_permissionsHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace Batch
112} // namespace Aws
void SetHostPath(HostPathT &&value)
Definition Device.h:45
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetContainerPath(ContainerPathT &&value)
Definition Device.h:64
bool ContainerPathHasBeenSet() const
Definition Device.h:62
const Aws::String & GetContainerPath() const
Definition Device.h:61
void SetPermissions(PermissionsT &&value)
Definition Device.h:84
AWS_BATCH_API Device & operator=(Aws::Utils::Json::JsonView jsonValue)
bool HostPathHasBeenSet() const
Definition Device.h:43
AWS_BATCH_API Device(Aws::Utils::Json::JsonView jsonValue)
bool PermissionsHasBeenSet() const
Definition Device.h:82
Device & WithHostPath(HostPathT &&value)
Definition Device.h:50
Device & AddPermissions(DeviceCgroupPermission value)
Definition Device.h:93
const Aws::String & GetHostPath() const
Definition Device.h:42
AWS_BATCH_API Device()=default
Device & WithContainerPath(ContainerPathT &&value)
Definition Device.h:69
const Aws::Vector< DeviceCgroupPermission > & GetPermissions() const
Definition Device.h:81
Device & WithPermissions(PermissionsT &&value)
Definition Device.h:89
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue