AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
ControlGroup.h
1
6#pragma once
7#include <aws/assurance/Assurance_EXPORTS.h>
8#include <aws/assurance/model/ControlType.h>
9#include <aws/assurance/model/ReleaseStatus.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/crt/cbor/Cbor.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace Assurance {
22namespace Model {
23
32 public:
33 AWS_ASSURANCE_API ControlGroup() = default;
34 AWS_ASSURANCE_API ControlGroup(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_ASSURANCE_API ControlGroup& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
42 inline ControlType GetType() const { return m_type; }
43 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
44 inline void SetType(ControlType value) {
45 m_typeHasBeenSet = true;
46 m_type = value;
47 }
49 SetType(value);
50 return *this;
51 }
53
55
58 inline const Aws::String& GetFramework() const { return m_framework; }
59 inline bool FrameworkHasBeenSet() const { return m_frameworkHasBeenSet; }
60 template <typename FrameworkT = Aws::String>
61 void SetFramework(FrameworkT&& value) {
62 m_frameworkHasBeenSet = true;
63 m_framework = std::forward<FrameworkT>(value);
64 }
65 template <typename FrameworkT = Aws::String>
66 ControlGroup& WithFramework(FrameworkT&& value) {
67 SetFramework(std::forward<FrameworkT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetControlId() const { return m_controlId; }
78 inline bool ControlIdHasBeenSet() const { return m_controlIdHasBeenSet; }
79 template <typename ControlIdT = Aws::String>
80 void SetControlId(ControlIdT&& value) {
81 m_controlIdHasBeenSet = true;
82 m_controlId = std::forward<ControlIdT>(value);
83 }
84 template <typename ControlIdT = Aws::String>
85 ControlGroup& WithControlId(ControlIdT&& value) {
86 SetControlId(std::forward<ControlIdT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetFrameworkVersion() const { return m_frameworkVersion; }
96 inline bool FrameworkVersionHasBeenSet() const { return m_frameworkVersionHasBeenSet; }
97 template <typename FrameworkVersionT = Aws::String>
98 void SetFrameworkVersion(FrameworkVersionT&& value) {
99 m_frameworkVersionHasBeenSet = true;
100 m_frameworkVersion = std::forward<FrameworkVersionT>(value);
101 }
102 template <typename FrameworkVersionT = Aws::String>
103 ControlGroup& WithFrameworkVersion(FrameworkVersionT&& value) {
104 SetFrameworkVersion(std::forward<FrameworkVersionT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetTitle() const { return m_title; }
114 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
115 template <typename TitleT = Aws::String>
116 void SetTitle(TitleT&& value) {
117 m_titleHasBeenSet = true;
118 m_title = std::forward<TitleT>(value);
119 }
120 template <typename TitleT = Aws::String>
121 ControlGroup& WithTitle(TitleT&& value) {
122 SetTitle(std::forward<TitleT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetDescription() const { return m_description; }
132 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
133 template <typename DescriptionT = Aws::String>
134 void SetDescription(DescriptionT&& value) {
135 m_descriptionHasBeenSet = true;
136 m_description = std::forward<DescriptionT>(value);
137 }
138 template <typename DescriptionT = Aws::String>
139 ControlGroup& WithDescription(DescriptionT&& value) {
140 SetDescription(std::forward<DescriptionT>(value));
141 return *this;
142 }
144
146
149 inline ReleaseStatus GetStatus() const { return m_status; }
150 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
151 inline void SetStatus(ReleaseStatus value) {
152 m_statusHasBeenSet = true;
153 m_status = value;
154 }
156 SetStatus(value);
157 return *this;
158 }
160 private:
162
163 Aws::String m_framework;
164
165 Aws::String m_controlId;
166
167 Aws::String m_frameworkVersion;
168
169 Aws::String m_title;
170
171 Aws::String m_description;
172
174 bool m_typeHasBeenSet = false;
175 bool m_frameworkHasBeenSet = false;
176 bool m_controlIdHasBeenSet = false;
177 bool m_frameworkVersionHasBeenSet = false;
178 bool m_titleHasBeenSet = false;
179 bool m_descriptionHasBeenSet = false;
180 bool m_statusHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace Assurance
185} // namespace Aws
ControlGroup & WithTitle(TitleT &&value)
ControlGroup & WithType(ControlType value)
ControlGroup & WithControlId(ControlIdT &&value)
const Aws::String & GetDescription() const
const Aws::String & GetFramework() const
AWS_ASSURANCE_API ControlGroup()=default
const Aws::String & GetTitle() const
void SetDescription(DescriptionT &&value)
void SetFramework(FrameworkT &&value)
void SetControlId(ControlIdT &&value)
const Aws::String & GetFrameworkVersion() const
void SetFrameworkVersion(FrameworkVersionT &&value)
AWS_ASSURANCE_API ControlGroup(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ControlGroup & WithFramework(FrameworkT &&value)
ControlGroup & WithDescription(DescriptionT &&value)
void SetType(ControlType value)
AWS_ASSURANCE_API ControlGroup & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ControlGroup & WithFrameworkVersion(FrameworkVersionT &&value)
const Aws::String & GetControlId() const
void SetStatus(ReleaseStatus value)
ControlGroup & WithStatus(ReleaseStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String