AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ServiceVolumeConfiguration.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ecs/model/ServiceManagedEBSVolumeConfiguration.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ECS
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_ECS_API ServiceVolumeConfiguration() = default;
41
42
44
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 ServiceVolumeConfiguration& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_managedEBSVolumeHasBeenSet = true; m_managedEBSVolume = std::forward<ManagedEBSVolumeT>(value); }
68 template<typename ManagedEBSVolumeT = ServiceManagedEBSVolumeConfiguration>
69 ServiceVolumeConfiguration& WithManagedEBSVolume(ManagedEBSVolumeT&& value) { SetManagedEBSVolume(std::forward<ManagedEBSVolumeT>(value)); return *this;}
71 private:
72
73 Aws::String m_name;
74 bool m_nameHasBeenSet = false;
75
76 ServiceManagedEBSVolumeConfiguration m_managedEBSVolume;
77 bool m_managedEBSVolumeHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace ECS
82} // 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