AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MountPoint.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ECS
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_ECS_API MountPoint() = default;
36 AWS_ECS_API MountPoint(Aws::Utils::Json::JsonView jsonValue);
39
40
42
46 inline const Aws::String& GetSourceVolume() const { return m_sourceVolume; }
47 inline bool SourceVolumeHasBeenSet() const { return m_sourceVolumeHasBeenSet; }
48 template<typename SourceVolumeT = Aws::String>
49 void SetSourceVolume(SourceVolumeT&& value) { m_sourceVolumeHasBeenSet = true; m_sourceVolume = std::forward<SourceVolumeT>(value); }
50 template<typename SourceVolumeT = Aws::String>
51 MountPoint& WithSourceVolume(SourceVolumeT&& value) { SetSourceVolume(std::forward<SourceVolumeT>(value)); return *this;}
53
55
58 inline const Aws::String& GetContainerPath() const { return m_containerPath; }
59 inline bool ContainerPathHasBeenSet() const { return m_containerPathHasBeenSet; }
60 template<typename ContainerPathT = Aws::String>
61 void SetContainerPath(ContainerPathT&& value) { m_containerPathHasBeenSet = true; m_containerPath = std::forward<ContainerPathT>(value); }
62 template<typename ContainerPathT = Aws::String>
63 MountPoint& WithContainerPath(ContainerPathT&& value) { SetContainerPath(std::forward<ContainerPathT>(value)); return *this;}
65
67
72 inline bool GetReadOnly() const { return m_readOnly; }
73 inline bool ReadOnlyHasBeenSet() const { return m_readOnlyHasBeenSet; }
74 inline void SetReadOnly(bool value) { m_readOnlyHasBeenSet = true; m_readOnly = value; }
75 inline MountPoint& WithReadOnly(bool value) { SetReadOnly(value); return *this;}
77 private:
78
79 Aws::String m_sourceVolume;
80 bool m_sourceVolumeHasBeenSet = false;
81
82 Aws::String m_containerPath;
83 bool m_containerPathHasBeenSet = false;
84
85 bool m_readOnly{false};
86 bool m_readOnlyHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace ECS
91} // namespace Aws
AWS_ECS_API MountPoint & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ReadOnlyHasBeenSet() const
Definition MountPoint.h:73
MountPoint & WithReadOnly(bool value)
Definition MountPoint.h:75
void SetReadOnly(bool value)
Definition MountPoint.h:74
void SetSourceVolume(SourceVolumeT &&value)
Definition MountPoint.h:49
AWS_ECS_API MountPoint()=default
bool SourceVolumeHasBeenSet() const
Definition MountPoint.h:47
void SetContainerPath(ContainerPathT &&value)
Definition MountPoint.h:61
MountPoint & WithSourceVolume(SourceVolumeT &&value)
Definition MountPoint.h:51
MountPoint & WithContainerPath(ContainerPathT &&value)
Definition MountPoint.h:63
const Aws::String & GetSourceVolume() const
Definition MountPoint.h:46
bool ContainerPathHasBeenSet() const
Definition MountPoint.h:59
AWS_ECS_API MountPoint(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetContainerPath() const
Definition MountPoint.h:58
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue