AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
DockerVolumeConfiguration.h
Go to the documentation of this file.
1
6#pragma once
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
37 {
38 public:
43
44
51 inline const Scope& GetScope() const{ return m_scope; }
52
59 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
60
67 inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
68
75 inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
76
83 inline DockerVolumeConfiguration& WithScope(const Scope& value) { SetScope(value); return *this;}
84
91 inline DockerVolumeConfiguration& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
92
93
99 inline bool GetAutoprovision() const{ return m_autoprovision; }
100
106 inline bool AutoprovisionHasBeenSet() const { return m_autoprovisionHasBeenSet; }
107
113 inline void SetAutoprovision(bool value) { m_autoprovisionHasBeenSet = true; m_autoprovision = value; }
114
120 inline DockerVolumeConfiguration& WithAutoprovision(bool value) { SetAutoprovision(value); return *this;}
121
122
139 inline const Aws::String& GetDriver() const{ return m_driver; }
140
157 inline bool DriverHasBeenSet() const { return m_driverHasBeenSet; }
158
175 inline void SetDriver(const Aws::String& value) { m_driverHasBeenSet = true; m_driver = value; }
176
193 inline void SetDriver(Aws::String&& value) { m_driverHasBeenSet = true; m_driver = std::move(value); }
194
211 inline void SetDriver(const char* value) { m_driverHasBeenSet = true; m_driver.assign(value); }
212
229 inline DockerVolumeConfiguration& WithDriver(const Aws::String& value) { SetDriver(value); return *this;}
230
247 inline DockerVolumeConfiguration& WithDriver(Aws::String&& value) { SetDriver(std::move(value)); return *this;}
248
265 inline DockerVolumeConfiguration& WithDriver(const char* value) { SetDriver(value); return *this;}
266
267
278 inline const Aws::Map<Aws::String, Aws::String>& GetDriverOpts() const{ return m_driverOpts; }
279
290 inline bool DriverOptsHasBeenSet() const { return m_driverOptsHasBeenSet; }
291
302 inline void SetDriverOpts(const Aws::Map<Aws::String, Aws::String>& value) { m_driverOptsHasBeenSet = true; m_driverOpts = value; }
303
314 inline void SetDriverOpts(Aws::Map<Aws::String, Aws::String>&& value) { m_driverOptsHasBeenSet = true; m_driverOpts = std::move(value); }
315
327
339
350 inline DockerVolumeConfiguration& AddDriverOpts(const Aws::String& key, const Aws::String& value) { m_driverOptsHasBeenSet = true; m_driverOpts.emplace(key, value); return *this; }
351
362 inline DockerVolumeConfiguration& AddDriverOpts(Aws::String&& key, const Aws::String& value) { m_driverOptsHasBeenSet = true; m_driverOpts.emplace(std::move(key), value); return *this; }
363
374 inline DockerVolumeConfiguration& AddDriverOpts(const Aws::String& key, Aws::String&& value) { m_driverOptsHasBeenSet = true; m_driverOpts.emplace(key, std::move(value)); return *this; }
375
386 inline DockerVolumeConfiguration& AddDriverOpts(Aws::String&& key, Aws::String&& value) { m_driverOptsHasBeenSet = true; m_driverOpts.emplace(std::move(key), std::move(value)); return *this; }
387
398 inline DockerVolumeConfiguration& AddDriverOpts(const char* key, Aws::String&& value) { m_driverOptsHasBeenSet = true; m_driverOpts.emplace(key, std::move(value)); return *this; }
399
410 inline DockerVolumeConfiguration& AddDriverOpts(Aws::String&& key, const char* value) { m_driverOptsHasBeenSet = true; m_driverOpts.emplace(std::move(key), value); return *this; }
411
422 inline DockerVolumeConfiguration& AddDriverOpts(const char* key, const char* value) { m_driverOptsHasBeenSet = true; m_driverOpts.emplace(key, value); return *this; }
423
424
435 inline const Aws::Map<Aws::String, Aws::String>& GetLabels() const{ return m_labels; }
436
447 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
448
459 inline void SetLabels(const Aws::Map<Aws::String, Aws::String>& value) { m_labelsHasBeenSet = true; m_labels = value; }
460
471 inline void SetLabels(Aws::Map<Aws::String, Aws::String>&& value) { m_labelsHasBeenSet = true; m_labels = std::move(value); }
472
484
495 inline DockerVolumeConfiguration& WithLabels(Aws::Map<Aws::String, Aws::String>&& value) { SetLabels(std::move(value)); return *this;}
496
507 inline DockerVolumeConfiguration& AddLabels(const Aws::String& key, const Aws::String& value) { m_labelsHasBeenSet = true; m_labels.emplace(key, value); return *this; }
508
519 inline DockerVolumeConfiguration& AddLabels(Aws::String&& key, const Aws::String& value) { m_labelsHasBeenSet = true; m_labels.emplace(std::move(key), value); return *this; }
520
531 inline DockerVolumeConfiguration& AddLabels(const Aws::String& key, Aws::String&& value) { m_labelsHasBeenSet = true; m_labels.emplace(key, std::move(value)); return *this; }
532
543 inline DockerVolumeConfiguration& AddLabels(Aws::String&& key, Aws::String&& value) { m_labelsHasBeenSet = true; m_labels.emplace(std::move(key), std::move(value)); return *this; }
544
555 inline DockerVolumeConfiguration& AddLabels(const char* key, Aws::String&& value) { m_labelsHasBeenSet = true; m_labels.emplace(key, std::move(value)); return *this; }
556
567 inline DockerVolumeConfiguration& AddLabels(Aws::String&& key, const char* value) { m_labelsHasBeenSet = true; m_labels.emplace(std::move(key), value); return *this; }
568
579 inline DockerVolumeConfiguration& AddLabels(const char* key, const char* value) { m_labelsHasBeenSet = true; m_labels.emplace(key, value); return *this; }
580
581 private:
582
583 Scope m_scope;
584 bool m_scopeHasBeenSet = false;
585
586 bool m_autoprovision;
587 bool m_autoprovisionHasBeenSet = false;
588
589 Aws::String m_driver;
590 bool m_driverHasBeenSet = false;
591
593 bool m_driverOptsHasBeenSet = false;
594
596 bool m_labelsHasBeenSet = false;
597 };
598
599} // namespace Model
600} // namespace ECS
601} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
DockerVolumeConfiguration & WithDriver(Aws::String &&value)
DockerVolumeConfiguration & AddDriverOpts(const char *key, const char *value)
DockerVolumeConfiguration & WithDriver(const Aws::String &value)
AWS_ECS_API DockerVolumeConfiguration(Aws::Utils::Json::JsonView jsonValue)
DockerVolumeConfiguration & AddLabels(Aws::String &&key, const Aws::String &value)
DockerVolumeConfiguration & WithLabels(const Aws::Map< Aws::String, Aws::String > &value)
DockerVolumeConfiguration & AddLabels(const char *key, const char *value)
void SetLabels(const Aws::Map< Aws::String, Aws::String > &value)
void SetDriverOpts(const Aws::Map< Aws::String, Aws::String > &value)
void SetDriverOpts(Aws::Map< Aws::String, Aws::String > &&value)
DockerVolumeConfiguration & AddDriverOpts(Aws::String &&key, const char *value)
DockerVolumeConfiguration & WithLabels(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetDriverOpts() const
DockerVolumeConfiguration & WithScope(Scope &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
DockerVolumeConfiguration & AddDriverOpts(Aws::String &&key, Aws::String &&value)
void SetLabels(Aws::Map< Aws::String, Aws::String > &&value)
DockerVolumeConfiguration & WithDriverOpts(Aws::Map< Aws::String, Aws::String > &&value)
DockerVolumeConfiguration & AddDriverOpts(const Aws::String &key, Aws::String &&value)
DockerVolumeConfiguration & WithDriverOpts(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetLabels() const
DockerVolumeConfiguration & AddLabels(Aws::String &&key, Aws::String &&value)
DockerVolumeConfiguration & AddDriverOpts(Aws::String &&key, const Aws::String &value)
DockerVolumeConfiguration & AddLabels(Aws::String &&key, const char *value)
DockerVolumeConfiguration & AddLabels(const Aws::String &key, Aws::String &&value)
DockerVolumeConfiguration & AddDriverOpts(const Aws::String &key, const Aws::String &value)
DockerVolumeConfiguration & WithScope(const Scope &value)
DockerVolumeConfiguration & AddDriverOpts(const char *key, Aws::String &&value)
DockerVolumeConfiguration & WithDriver(const char *value)
DockerVolumeConfiguration & WithAutoprovision(bool value)
DockerVolumeConfiguration & AddLabels(const char *key, Aws::String &&value)
AWS_ECS_API DockerVolumeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
DockerVolumeConfiguration & AddLabels(const Aws::String &key, const Aws::String &value)
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