AWS SDK for C++  1.9.107
AWS SDK for C++
Device.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace ECS
24 {
25 namespace Model
26 {
27 
35  {
36  public:
37  Device();
41 
42 
46  inline const Aws::String& GetHostPath() const{ return m_hostPath; }
47 
51  inline bool HostPathHasBeenSet() const { return m_hostPathHasBeenSet; }
52 
56  inline void SetHostPath(const Aws::String& value) { m_hostPathHasBeenSet = true; m_hostPath = value; }
57 
61  inline void SetHostPath(Aws::String&& value) { m_hostPathHasBeenSet = true; m_hostPath = std::move(value); }
62 
66  inline void SetHostPath(const char* value) { m_hostPathHasBeenSet = true; m_hostPath.assign(value); }
67 
71  inline Device& WithHostPath(const Aws::String& value) { SetHostPath(value); return *this;}
72 
76  inline Device& WithHostPath(Aws::String&& value) { SetHostPath(std::move(value)); return *this;}
77 
81  inline Device& WithHostPath(const char* value) { SetHostPath(value); return *this;}
82 
83 
87  inline const Aws::String& GetContainerPath() const{ return m_containerPath; }
88 
92  inline bool ContainerPathHasBeenSet() const { return m_containerPathHasBeenSet; }
93 
97  inline void SetContainerPath(const Aws::String& value) { m_containerPathHasBeenSet = true; m_containerPath = value; }
98 
102  inline void SetContainerPath(Aws::String&& value) { m_containerPathHasBeenSet = true; m_containerPath = std::move(value); }
103 
107  inline void SetContainerPath(const char* value) { m_containerPathHasBeenSet = true; m_containerPath.assign(value); }
108 
112  inline Device& WithContainerPath(const Aws::String& value) { SetContainerPath(value); return *this;}
113 
117  inline Device& WithContainerPath(Aws::String&& value) { SetContainerPath(std::move(value)); return *this;}
118 
122  inline Device& WithContainerPath(const char* value) { SetContainerPath(value); return *this;}
123 
124 
130  inline const Aws::Vector<DeviceCgroupPermission>& GetPermissions() const{ return m_permissions; }
131 
137  inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
138 
144  inline void SetPermissions(const Aws::Vector<DeviceCgroupPermission>& value) { m_permissionsHasBeenSet = true; m_permissions = value; }
145 
151  inline void SetPermissions(Aws::Vector<DeviceCgroupPermission>&& value) { m_permissionsHasBeenSet = true; m_permissions = std::move(value); }
152 
158  inline Device& WithPermissions(const Aws::Vector<DeviceCgroupPermission>& value) { SetPermissions(value); return *this;}
159 
165  inline Device& WithPermissions(Aws::Vector<DeviceCgroupPermission>&& value) { SetPermissions(std::move(value)); return *this;}
166 
172  inline Device& AddPermissions(const DeviceCgroupPermission& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(value); return *this; }
173 
179  inline Device& AddPermissions(DeviceCgroupPermission&& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(std::move(value)); return *this; }
180 
181  private:
182 
183  Aws::String m_hostPath;
184  bool m_hostPathHasBeenSet;
185 
186  Aws::String m_containerPath;
187  bool m_containerPathHasBeenSet;
188 
190  bool m_permissionsHasBeenSet;
191  };
192 
193 } // namespace Model
194 } // namespace ECS
195 } // namespace Aws
DeviceCgroupPermission.h
Aws::ECS::Model::Device::SetPermissions
void SetPermissions(Aws::Vector< DeviceCgroupPermission > &&value)
Definition: Device.h:151
Aws::ECS::Model::Device::GetHostPath
const Aws::String & GetHostPath() const
Definition: Device.h:46
Aws::ECS::Model::Device::WithContainerPath
Device & WithContainerPath(Aws::String &&value)
Definition: Device.h:117
Aws::ECS::Model::DeviceCgroupPermission
DeviceCgroupPermission
Definition: DeviceCgroupPermission.h:17
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::Device::SetContainerPath
void SetContainerPath(const Aws::String &value)
Definition: Device.h:97
Aws::ECS::Model::Device::operator=
Device & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECS::Model::Device::ContainerPathHasBeenSet
bool ContainerPathHasBeenSet() const
Definition: Device.h:92
Aws::ECS::Model::Device::WithContainerPath
Device & WithContainerPath(const char *value)
Definition: Device.h:122
AWSVector.h
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::Device::SetPermissions
void SetPermissions(const Aws::Vector< DeviceCgroupPermission > &value)
Definition: Device.h:144
Aws::ECS::Model::Device::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECS::Model::Device::AddPermissions
Device & AddPermissions(const DeviceCgroupPermission &value)
Definition: Device.h:172
Aws::ECS::Model::Device::WithHostPath
Device & WithHostPath(const Aws::String &value)
Definition: Device.h:71
Aws::ECS::Model::Device
Definition: Device.h:35
Aws::ECS::Model::Device::GetContainerPath
const Aws::String & GetContainerPath() const
Definition: Device.h:87
Aws::ECS::Model::Device::WithHostPath
Device & WithHostPath(Aws::String &&value)
Definition: Device.h:76
Aws::ECS::Model::Device::SetHostPath
void SetHostPath(const char *value)
Definition: Device.h:66
Aws::ECS::Model::Device::SetHostPath
void SetHostPath(const Aws::String &value)
Definition: Device.h:56
Aws::ECS::Model::Device::WithPermissions
Device & WithPermissions(Aws::Vector< DeviceCgroupPermission > &&value)
Definition: Device.h:165
Aws::ECS::Model::Device::SetHostPath
void SetHostPath(Aws::String &&value)
Definition: Device.h:61
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECS::Model::Device::GetPermissions
const Aws::Vector< DeviceCgroupPermission > & GetPermissions() const
Definition: Device.h:130
Aws::ECS::Model::Device::WithHostPath
Device & WithHostPath(const char *value)
Definition: Device.h:81
Aws::ECS::Model::Device::AddPermissions
Device & AddPermissions(DeviceCgroupPermission &&value)
Definition: Device.h:179
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::Device::SetContainerPath
void SetContainerPath(const char *value)
Definition: Device.h:107
Aws::ECS::Model::Device::PermissionsHasBeenSet
bool PermissionsHasBeenSet() const
Definition: Device.h:137
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::Device::WithContainerPath
Device & WithContainerPath(const Aws::String &value)
Definition: Device.h:112
Aws::ECS::Model::Device::WithPermissions
Device & WithPermissions(const Aws::Vector< DeviceCgroupPermission > &value)
Definition: Device.h:158
Aws::ECS::Model::Device::Device
Device()
Aws::ECS::Model::Device::Device
Device(Aws::Utils::Json::JsonView jsonValue)
ECS_EXPORTS.h
Aws::ECS::Model::Device::HostPathHasBeenSet
bool HostPathHasBeenSet() const
Definition: Device.h:51
Aws::ECS::Model::Device::SetContainerPath
void SetContainerPath(Aws::String &&value)
Definition: Device.h:102