AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ControlSet.h
1
6#pragma once
7#include <aws/auditmanager/AuditManager_EXPORTS.h>
8#include <aws/auditmanager/model/Control.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AuditManager {
22namespace Model {
23
30 public:
31 AWS_AUDITMANAGER_API ControlSet() = default;
32 AWS_AUDITMANAGER_API ControlSet(Aws::Utils::Json::JsonView jsonValue);
33 AWS_AUDITMANAGER_API ControlSet& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
49 ControlSet& WithId(IdT&& value) {
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
67 ControlSet& WithName(NameT&& value) {
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Vector<Control>& GetControls() const { return m_controls; }
78 inline bool ControlsHasBeenSet() const { return m_controlsHasBeenSet; }
79 template <typename ControlsT = Aws::Vector<Control>>
80 void SetControls(ControlsT&& value) {
81 m_controlsHasBeenSet = true;
82 m_controls = std::forward<ControlsT>(value);
83 }
84 template <typename ControlsT = Aws::Vector<Control>>
85 ControlSet& WithControls(ControlsT&& value) {
86 SetControls(std::forward<ControlsT>(value));
87 return *this;
88 }
89 template <typename ControlsT = Control>
90 ControlSet& AddControls(ControlsT&& value) {
91 m_controlsHasBeenSet = true;
92 m_controls.emplace_back(std::forward<ControlsT>(value));
93 return *this;
94 }
96 private:
97 Aws::String m_id;
98
99 Aws::String m_name;
100
101 Aws::Vector<Control> m_controls;
102 bool m_idHasBeenSet = false;
103 bool m_nameHasBeenSet = false;
104 bool m_controlsHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace AuditManager
109} // namespace Aws
const Aws::String & GetName() const
Definition ControlSet.h:59
const Aws::String & GetId() const
Definition ControlSet.h:41
AWS_AUDITMANAGER_API ControlSet()=default
ControlSet & WithName(NameT &&value)
Definition ControlSet.h:67
AWS_AUDITMANAGER_API ControlSet & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetControls(ControlsT &&value)
Definition ControlSet.h:80
AWS_AUDITMANAGER_API ControlSet(Aws::Utils::Json::JsonView jsonValue)
ControlSet & WithControls(ControlsT &&value)
Definition ControlSet.h:85
const Aws::Vector< Control > & GetControls() const
Definition ControlSet.h:77
ControlSet & WithId(IdT &&value)
Definition ControlSet.h:49
ControlSet & AddControls(ControlsT &&value)
Definition ControlSet.h:90
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue