AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Volume.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/guardduty/model/HostPath.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 GuardDuty
23{
24namespace Model
25{
26
32 class Volume
33 {
34 public:
35 AWS_GUARDDUTY_API Volume() = default;
36 AWS_GUARDDUTY_API Volume(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GUARDDUTY_API Volume& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 Volume& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
52
54
58 inline const HostPath& GetHostPath() const { return m_hostPath; }
59 inline bool HostPathHasBeenSet() const { return m_hostPathHasBeenSet; }
60 template<typename HostPathT = HostPath>
61 void SetHostPath(HostPathT&& value) { m_hostPathHasBeenSet = true; m_hostPath = std::forward<HostPathT>(value); }
62 template<typename HostPathT = HostPath>
63 Volume& WithHostPath(HostPathT&& value) { SetHostPath(std::forward<HostPathT>(value)); return *this;}
65 private:
66
67 Aws::String m_name;
68 bool m_nameHasBeenSet = false;
69
70 HostPath m_hostPath;
71 bool m_hostPathHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace GuardDuty
76} // namespace Aws
Volume & WithHostPath(HostPathT &&value)
Definition Volume.h:63
bool NameHasBeenSet() const
Definition Volume.h:46
void SetHostPath(HostPathT &&value)
Definition Volume.h:61
bool HostPathHasBeenSet() const
Definition Volume.h:59
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
Definition Volume.h:45
void SetName(NameT &&value)
Definition Volume.h:48
AWS_GUARDDUTY_API Volume()=default
const HostPath & GetHostPath() const
Definition Volume.h:58
AWS_GUARDDUTY_API Volume & operator=(Aws::Utils::Json::JsonView jsonValue)
Volume & WithName(NameT &&value)
Definition Volume.h:50
AWS_GUARDDUTY_API Volume(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue