AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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:
39 AWS_ECS_API DockerVolumeConfiguration() = default;
43
44
46
52 inline Scope GetScope() const { return m_scope; }
53 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
54 inline void SetScope(Scope value) { m_scopeHasBeenSet = true; m_scope = value; }
55 inline DockerVolumeConfiguration& WithScope(Scope value) { SetScope(value); return *this;}
57
59
64 inline bool GetAutoprovision() const { return m_autoprovision; }
65 inline bool AutoprovisionHasBeenSet() const { return m_autoprovisionHasBeenSet; }
66 inline void SetAutoprovision(bool value) { m_autoprovisionHasBeenSet = true; m_autoprovision = value; }
67 inline DockerVolumeConfiguration& WithAutoprovision(bool value) { SetAutoprovision(value); return *this;}
69
71
80 inline const Aws::String& GetDriver() const { return m_driver; }
81 inline bool DriverHasBeenSet() const { return m_driverHasBeenSet; }
82 template<typename DriverT = Aws::String>
83 void SetDriver(DriverT&& value) { m_driverHasBeenSet = true; m_driver = std::forward<DriverT>(value); }
84 template<typename DriverT = Aws::String>
85 DockerVolumeConfiguration& WithDriver(DriverT&& value) { SetDriver(std::forward<DriverT>(value)); return *this;}
87
89
94 inline const Aws::Map<Aws::String, Aws::String>& GetDriverOpts() const { return m_driverOpts; }
95 inline bool DriverOptsHasBeenSet() const { return m_driverOptsHasBeenSet; }
96 template<typename DriverOptsT = Aws::Map<Aws::String, Aws::String>>
97 void SetDriverOpts(DriverOptsT&& value) { m_driverOptsHasBeenSet = true; m_driverOpts = std::forward<DriverOptsT>(value); }
98 template<typename DriverOptsT = Aws::Map<Aws::String, Aws::String>>
99 DockerVolumeConfiguration& WithDriverOpts(DriverOptsT&& value) { SetDriverOpts(std::forward<DriverOptsT>(value)); return *this;}
100 template<typename DriverOptsKeyT = Aws::String, typename DriverOptsValueT = Aws::String>
101 DockerVolumeConfiguration& AddDriverOpts(DriverOptsKeyT&& key, DriverOptsValueT&& value) {
102 m_driverOptsHasBeenSet = true; m_driverOpts.emplace(std::forward<DriverOptsKeyT>(key), std::forward<DriverOptsValueT>(value)); return *this;
103 }
105
107
112 inline const Aws::Map<Aws::String, Aws::String>& GetLabels() const { return m_labels; }
113 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
114 template<typename LabelsT = Aws::Map<Aws::String, Aws::String>>
115 void SetLabels(LabelsT&& value) { m_labelsHasBeenSet = true; m_labels = std::forward<LabelsT>(value); }
116 template<typename LabelsT = Aws::Map<Aws::String, Aws::String>>
117 DockerVolumeConfiguration& WithLabels(LabelsT&& value) { SetLabels(std::forward<LabelsT>(value)); return *this;}
118 template<typename LabelsKeyT = Aws::String, typename LabelsValueT = Aws::String>
119 DockerVolumeConfiguration& AddLabels(LabelsKeyT&& key, LabelsValueT&& value) {
120 m_labelsHasBeenSet = true; m_labels.emplace(std::forward<LabelsKeyT>(key), std::forward<LabelsValueT>(value)); return *this;
121 }
123 private:
124
125 Scope m_scope{Scope::NOT_SET};
126 bool m_scopeHasBeenSet = false;
127
128 bool m_autoprovision{false};
129 bool m_autoprovisionHasBeenSet = false;
130
131 Aws::String m_driver;
132 bool m_driverHasBeenSet = false;
133
135 bool m_driverOptsHasBeenSet = false;
136
138 bool m_labelsHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace ECS
143} // 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