AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DockerVolumeConfiguration.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/model/Scope.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.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
37 {
38 public:
43
44
46
52 inline const Scope& GetScope() const{ return m_scope; }
53 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
54 inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
55 inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
56 inline DockerVolumeConfiguration& WithScope(const Scope& value) { SetScope(value); return *this;}
57 inline DockerVolumeConfiguration& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
59
61
66 inline bool GetAutoprovision() const{ return m_autoprovision; }
67 inline bool AutoprovisionHasBeenSet() const { return m_autoprovisionHasBeenSet; }
68 inline void SetAutoprovision(bool value) { m_autoprovisionHasBeenSet = true; m_autoprovision = value; }
69 inline DockerVolumeConfiguration& WithAutoprovision(bool value) { SetAutoprovision(value); return *this;}
71
73
82 inline const Aws::String& GetDriver() const{ return m_driver; }
83 inline bool DriverHasBeenSet() const { return m_driverHasBeenSet; }
84 inline void SetDriver(const Aws::String& value) { m_driverHasBeenSet = true; m_driver = value; }
85 inline void SetDriver(Aws::String&& value) { m_driverHasBeenSet = true; m_driver = std::move(value); }
86 inline void SetDriver(const char* value) { m_driverHasBeenSet = true; m_driver.assign(value); }
87 inline DockerVolumeConfiguration& WithDriver(const Aws::String& value) { SetDriver(value); return *this;}
88 inline DockerVolumeConfiguration& WithDriver(Aws::String&& value) { SetDriver(std::move(value)); return *this;}
89 inline DockerVolumeConfiguration& WithDriver(const char* value) { SetDriver(value); return *this;}
91
93
98 inline const Aws::Map<Aws::String, Aws::String>& GetDriverOpts() const{ return m_driverOpts; }
99 inline bool DriverOptsHasBeenSet() const { return m_driverOptsHasBeenSet; }
100 inline void SetDriverOpts(const Aws::Map<Aws::String, Aws::String>& value) { m_driverOptsHasBeenSet = true; m_driverOpts = value; }
101 inline void SetDriverOpts(Aws::Map<Aws::String, Aws::String>&& value) { m_driverOptsHasBeenSet = true; m_driverOpts = std::move(value); }
104 inline DockerVolumeConfiguration& AddDriverOpts(const Aws::String& key, const Aws::String& value) { m_driverOptsHasBeenSet = true; m_driverOpts.emplace(key, value); return *this; }
105 inline DockerVolumeConfiguration& AddDriverOpts(Aws::String&& key, const Aws::String& value) { m_driverOptsHasBeenSet = true; m_driverOpts.emplace(std::move(key), value); return *this; }
106 inline DockerVolumeConfiguration& AddDriverOpts(const Aws::String& key, Aws::String&& value) { m_driverOptsHasBeenSet = true; m_driverOpts.emplace(key, std::move(value)); return *this; }
107 inline DockerVolumeConfiguration& AddDriverOpts(Aws::String&& key, Aws::String&& value) { m_driverOptsHasBeenSet = true; m_driverOpts.emplace(std::move(key), std::move(value)); return *this; }
108 inline DockerVolumeConfiguration& AddDriverOpts(const char* key, Aws::String&& value) { m_driverOptsHasBeenSet = true; m_driverOpts.emplace(key, std::move(value)); return *this; }
109 inline DockerVolumeConfiguration& AddDriverOpts(Aws::String&& key, const char* value) { m_driverOptsHasBeenSet = true; m_driverOpts.emplace(std::move(key), value); return *this; }
110 inline DockerVolumeConfiguration& AddDriverOpts(const char* key, const char* value) { m_driverOptsHasBeenSet = true; m_driverOpts.emplace(key, value); return *this; }
112
114
119 inline const Aws::Map<Aws::String, Aws::String>& GetLabels() const{ return m_labels; }
120 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
121 inline void SetLabels(const Aws::Map<Aws::String, Aws::String>& value) { m_labelsHasBeenSet = true; m_labels = value; }
122 inline void SetLabels(Aws::Map<Aws::String, Aws::String>&& value) { m_labelsHasBeenSet = true; m_labels = std::move(value); }
124 inline DockerVolumeConfiguration& WithLabels(Aws::Map<Aws::String, Aws::String>&& value) { SetLabels(std::move(value)); return *this;}
125 inline DockerVolumeConfiguration& AddLabels(const Aws::String& key, const Aws::String& value) { m_labelsHasBeenSet = true; m_labels.emplace(key, value); return *this; }
126 inline DockerVolumeConfiguration& AddLabels(Aws::String&& key, const Aws::String& value) { m_labelsHasBeenSet = true; m_labels.emplace(std::move(key), value); return *this; }
127 inline DockerVolumeConfiguration& AddLabels(const Aws::String& key, Aws::String&& value) { m_labelsHasBeenSet = true; m_labels.emplace(key, std::move(value)); return *this; }
128 inline DockerVolumeConfiguration& AddLabels(Aws::String&& key, Aws::String&& value) { m_labelsHasBeenSet = true; m_labels.emplace(std::move(key), std::move(value)); return *this; }
129 inline DockerVolumeConfiguration& AddLabels(const char* key, Aws::String&& value) { m_labelsHasBeenSet = true; m_labels.emplace(key, std::move(value)); return *this; }
130 inline DockerVolumeConfiguration& AddLabels(Aws::String&& key, const char* value) { m_labelsHasBeenSet = true; m_labels.emplace(std::move(key), value); return *this; }
131 inline DockerVolumeConfiguration& AddLabels(const char* key, const char* value) { m_labelsHasBeenSet = true; m_labels.emplace(key, value); return *this; }
133 private:
134
135 Scope m_scope;
136 bool m_scopeHasBeenSet = false;
137
138 bool m_autoprovision;
139 bool m_autoprovisionHasBeenSet = false;
140
141 Aws::String m_driver;
142 bool m_driverHasBeenSet = false;
143
145 bool m_driverOptsHasBeenSet = false;
146
148 bool m_labelsHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace ECS
153} // namespace Aws
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
Aws::Utils::Json::JsonValue JsonValue