AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ECS {
21namespace Model {
22
29 public:
30 AWS_ECS_API DaemonVolume() = default;
34
36
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 DaemonVolume& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
60 inline const HostVolumeProperties& GetHost() const { return m_host; }
61 inline bool HostHasBeenSet() const { return m_hostHasBeenSet; }
62 template <typename HostT = HostVolumeProperties>
63 void SetHost(HostT&& value) {
64 m_hostHasBeenSet = true;
65 m_host = std::forward<HostT>(value);
66 }
67 template <typename HostT = HostVolumeProperties>
68 DaemonVolume& WithHost(HostT&& value) {
69 SetHost(std::forward<HostT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_name;
75
77 bool m_nameHasBeenSet = false;
78 bool m_hostHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace ECS
83} // namespace Aws
DaemonVolume & WithName(NameT &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API DaemonVolume & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
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