AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
DockerVolumeConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ecs/ECS_EXPORTS.h>
10#include <aws/ecs/model/Scope.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ECS {
22namespace Model {
23
33 public:
34 AWS_ECS_API DockerVolumeConfiguration() = default;
38
40
46 inline Scope GetScope() const { return m_scope; }
47 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
48 inline void SetScope(Scope value) {
49 m_scopeHasBeenSet = true;
50 m_scope = value;
51 }
53 SetScope(value);
54 return *this;
55 }
57
59
64 inline bool GetAutoprovision() const { return m_autoprovision; }
65 inline bool AutoprovisionHasBeenSet() const { return m_autoprovisionHasBeenSet; }
66 inline void SetAutoprovision(bool value) {
67 m_autoprovisionHasBeenSet = true;
68 m_autoprovision = value;
69 }
71 SetAutoprovision(value);
72 return *this;
73 }
75
77
86 inline const Aws::String& GetDriver() const { return m_driver; }
87 inline bool DriverHasBeenSet() const { return m_driverHasBeenSet; }
88 template <typename DriverT = Aws::String>
89 void SetDriver(DriverT&& value) {
90 m_driverHasBeenSet = true;
91 m_driver = std::forward<DriverT>(value);
92 }
93 template <typename DriverT = Aws::String>
95 SetDriver(std::forward<DriverT>(value));
96 return *this;
97 }
99
101
106 inline const Aws::Map<Aws::String, Aws::String>& GetDriverOpts() const { return m_driverOpts; }
107 inline bool DriverOptsHasBeenSet() const { return m_driverOptsHasBeenSet; }
108 template <typename DriverOptsT = Aws::Map<Aws::String, Aws::String>>
109 void SetDriverOpts(DriverOptsT&& value) {
110 m_driverOptsHasBeenSet = true;
111 m_driverOpts = std::forward<DriverOptsT>(value);
112 }
113 template <typename DriverOptsT = Aws::Map<Aws::String, Aws::String>>
115 SetDriverOpts(std::forward<DriverOptsT>(value));
116 return *this;
117 }
118 template <typename DriverOptsKeyT = Aws::String, typename DriverOptsValueT = Aws::String>
119 DockerVolumeConfiguration& AddDriverOpts(DriverOptsKeyT&& key, DriverOptsValueT&& value) {
120 m_driverOptsHasBeenSet = true;
121 m_driverOpts.emplace(std::forward<DriverOptsKeyT>(key), std::forward<DriverOptsValueT>(value));
122 return *this;
123 }
125
127
132 inline const Aws::Map<Aws::String, Aws::String>& GetLabels() const { return m_labels; }
133 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
134 template <typename LabelsT = Aws::Map<Aws::String, Aws::String>>
135 void SetLabels(LabelsT&& value) {
136 m_labelsHasBeenSet = true;
137 m_labels = std::forward<LabelsT>(value);
138 }
139 template <typename LabelsT = Aws::Map<Aws::String, Aws::String>>
141 SetLabels(std::forward<LabelsT>(value));
142 return *this;
143 }
144 template <typename LabelsKeyT = Aws::String, typename LabelsValueT = Aws::String>
145 DockerVolumeConfiguration& AddLabels(LabelsKeyT&& key, LabelsValueT&& value) {
146 m_labelsHasBeenSet = true;
147 m_labels.emplace(std::forward<LabelsKeyT>(key), std::forward<LabelsValueT>(value));
148 return *this;
149 }
151 private:
152 Scope m_scope{Scope::NOT_SET};
153
154 bool m_autoprovision{false};
155
156 Aws::String m_driver;
157
159
161 bool m_scopeHasBeenSet = false;
162 bool m_autoprovisionHasBeenSet = false;
163 bool m_driverHasBeenSet = false;
164 bool m_driverOptsHasBeenSet = false;
165 bool m_labelsHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace ECS
170} // namespace Aws
DockerVolumeConfiguration & WithLabels(LabelsT &&value)
AWS_ECS_API DockerVolumeConfiguration(Aws::Utils::Json::JsonView jsonValue)
DockerVolumeConfiguration & AddDriverOpts(DriverOptsKeyT &&key, DriverOptsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetDriverOpts() const
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
DockerVolumeConfiguration & WithScope(Scope value)
AWS_ECS_API DockerVolumeConfiguration()=default
const Aws::Map< Aws::String, Aws::String > & GetLabels() const
DockerVolumeConfiguration & AddLabels(LabelsKeyT &&key, LabelsValueT &&value)
DockerVolumeConfiguration & WithDriver(DriverT &&value)
DockerVolumeConfiguration & WithDriverOpts(DriverOptsT &&value)
DockerVolumeConfiguration & WithAutoprovision(bool value)
AWS_ECS_API DockerVolumeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue