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/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ecs/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 ECS
24{
25namespace Model
26{
27
34 class Device
35 {
36 public:
37 AWS_ECS_API Device();
38 AWS_ECS_API Device(Aws::Utils::Json::JsonView jsonValue);
41
42
44
47 inline const Aws::String& GetHostPath() const{ return m_hostPath; }
48 inline bool HostPathHasBeenSet() const { return m_hostPathHasBeenSet; }
49 inline void SetHostPath(const Aws::String& value) { m_hostPathHasBeenSet = true; m_hostPath = value; }
50 inline void SetHostPath(Aws::String&& value) { m_hostPathHasBeenSet = true; m_hostPath = std::move(value); }
51 inline void SetHostPath(const char* value) { m_hostPathHasBeenSet = true; m_hostPath.assign(value); }
52 inline Device& WithHostPath(const Aws::String& value) { SetHostPath(value); return *this;}
53 inline Device& WithHostPath(Aws::String&& value) { SetHostPath(std::move(value)); return *this;}
54 inline Device& WithHostPath(const char* value) { SetHostPath(value); return *this;}
56
58
61 inline const Aws::String& GetContainerPath() const{ return m_containerPath; }
62 inline bool ContainerPathHasBeenSet() const { return m_containerPathHasBeenSet; }
63 inline void SetContainerPath(const Aws::String& value) { m_containerPathHasBeenSet = true; m_containerPath = value; }
64 inline void SetContainerPath(Aws::String&& value) { m_containerPathHasBeenSet = true; m_containerPath = std::move(value); }
65 inline void SetContainerPath(const char* value) { m_containerPathHasBeenSet = true; m_containerPath.assign(value); }
66 inline Device& WithContainerPath(const Aws::String& value) { SetContainerPath(value); return *this;}
67 inline Device& WithContainerPath(Aws::String&& value) { SetContainerPath(std::move(value)); return *this;}
68 inline Device& WithContainerPath(const char* value) { SetContainerPath(value); return *this;}
70
72
77 inline const Aws::Vector<DeviceCgroupPermission>& GetPermissions() const{ return m_permissions; }
78 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
79 inline void SetPermissions(const Aws::Vector<DeviceCgroupPermission>& value) { m_permissionsHasBeenSet = true; m_permissions = value; }
80 inline void SetPermissions(Aws::Vector<DeviceCgroupPermission>&& value) { m_permissionsHasBeenSet = true; m_permissions = std::move(value); }
81 inline Device& WithPermissions(const Aws::Vector<DeviceCgroupPermission>& value) { SetPermissions(value); return *this;}
82 inline Device& WithPermissions(Aws::Vector<DeviceCgroupPermission>&& value) { SetPermissions(std::move(value)); return *this;}
83 inline Device& AddPermissions(const DeviceCgroupPermission& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(value); return *this; }
84 inline Device& AddPermissions(DeviceCgroupPermission&& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(std::move(value)); return *this; }
86 private:
87
88 Aws::String m_hostPath;
89 bool m_hostPathHasBeenSet = false;
90
91 Aws::String m_containerPath;
92 bool m_containerPathHasBeenSet = false;
93
95 bool m_permissionsHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace ECS
100} // namespace Aws
void SetContainerPath(const char *value)
Definition Device.h:65
Device & AddPermissions(const DeviceCgroupPermission &value)
Definition Device.h:83
Device & WithContainerPath(Aws::String &&value)
Definition Device.h:67
bool HostPathHasBeenSet() const
Definition Device.h:48
AWS_ECS_API Device(Aws::Utils::Json::JsonView jsonValue)
void SetPermissions(Aws::Vector< DeviceCgroupPermission > &&value)
Definition Device.h:80
void SetHostPath(Aws::String &&value)
Definition Device.h:50
Device & WithPermissions(Aws::Vector< DeviceCgroupPermission > &&value)
Definition Device.h:82
void SetContainerPath(const Aws::String &value)
Definition Device.h:63
Device & WithHostPath(const char *value)
Definition Device.h:54
void SetPermissions(const Aws::Vector< DeviceCgroupPermission > &value)
Definition Device.h:79
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
Device & AddPermissions(DeviceCgroupPermission &&value)
Definition Device.h:84
Device & WithHostPath(Aws::String &&value)
Definition Device.h:53
Device & WithContainerPath(const Aws::String &value)
Definition Device.h:66
bool ContainerPathHasBeenSet() const
Definition Device.h:62
AWS_ECS_API Device & operator=(Aws::Utils::Json::JsonView jsonValue)
Device & WithHostPath(const Aws::String &value)
Definition Device.h:52
bool PermissionsHasBeenSet() const
Definition Device.h:78
Device & WithContainerPath(const char *value)
Definition Device.h:68
const Aws::String & GetHostPath() const
Definition Device.h:47
void SetContainerPath(Aws::String &&value)
Definition Device.h:64
const Aws::String & GetContainerPath() const
Definition Device.h:61
const Aws::Vector< DeviceCgroupPermission > & GetPermissions() const
Definition Device.h:77
void SetHostPath(const Aws::String &value)
Definition Device.h:49
void SetHostPath(const char *value)
Definition Device.h:51
Device & WithPermissions(const Aws::Vector< DeviceCgroupPermission > &value)
Definition Device.h:81
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue