AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
DaemonVolume.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecs/ECS_EXPORTS.h>
9#include <aws/ecs/model/HostVolumeProperties.h>
10#include <aws/ecs/model/LogDriverVolumeConfiguration.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
30 public:
31 AWS_ECS_API DaemonVolume() = default;
35
37
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 DaemonVolume& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
61 inline const HostVolumeProperties& GetHost() const { return m_host; }
62 inline bool HostHasBeenSet() const { return m_hostHasBeenSet; }
63 template <typename HostT = HostVolumeProperties>
64 void SetHost(HostT&& value) {
65 m_hostHasBeenSet = true;
66 m_host = std::forward<HostT>(value);
67 }
68 template <typename HostT = HostVolumeProperties>
69 DaemonVolume& WithHost(HostT&& value) {
70 SetHost(std::forward<HostT>(value));
71 return *this;
72 }
74
76
85 inline const LogDriverVolumeConfiguration& GetLogDriverVolumeConfiguration() const { return m_logDriverVolumeConfiguration; }
86 inline bool LogDriverVolumeConfigurationHasBeenSet() const { return m_logDriverVolumeConfigurationHasBeenSet; }
87 template <typename LogDriverVolumeConfigurationT = LogDriverVolumeConfiguration>
88 void SetLogDriverVolumeConfiguration(LogDriverVolumeConfigurationT&& value) {
89 m_logDriverVolumeConfigurationHasBeenSet = true;
90 m_logDriverVolumeConfiguration = std::forward<LogDriverVolumeConfigurationT>(value);
91 }
92 template <typename LogDriverVolumeConfigurationT = LogDriverVolumeConfiguration>
93 DaemonVolume& WithLogDriverVolumeConfiguration(LogDriverVolumeConfigurationT&& value) {
94 SetLogDriverVolumeConfiguration(std::forward<LogDriverVolumeConfigurationT>(value));
95 return *this;
96 }
98 private:
99 Aws::String m_name;
100
102
103 LogDriverVolumeConfiguration m_logDriverVolumeConfiguration;
104 bool m_nameHasBeenSet = false;
105 bool m_hostHasBeenSet = false;
106 bool m_logDriverVolumeConfigurationHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace ECS
111} // namespace Aws
bool LogDriverVolumeConfigurationHasBeenSet() const
DaemonVolume & WithName(NameT &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
const LogDriverVolumeConfiguration & GetLogDriverVolumeConfiguration() const
AWS_ECS_API DaemonVolume & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
void SetLogDriverVolumeConfiguration(LogDriverVolumeConfigurationT &&value)
DaemonVolume & WithLogDriverVolumeConfiguration(LogDriverVolumeConfigurationT &&value)
const HostVolumeProperties & GetHost() const
void SetName(NameT &&value)
void SetHost(HostT &&value)
AWS_ECS_API DaemonVolume()=default
DaemonVolume & WithHost(HostT &&value)
AWS_ECS_API DaemonVolume(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue