AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
Volume.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9#include <aws/guardduty/model/HostPath.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GuardDuty {
21namespace Model {
22
28class Volume {
29 public:
30 AWS_GUARDDUTY_API Volume() = default;
31 AWS_GUARDDUTY_API Volume(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GUARDDUTY_API Volume& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
47 Volume& WithName(NameT&& value) {
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
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) {
62 m_hostPathHasBeenSet = true;
63 m_hostPath = std::forward<HostPathT>(value);
64 }
65 template <typename HostPathT = HostPath>
66 Volume& WithHostPath(HostPathT&& value) {
67 SetHostPath(std::forward<HostPathT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_name;
73
74 HostPath m_hostPath;
75 bool m_nameHasBeenSet = false;
76 bool m_hostPathHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace GuardDuty
81} // namespace Aws
Volume & WithHostPath(HostPathT &&value)
Definition Volume.h:66
bool NameHasBeenSet() const
Definition Volume.h:40
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:39
void SetName(NameT &&value)
Definition Volume.h:42
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:47
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