AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
Mapping.h
1
6#pragma once
7#include <aws/controlcatalog/ControlCatalog_EXPORTS.h>
8#include <aws/controlcatalog/model/CommonControlMappingDetails.h>
9#include <aws/controlcatalog/model/FrameworkMappingDetails.h>
10#include <aws/controlcatalog/model/RelatedControlMappingDetails.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ControlCatalog {
22namespace Model {
23
30class Mapping {
31 public:
32 AWS_CONTROLCATALOG_API Mapping() = default;
33 AWS_CONTROLCATALOG_API Mapping(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONTROLCATALOG_API Mapping& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CONTROLCATALOG_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const FrameworkMappingDetails& GetFramework() const { return m_framework; }
43 inline bool FrameworkHasBeenSet() const { return m_frameworkHasBeenSet; }
44 template <typename FrameworkT = FrameworkMappingDetails>
45 void SetFramework(FrameworkT&& value) {
46 m_frameworkHasBeenSet = true;
47 m_framework = std::forward<FrameworkT>(value);
48 }
49 template <typename FrameworkT = FrameworkMappingDetails>
50 Mapping& WithFramework(FrameworkT&& value) {
51 SetFramework(std::forward<FrameworkT>(value));
52 return *this;
53 }
55
57
61 inline const CommonControlMappingDetails& GetCommonControl() const { return m_commonControl; }
62 inline bool CommonControlHasBeenSet() const { return m_commonControlHasBeenSet; }
63 template <typename CommonControlT = CommonControlMappingDetails>
64 void SetCommonControl(CommonControlT&& value) {
65 m_commonControlHasBeenSet = true;
66 m_commonControl = std::forward<CommonControlT>(value);
67 }
68 template <typename CommonControlT = CommonControlMappingDetails>
69 Mapping& WithCommonControl(CommonControlT&& value) {
70 SetCommonControl(std::forward<CommonControlT>(value));
71 return *this;
72 }
74
76
80 inline const RelatedControlMappingDetails& GetRelatedControl() const { return m_relatedControl; }
81 inline bool RelatedControlHasBeenSet() const { return m_relatedControlHasBeenSet; }
82 template <typename RelatedControlT = RelatedControlMappingDetails>
83 void SetRelatedControl(RelatedControlT&& value) {
84 m_relatedControlHasBeenSet = true;
85 m_relatedControl = std::forward<RelatedControlT>(value);
86 }
87 template <typename RelatedControlT = RelatedControlMappingDetails>
88 Mapping& WithRelatedControl(RelatedControlT&& value) {
89 SetRelatedControl(std::forward<RelatedControlT>(value));
90 return *this;
91 }
93 private:
94 FrameworkMappingDetails m_framework;
95
96 CommonControlMappingDetails m_commonControl;
97
98 RelatedControlMappingDetails m_relatedControl;
99 bool m_frameworkHasBeenSet = false;
100 bool m_commonControlHasBeenSet = false;
101 bool m_relatedControlHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace ControlCatalog
106} // namespace Aws
AWS_CONTROLCATALOG_API Mapping & operator=(Aws::Utils::Json::JsonView jsonValue)
const CommonControlMappingDetails & GetCommonControl() const
Definition Mapping.h:61
Mapping & WithRelatedControl(RelatedControlT &&value)
Definition Mapping.h:88
void SetFramework(FrameworkT &&value)
Definition Mapping.h:45
void SetRelatedControl(RelatedControlT &&value)
Definition Mapping.h:83
AWS_CONTROLCATALOG_API Mapping(Aws::Utils::Json::JsonView jsonValue)
void SetCommonControl(CommonControlT &&value)
Definition Mapping.h:64
const RelatedControlMappingDetails & GetRelatedControl() const
Definition Mapping.h:80
AWS_CONTROLCATALOG_API Aws::Utils::Json::JsonValue Jsonize() const
Mapping & WithCommonControl(CommonControlT &&value)
Definition Mapping.h:69
const FrameworkMappingDetails & GetFramework() const
Definition Mapping.h:42
AWS_CONTROLCATALOG_API Mapping()=default
Mapping & WithFramework(FrameworkT &&value)
Definition Mapping.h:50
Aws::Utils::Json::JsonValue JsonValue