AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateAssessmentFrameworkControlSet.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/CreateAssessmentFrameworkControl.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
36 {
37 public:
38 AWS_AUDITMANAGER_API CreateAssessmentFrameworkControlSet() = default;
41 AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 CreateAssessmentFrameworkControlSet& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
55
57
61 inline const Aws::Vector<CreateAssessmentFrameworkControl>& GetControls() const { return m_controls; }
62 inline bool ControlsHasBeenSet() const { return m_controlsHasBeenSet; }
63 template<typename ControlsT = Aws::Vector<CreateAssessmentFrameworkControl>>
64 void SetControls(ControlsT&& value) { m_controlsHasBeenSet = true; m_controls = std::forward<ControlsT>(value); }
65 template<typename ControlsT = Aws::Vector<CreateAssessmentFrameworkControl>>
66 CreateAssessmentFrameworkControlSet& WithControls(ControlsT&& value) { SetControls(std::forward<ControlsT>(value)); return *this;}
67 template<typename ControlsT = CreateAssessmentFrameworkControl>
68 CreateAssessmentFrameworkControlSet& AddControls(ControlsT&& value) { m_controlsHasBeenSet = true; m_controls.emplace_back(std::forward<ControlsT>(value)); return *this; }
70 private:
71
72 Aws::String m_name;
73 bool m_nameHasBeenSet = false;
74
76 bool m_controlsHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace AuditManager
81} // namespace Aws
AWS_AUDITMANAGER_API CreateAssessmentFrameworkControlSet(Aws::Utils::Json::JsonView jsonValue)
AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< CreateAssessmentFrameworkControl > & GetControls() const
CreateAssessmentFrameworkControlSet & AddControls(ControlsT &&value)
AWS_AUDITMANAGER_API CreateAssessmentFrameworkControlSet & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_AUDITMANAGER_API CreateAssessmentFrameworkControlSet()=default
CreateAssessmentFrameworkControlSet & WithControls(ControlsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue