AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename HostPathT = Aws::String>
51 void SetHostPath(HostPathT&& value) { m_hostPathHasBeenSet = true; m_hostPath = std::forward<HostPathT>(value); }
52 template<typename HostPathT = Aws::String>
53 Device& WithHostPath(HostPathT&& value) { SetHostPath(std::forward<HostPathT>(value)); return *this;}
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) { m_containerPathHasBeenSet = true; m_containerPath = std::forward<ContainerPathT>(value); }
65 template<typename ContainerPathT = Aws::String>
66 Device& WithContainerPath(ContainerPathT&& value) { SetContainerPath(std::forward<ContainerPathT>(value)); return *this;}
68
70
75 inline const Aws::Vector<DeviceCgroupPermission>& GetPermissions() const { return m_permissions; }
76 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
77 template<typename PermissionsT = Aws::Vector<DeviceCgroupPermission>>
78 void SetPermissions(PermissionsT&& value) { m_permissionsHasBeenSet = true; m_permissions = std::forward<PermissionsT>(value); }
79 template<typename PermissionsT = Aws::Vector<DeviceCgroupPermission>>
80 Device& WithPermissions(PermissionsT&& value) { SetPermissions(std::forward<PermissionsT>(value)); return *this;}
81 inline Device& AddPermissions(DeviceCgroupPermission value) { m_permissionsHasBeenSet = true; m_permissions.push_back(value); return *this; }
83 private:
84
85 Aws::String m_hostPath;
86 bool m_hostPathHasBeenSet = false;
87
88 Aws::String m_containerPath;
89 bool m_containerPathHasBeenSet = false;
90
92 bool m_permissionsHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace Batch
97} // namespace Aws
void SetHostPath(HostPathT &&value)
Definition Device.h:51
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:78
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)
bool PermissionsHasBeenSet() const
Definition Device.h:76
Device & WithHostPath(HostPathT &&value)
Definition Device.h:53
Device & AddPermissions(DeviceCgroupPermission value)
Definition Device.h:81
const Aws::String & GetHostPath() const
Definition Device.h:48
AWS_BATCH_API Device()=default
Device & WithContainerPath(ContainerPathT &&value)
Definition Device.h:66
const Aws::Vector< DeviceCgroupPermission > & GetPermissions() const
Definition Device.h:75
Device & WithPermissions(PermissionsT &&value)
Definition Device.h:80
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue