AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
ServiceVolumeConfiguration.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/ServiceManagedEBSVolumeConfiguration.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
31 public:
32 AWS_ECS_API ServiceVolumeConfiguration() = default;
36
38
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
64 inline const ServiceManagedEBSVolumeConfiguration& GetManagedEBSVolume() const { return m_managedEBSVolume; }
65 inline bool ManagedEBSVolumeHasBeenSet() const { return m_managedEBSVolumeHasBeenSet; }
66 template <typename ManagedEBSVolumeT = ServiceManagedEBSVolumeConfiguration>
67 void SetManagedEBSVolume(ManagedEBSVolumeT&& value) {
68 m_managedEBSVolumeHasBeenSet = true;
69 m_managedEBSVolume = std::forward<ManagedEBSVolumeT>(value);
70 }
71 template <typename ManagedEBSVolumeT = ServiceManagedEBSVolumeConfiguration>
73 SetManagedEBSVolume(std::forward<ManagedEBSVolumeT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_name;
79
80 ServiceManagedEBSVolumeConfiguration m_managedEBSVolume;
81 bool m_nameHasBeenSet = false;
82 bool m_managedEBSVolumeHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace ECS
87} // namespace Aws
ServiceVolumeConfiguration & WithName(NameT &&value)
const ServiceManagedEBSVolumeConfiguration & GetManagedEBSVolume() const
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API ServiceVolumeConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API ServiceVolumeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceVolumeConfiguration & WithManagedEBSVolume(ManagedEBSVolumeT &&value)
AWS_ECS_API ServiceVolumeConfiguration()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue