AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
50 inline Volume& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline Volume& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline Volume& WithName(const char* value) { SetName(value); return *this;}
54
56
60 inline const HostPath& GetHostPath() const{ return m_hostPath; }
61 inline bool HostPathHasBeenSet() const { return m_hostPathHasBeenSet; }
62 inline void SetHostPath(const HostPath& value) { m_hostPathHasBeenSet = true; m_hostPath = value; }
63 inline void SetHostPath(HostPath&& value) { m_hostPathHasBeenSet = true; m_hostPath = std::move(value); }
64 inline Volume& WithHostPath(const HostPath& value) { SetHostPath(value); return *this;}
65 inline Volume& WithHostPath(HostPath&& value) { SetHostPath(std::move(value)); return *this;}
67 private:
68
69 Aws::String m_name;
70 bool m_nameHasBeenSet = false;
71
72 HostPath m_hostPath;
73 bool m_hostPathHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace GuardDuty
78} // namespace Aws
Volume & WithHostPath(HostPath &&value)
Definition Volume.h:65
bool NameHasBeenSet() const
Definition Volume.h:46
AWS_GUARDDUTY_API Volume()
bool HostPathHasBeenSet() const
Definition Volume.h:61
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
Definition Volume.h:45
Volume & WithName(const Aws::String &value)
Definition Volume.h:50
void SetName(const char *value)
Definition Volume.h:49
const HostPath & GetHostPath() const
Definition Volume.h:60
void SetHostPath(const HostPath &value)
Definition Volume.h:62
AWS_GUARDDUTY_API Volume & operator=(Aws::Utils::Json::JsonView jsonValue)
Volume & WithName(const char *value)
Definition Volume.h:52
void SetName(Aws::String &&value)
Definition Volume.h:48
void SetHostPath(HostPath &&value)
Definition Volume.h:63
Volume & WithHostPath(const HostPath &value)
Definition Volume.h:64
void SetName(const Aws::String &value)
Definition Volume.h:47
Volume & WithName(Aws::String &&value)
Definition Volume.h:51
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