AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename IdT = Aws::String>
50 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
51 template<typename IdT = Aws::String>
52 ControlSet& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
63 template<typename NameT = Aws::String>
64 ControlSet& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
71 inline const Aws::Vector<Control>& GetControls() const { return m_controls; }
72 inline bool ControlsHasBeenSet() const { return m_controlsHasBeenSet; }
73 template<typename ControlsT = Aws::Vector<Control>>
74 void SetControls(ControlsT&& value) { m_controlsHasBeenSet = true; m_controls = std::forward<ControlsT>(value); }
75 template<typename ControlsT = Aws::Vector<Control>>
76 ControlSet& WithControls(ControlsT&& value) { SetControls(std::forward<ControlsT>(value)); return *this;}
77 template<typename ControlsT = Control>
78 ControlSet& AddControls(ControlsT&& value) { m_controlsHasBeenSet = true; m_controls.emplace_back(std::forward<ControlsT>(value)); return *this; }
80 private:
81
82 Aws::String m_id;
83 bool m_idHasBeenSet = false;
84
85 Aws::String m_name;
86 bool m_nameHasBeenSet = false;
87
88 Aws::Vector<Control> m_controls;
89 bool m_controlsHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace AuditManager
94} // namespace Aws
const Aws::String & GetName() const
Definition ControlSet.h:59
const Aws::String & GetId() const
Definition ControlSet.h:47
AWS_AUDITMANAGER_API ControlSet()=default
ControlSet & WithName(NameT &&value)
Definition ControlSet.h:64
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:74
AWS_AUDITMANAGER_API ControlSet(Aws::Utils::Json::JsonView jsonValue)
ControlSet & WithControls(ControlsT &&value)
Definition ControlSet.h:76
const Aws::Vector< Control > & GetControls() const
Definition ControlSet.h:71
ControlSet & WithId(IdT &&value)
Definition ControlSet.h:52
ControlSet & AddControls(ControlsT &&value)
Definition ControlSet.h:78
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue