AWS SDK for C++  1.9.156
AWS SDK for C++
DockerVolumeConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
8 #include <aws/ecs/model/Scope.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 
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 
326  inline DockerVolumeConfiguration& WithDriverOpts(const Aws::Map<Aws::String, Aws::String>& value) { SetDriverOpts(value); return *this;}
327 
338  inline DockerVolumeConfiguration& WithDriverOpts(Aws::Map<Aws::String, Aws::String>&& value) { SetDriverOpts(std::move(value)); return *this;}
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 
483  inline DockerVolumeConfiguration& WithLabels(const Aws::Map<Aws::String, Aws::String>& value) { SetLabels(value); return *this;}
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;
585 
586  bool m_autoprovision;
587  bool m_autoprovisionHasBeenSet;
588 
589  Aws::String m_driver;
590  bool m_driverHasBeenSet;
591 
593  bool m_driverOptsHasBeenSet;
594 
596  bool m_labelsHasBeenSet;
597  };
598 
599 } // namespace Model
600 } // namespace ECS
601 } // namespace Aws
Aws::ECS::Model::DockerVolumeConfiguration::AddDriverOpts
DockerVolumeConfiguration & AddDriverOpts(const Aws::String &key, Aws::String &&value)
Definition: DockerVolumeConfiguration.h:374
Aws::ECS::Model::DockerVolumeConfiguration::operator=
DockerVolumeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::DockerVolumeConfiguration::WithDriver
DockerVolumeConfiguration & WithDriver(const char *value)
Definition: DockerVolumeConfiguration.h:265
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::DockerVolumeConfiguration::GetAutoprovision
bool GetAutoprovision() const
Definition: DockerVolumeConfiguration.h:99
Aws::ECS::Model::DockerVolumeConfiguration::WithDriver
DockerVolumeConfiguration & WithDriver(Aws::String &&value)
Definition: DockerVolumeConfiguration.h:247
Aws::ECS::Model::DockerVolumeConfiguration::AutoprovisionHasBeenSet
bool AutoprovisionHasBeenSet() const
Definition: DockerVolumeConfiguration.h:106
Aws::ECS::Model::DockerVolumeConfiguration::WithLabels
DockerVolumeConfiguration & WithLabels(Aws::Map< Aws::String, Aws::String > &&value)
Definition: DockerVolumeConfiguration.h:495
Aws::ECS::Model::DockerVolumeConfiguration::AddDriverOpts
DockerVolumeConfiguration & AddDriverOpts(const Aws::String &key, const Aws::String &value)
Definition: DockerVolumeConfiguration.h:350
Aws::ECS::Model::DockerVolumeConfiguration::GetDriver
const Aws::String & GetDriver() const
Definition: DockerVolumeConfiguration.h:139
Aws::ECS::Model::DockerVolumeConfiguration::GetDriverOpts
const Aws::Map< Aws::String, Aws::String > & GetDriverOpts() const
Definition: DockerVolumeConfiguration.h:278
Scope.h
Aws::ECS::Model::DockerVolumeConfiguration
Definition: DockerVolumeConfiguration.h:37
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::DockerVolumeConfiguration::DockerVolumeConfiguration
DockerVolumeConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::Scope
Scope
Definition: Scope.h:17
Aws::ECS::Model::DockerVolumeConfiguration::AddLabels
DockerVolumeConfiguration & AddLabels(Aws::String &&key, const char *value)
Definition: DockerVolumeConfiguration.h:567
Aws::ECS::Model::DockerVolumeConfiguration::DockerVolumeConfiguration
DockerVolumeConfiguration()
Aws::ECS::Model::DockerVolumeConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECS::Model::DockerVolumeConfiguration::AddLabels
DockerVolumeConfiguration & AddLabels(const Aws::String &key, const Aws::String &value)
Definition: DockerVolumeConfiguration.h:507
Aws::ECS::Model::DockerVolumeConfiguration::SetDriver
void SetDriver(Aws::String &&value)
Definition: DockerVolumeConfiguration.h:193
Aws::ECS::Model::DockerVolumeConfiguration::SetLabels
void SetLabels(const Aws::Map< Aws::String, Aws::String > &value)
Definition: DockerVolumeConfiguration.h:459
Aws::ECS::Model::DockerVolumeConfiguration::WithScope
DockerVolumeConfiguration & WithScope(const Scope &value)
Definition: DockerVolumeConfiguration.h:83
Aws::ECS::Model::DockerVolumeConfiguration::AddLabels
DockerVolumeConfiguration & AddLabels(const char *key, const char *value)
Definition: DockerVolumeConfiguration.h:579
Aws::ECS::Model::DockerVolumeConfiguration::SetAutoprovision
void SetAutoprovision(bool value)
Definition: DockerVolumeConfiguration.h:113
Aws::ECS::Model::DockerVolumeConfiguration::AddDriverOpts
DockerVolumeConfiguration & AddDriverOpts(Aws::String &&key, Aws::String &&value)
Definition: DockerVolumeConfiguration.h:386
Aws::ECS::Model::DockerVolumeConfiguration::AddDriverOpts
DockerVolumeConfiguration & AddDriverOpts(const char *key, const char *value)
Definition: DockerVolumeConfiguration.h:422
Aws::ECS::Model::DockerVolumeConfiguration::WithDriverOpts
DockerVolumeConfiguration & WithDriverOpts(Aws::Map< Aws::String, Aws::String > &&value)
Definition: DockerVolumeConfiguration.h:338
Aws::ECS::Model::DockerVolumeConfiguration::SetScope
void SetScope(Scope &&value)
Definition: DockerVolumeConfiguration.h:75
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::ECS::Model::DockerVolumeConfiguration::SetDriver
void SetDriver(const char *value)
Definition: DockerVolumeConfiguration.h:211
Aws::ECS::Model::DockerVolumeConfiguration::SetScope
void SetScope(const Scope &value)
Definition: DockerVolumeConfiguration.h:67
Aws::ECS::Model::DockerVolumeConfiguration::DriverHasBeenSet
bool DriverHasBeenSet() const
Definition: DockerVolumeConfiguration.h:157
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECS::Model::DockerVolumeConfiguration::DriverOptsHasBeenSet
bool DriverOptsHasBeenSet() const
Definition: DockerVolumeConfiguration.h:290
Aws::ECS::Model::DockerVolumeConfiguration::WithDriver
DockerVolumeConfiguration & WithDriver(const Aws::String &value)
Definition: DockerVolumeConfiguration.h:229
Aws::ECS::Model::DockerVolumeConfiguration::ScopeHasBeenSet
bool ScopeHasBeenSet() const
Definition: DockerVolumeConfiguration.h:59
Aws::ECS::Model::DockerVolumeConfiguration::AddLabels
DockerVolumeConfiguration & AddLabels(Aws::String &&key, const Aws::String &value)
Definition: DockerVolumeConfiguration.h:519
Aws::ECS::Model::DockerVolumeConfiguration::LabelsHasBeenSet
bool LabelsHasBeenSet() const
Definition: DockerVolumeConfiguration.h:447
Aws::ECS::Model::DockerVolumeConfiguration::AddLabels
DockerVolumeConfiguration & AddLabels(const char *key, Aws::String &&value)
Definition: DockerVolumeConfiguration.h:555
Aws::ECS::Model::DockerVolumeConfiguration::AddDriverOpts
DockerVolumeConfiguration & AddDriverOpts(const char *key, Aws::String &&value)
Definition: DockerVolumeConfiguration.h:398
Aws::ECS::Model::DockerVolumeConfiguration::SetLabels
void SetLabels(Aws::Map< Aws::String, Aws::String > &&value)
Definition: DockerVolumeConfiguration.h:471
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::DockerVolumeConfiguration::GetScope
const Scope & GetScope() const
Definition: DockerVolumeConfiguration.h:51
Aws::ECS::Model::DockerVolumeConfiguration::WithDriverOpts
DockerVolumeConfiguration & WithDriverOpts(const Aws::Map< Aws::String, Aws::String > &value)
Definition: DockerVolumeConfiguration.h:326
Aws::ECS::Model::DockerVolumeConfiguration::WithLabels
DockerVolumeConfiguration & WithLabels(const Aws::Map< Aws::String, Aws::String > &value)
Definition: DockerVolumeConfiguration.h:483
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::DockerVolumeConfiguration::WithAutoprovision
DockerVolumeConfiguration & WithAutoprovision(bool value)
Definition: DockerVolumeConfiguration.h:120
Aws::ECS::Model::DockerVolumeConfiguration::AddDriverOpts
DockerVolumeConfiguration & AddDriverOpts(Aws::String &&key, const Aws::String &value)
Definition: DockerVolumeConfiguration.h:362
Aws::ECS::Model::DockerVolumeConfiguration::GetLabels
const Aws::Map< Aws::String, Aws::String > & GetLabels() const
Definition: DockerVolumeConfiguration.h:435
Aws::ECS::Model::DockerVolumeConfiguration::SetDriverOpts
void SetDriverOpts(const Aws::Map< Aws::String, Aws::String > &value)
Definition: DockerVolumeConfiguration.h:302
Aws::ECS::Model::DockerVolumeConfiguration::SetDriverOpts
void SetDriverOpts(Aws::Map< Aws::String, Aws::String > &&value)
Definition: DockerVolumeConfiguration.h:314
AWSMap.h
Aws::ECS::Model::DockerVolumeConfiguration::SetDriver
void SetDriver(const Aws::String &value)
Definition: DockerVolumeConfiguration.h:175
Aws::ECS::Model::DockerVolumeConfiguration::AddDriverOpts
DockerVolumeConfiguration & AddDriverOpts(Aws::String &&key, const char *value)
Definition: DockerVolumeConfiguration.h:410
Aws::ECS::Model::DockerVolumeConfiguration::AddLabels
DockerVolumeConfiguration & AddLabels(Aws::String &&key, Aws::String &&value)
Definition: DockerVolumeConfiguration.h:543
ECS_EXPORTS.h
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::ECS::Model::DockerVolumeConfiguration::WithScope
DockerVolumeConfiguration & WithScope(Scope &&value)
Definition: DockerVolumeConfiguration.h:91
Aws::ECS::Model::DockerVolumeConfiguration::AddLabels
DockerVolumeConfiguration & AddLabels(const Aws::String &key, Aws::String &&value)
Definition: DockerVolumeConfiguration.h:531