AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
ControlSummary.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/assurance/model/WorkflowType.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/crt/cbor/Cbor.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Cbor {
19class CborValue;
20} // namespace Cbor
21} // namespace Utils
22namespace Assurance {
23namespace Model {
24
34 public:
35 AWS_ASSURANCE_API ControlSummary() = default;
36 AWS_ASSURANCE_API ControlSummary(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_ASSURANCE_API ControlSummary& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
39
41
44 inline ControlType GetType() const { return m_type; }
45 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
46 inline void SetType(ControlType value) {
47 m_typeHasBeenSet = true;
48 m_type = value;
49 }
51 SetType(value);
52 return *this;
53 }
55
57
61 inline const Aws::String& GetControlId() const { return m_controlId; }
62 inline bool ControlIdHasBeenSet() const { return m_controlIdHasBeenSet; }
63 template <typename ControlIdT = Aws::String>
64 void SetControlId(ControlIdT&& value) {
65 m_controlIdHasBeenSet = true;
66 m_controlId = std::forward<ControlIdT>(value);
67 }
68 template <typename ControlIdT = Aws::String>
69 ControlSummary& WithControlId(ControlIdT&& value) {
70 SetControlId(std::forward<ControlIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetTitle() const { return m_title; }
80 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
81 template <typename TitleT = Aws::String>
82 void SetTitle(TitleT&& value) {
83 m_titleHasBeenSet = true;
84 m_title = std::forward<TitleT>(value);
85 }
86 template <typename TitleT = Aws::String>
87 ControlSummary& WithTitle(TitleT&& value) {
88 SetTitle(std::forward<TitleT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetDescription() const { return m_description; }
98 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
99 template <typename DescriptionT = Aws::String>
100 void SetDescription(DescriptionT&& value) {
101 m_descriptionHasBeenSet = true;
102 m_description = std::forward<DescriptionT>(value);
103 }
104 template <typename DescriptionT = Aws::String>
105 ControlSummary& WithDescription(DescriptionT&& value) {
106 SetDescription(std::forward<DescriptionT>(value));
107 return *this;
108 }
110
112
120 inline WorkflowType GetWorkflowType() const { return m_workflowType; }
121 inline bool WorkflowTypeHasBeenSet() const { return m_workflowTypeHasBeenSet; }
122 inline void SetWorkflowType(WorkflowType value) {
123 m_workflowTypeHasBeenSet = true;
124 m_workflowType = value;
125 }
127 SetWorkflowType(value);
128 return *this;
129 }
131
133
136 inline ReleaseStatus GetStatus() const { return m_status; }
137 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
138 inline void SetStatus(ReleaseStatus value) {
139 m_statusHasBeenSet = true;
140 m_status = value;
141 }
143 SetStatus(value);
144 return *this;
145 }
147 private:
149
150 Aws::String m_controlId;
151
152 Aws::String m_title;
153
154 Aws::String m_description;
155
156 WorkflowType m_workflowType{WorkflowType::NOT_SET};
157
159 bool m_typeHasBeenSet = false;
160 bool m_controlIdHasBeenSet = false;
161 bool m_titleHasBeenSet = false;
162 bool m_descriptionHasBeenSet = false;
163 bool m_workflowTypeHasBeenSet = false;
164 bool m_statusHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace Assurance
169} // namespace Aws
const Aws::String & GetControlId() const
void SetWorkflowType(WorkflowType value)
ControlSummary & WithDescription(DescriptionT &&value)
ControlSummary & WithType(ControlType value)
AWS_ASSURANCE_API ControlSummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetStatus(ReleaseStatus value)
void SetDescription(DescriptionT &&value)
AWS_ASSURANCE_API ControlSummary()=default
ControlSummary & WithTitle(TitleT &&value)
ControlSummary & WithWorkflowType(WorkflowType value)
void SetControlId(ControlIdT &&value)
ControlSummary & WithStatus(ReleaseStatus value)
AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_ASSURANCE_API ControlSummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetTitle() const
const Aws::String & GetDescription() const
ControlSummary & WithControlId(ControlIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String