AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Device.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 <aws/batch/model/DeviceCgroupPermission.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Batch
24{
25namespace Model
26{
27
35 class Device
36 {
37 public:
38 AWS_BATCH_API Device();
39 AWS_BATCH_API Device(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BATCH_API Device& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetHostPath() const{ return m_hostPath; }
49 inline bool HostPathHasBeenSet() const { return m_hostPathHasBeenSet; }
50 inline void SetHostPath(const Aws::String& value) { m_hostPathHasBeenSet = true; m_hostPath = value; }
51 inline void SetHostPath(Aws::String&& value) { m_hostPathHasBeenSet = true; m_hostPath = std::move(value); }
52 inline void SetHostPath(const char* value) { m_hostPathHasBeenSet = true; m_hostPath.assign(value); }
53 inline Device& WithHostPath(const Aws::String& value) { SetHostPath(value); return *this;}
54 inline Device& WithHostPath(Aws::String&& value) { SetHostPath(std::move(value)); return *this;}
55 inline Device& WithHostPath(const char* value) { SetHostPath(value); return *this;}
57
59
63 inline const Aws::String& GetContainerPath() const{ return m_containerPath; }
64 inline bool ContainerPathHasBeenSet() const { return m_containerPathHasBeenSet; }
65 inline void SetContainerPath(const Aws::String& value) { m_containerPathHasBeenSet = true; m_containerPath = value; }
66 inline void SetContainerPath(Aws::String&& value) { m_containerPathHasBeenSet = true; m_containerPath = std::move(value); }
67 inline void SetContainerPath(const char* value) { m_containerPathHasBeenSet = true; m_containerPath.assign(value); }
68 inline Device& WithContainerPath(const Aws::String& value) { SetContainerPath(value); return *this;}
69 inline Device& WithContainerPath(Aws::String&& value) { SetContainerPath(std::move(value)); return *this;}
70 inline Device& WithContainerPath(const char* value) { SetContainerPath(value); return *this;}
72
74
79 inline const Aws::Vector<DeviceCgroupPermission>& GetPermissions() const{ return m_permissions; }
80 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
81 inline void SetPermissions(const Aws::Vector<DeviceCgroupPermission>& value) { m_permissionsHasBeenSet = true; m_permissions = value; }
82 inline void SetPermissions(Aws::Vector<DeviceCgroupPermission>&& value) { m_permissionsHasBeenSet = true; m_permissions = std::move(value); }
83 inline Device& WithPermissions(const Aws::Vector<DeviceCgroupPermission>& value) { SetPermissions(value); return *this;}
84 inline Device& WithPermissions(Aws::Vector<DeviceCgroupPermission>&& value) { SetPermissions(std::move(value)); return *this;}
85 inline Device& AddPermissions(const DeviceCgroupPermission& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(value); return *this; }
86 inline Device& AddPermissions(DeviceCgroupPermission&& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(std::move(value)); return *this; }
88 private:
89
90 Aws::String m_hostPath;
91 bool m_hostPathHasBeenSet = false;
92
93 Aws::String m_containerPath;
94 bool m_containerPathHasBeenSet = false;
95
97 bool m_permissionsHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace Batch
102} // namespace Aws
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
Device & WithContainerPath(const char *value)
Definition Device.h:70
void SetContainerPath(const Aws::String &value)
Definition Device.h:65
bool ContainerPathHasBeenSet() const
Definition Device.h:64
Device & WithContainerPath(Aws::String &&value)
Definition Device.h:69
const Aws::String & GetContainerPath() const
Definition Device.h:63
Device & WithPermissions(const Aws::Vector< DeviceCgroupPermission > &value)
Definition Device.h:83
void SetContainerPath(Aws::String &&value)
Definition Device.h:66
AWS_BATCH_API Device & operator=(Aws::Utils::Json::JsonView jsonValue)
bool HostPathHasBeenSet() const
Definition Device.h:49
AWS_BATCH_API Device(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API Device()
Device & WithContainerPath(const Aws::String &value)
Definition Device.h:68
void SetPermissions(const Aws::Vector< DeviceCgroupPermission > &value)
Definition Device.h:81
Device & WithPermissions(Aws::Vector< DeviceCgroupPermission > &&value)
Definition Device.h:84
Device & WithHostPath(const char *value)
Definition Device.h:55
Device & WithHostPath(const Aws::String &value)
Definition Device.h:53
bool PermissionsHasBeenSet() const
Definition Device.h:80
void SetPermissions(Aws::Vector< DeviceCgroupPermission > &&value)
Definition Device.h:82
Device & AddPermissions(const DeviceCgroupPermission &value)
Definition Device.h:85
void SetHostPath(const Aws::String &value)
Definition Device.h:50
const Aws::String & GetHostPath() const
Definition Device.h:48
Device & AddPermissions(DeviceCgroupPermission &&value)
Definition Device.h:86
void SetHostPath(const char *value)
Definition Device.h:52
void SetContainerPath(const char *value)
Definition Device.h:67
void SetHostPath(Aws::String &&value)
Definition Device.h:51
Device & WithHostPath(Aws::String &&value)
Definition Device.h:54
const Aws::Vector< DeviceCgroupPermission > & GetPermissions() const
Definition Device.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue