AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ControlSet.h
1
6#pragma once
7#include <aws/auditmanager/AuditManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/auditmanager/model/Control.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AuditManager
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_AUDITMANAGER_API ControlSet();
37 AWS_AUDITMANAGER_API ControlSet(Aws::Utils::Json::JsonView jsonValue);
38 AWS_AUDITMANAGER_API ControlSet& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetId() const{ return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
50 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
51 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
52 inline ControlSet& WithId(const Aws::String& value) { SetId(value); return *this;}
53 inline ControlSet& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
54 inline ControlSet& WithId(const char* value) { SetId(value); return *this;}
56
58
61 inline const Aws::String& GetName() const{ return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 inline ControlSet& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline ControlSet& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline ControlSet& WithName(const char* value) { SetName(value); return *this;}
70
72
75 inline const Aws::Vector<Control>& GetControls() const{ return m_controls; }
76 inline bool ControlsHasBeenSet() const { return m_controlsHasBeenSet; }
77 inline void SetControls(const Aws::Vector<Control>& value) { m_controlsHasBeenSet = true; m_controls = value; }
78 inline void SetControls(Aws::Vector<Control>&& value) { m_controlsHasBeenSet = true; m_controls = std::move(value); }
79 inline ControlSet& WithControls(const Aws::Vector<Control>& value) { SetControls(value); return *this;}
80 inline ControlSet& WithControls(Aws::Vector<Control>&& value) { SetControls(std::move(value)); return *this;}
81 inline ControlSet& AddControls(const Control& value) { m_controlsHasBeenSet = true; m_controls.push_back(value); return *this; }
82 inline ControlSet& AddControls(Control&& value) { m_controlsHasBeenSet = true; m_controls.push_back(std::move(value)); return *this; }
84 private:
85
86 Aws::String m_id;
87 bool m_idHasBeenSet = false;
88
89 Aws::String m_name;
90 bool m_nameHasBeenSet = false;
91
92 Aws::Vector<Control> m_controls;
93 bool m_controlsHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace AuditManager
98} // namespace Aws
void SetName(const char *value)
Definition ControlSet.h:65
ControlSet & WithId(Aws::String &&value)
Definition ControlSet.h:53
const Aws::String & GetName() const
Definition ControlSet.h:61
void SetName(Aws::String &&value)
Definition ControlSet.h:64
void SetName(const Aws::String &value)
Definition ControlSet.h:63
const Aws::String & GetId() const
Definition ControlSet.h:47
ControlSet & WithId(const char *value)
Definition ControlSet.h:54
void SetControls(Aws::Vector< Control > &&value)
Definition ControlSet.h:78
AWS_AUDITMANAGER_API ControlSet & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetId(const char *value)
Definition ControlSet.h:51
void SetId(const Aws::String &value)
Definition ControlSet.h:49
ControlSet & WithControls(const Aws::Vector< Control > &value)
Definition ControlSet.h:79
void SetControls(const Aws::Vector< Control > &value)
Definition ControlSet.h:77
AWS_AUDITMANAGER_API ControlSet()
AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
ControlSet & WithName(const Aws::String &value)
Definition ControlSet.h:66
ControlSet & WithControls(Aws::Vector< Control > &&value)
Definition ControlSet.h:80
AWS_AUDITMANAGER_API ControlSet(Aws::Utils::Json::JsonView jsonValue)
ControlSet & WithName(const char *value)
Definition ControlSet.h:68
const Aws::Vector< Control > & GetControls() const
Definition ControlSet.h:75
ControlSet & AddControls(const Control &value)
Definition ControlSet.h:81
void SetId(Aws::String &&value)
Definition ControlSet.h:50
ControlSet & WithId(const Aws::String &value)
Definition ControlSet.h:52
ControlSet & AddControls(Control &&value)
Definition ControlSet.h:82
ControlSet & WithName(Aws::String &&value)
Definition ControlSet.h:67
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue