AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
CommentKey.h
1
6#pragma once
7#include <aws/assurance/Assurance_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace Assurance {
20namespace Model {
21
29 public:
30 AWS_ASSURANCE_API CommentKey() = default;
31 AWS_ASSURANCE_API CommentKey(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_ASSURANCE_API CommentKey& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
39 inline const Aws::String& GetFramework() const { return m_framework; }
40 inline bool FrameworkHasBeenSet() const { return m_frameworkHasBeenSet; }
41 template <typename FrameworkT = Aws::String>
42 void SetFramework(FrameworkT&& value) {
43 m_frameworkHasBeenSet = true;
44 m_framework = std::forward<FrameworkT>(value);
45 }
46 template <typename FrameworkT = Aws::String>
47 CommentKey& WithFramework(FrameworkT&& value) {
48 SetFramework(std::forward<FrameworkT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetFrameworkVersion() const { return m_frameworkVersion; }
58 inline bool FrameworkVersionHasBeenSet() const { return m_frameworkVersionHasBeenSet; }
59 template <typename FrameworkVersionT = Aws::String>
60 void SetFrameworkVersion(FrameworkVersionT&& value) {
61 m_frameworkVersionHasBeenSet = true;
62 m_frameworkVersion = std::forward<FrameworkVersionT>(value);
63 }
64 template <typename FrameworkVersionT = Aws::String>
65 CommentKey& WithFrameworkVersion(FrameworkVersionT&& value) {
66 SetFrameworkVersion(std::forward<FrameworkVersionT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::String& GetControlId() const { return m_controlId; }
77 inline bool ControlIdHasBeenSet() const { return m_controlIdHasBeenSet; }
78 template <typename ControlIdT = Aws::String>
79 void SetControlId(ControlIdT&& value) {
80 m_controlIdHasBeenSet = true;
81 m_controlId = std::forward<ControlIdT>(value);
82 }
83 template <typename ControlIdT = Aws::String>
84 CommentKey& WithControlId(ControlIdT&& value) {
85 SetControlId(std::forward<ControlIdT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetCommentId() const { return m_commentId; }
95 inline bool CommentIdHasBeenSet() const { return m_commentIdHasBeenSet; }
96 template <typename CommentIdT = Aws::String>
97 void SetCommentId(CommentIdT&& value) {
98 m_commentIdHasBeenSet = true;
99 m_commentId = std::forward<CommentIdT>(value);
100 }
101 template <typename CommentIdT = Aws::String>
102 CommentKey& WithCommentId(CommentIdT&& value) {
103 SetCommentId(std::forward<CommentIdT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_framework;
109
110 Aws::String m_frameworkVersion;
111
112 Aws::String m_controlId;
113
114 Aws::String m_commentId;
115 bool m_frameworkHasBeenSet = false;
116 bool m_frameworkVersionHasBeenSet = false;
117 bool m_controlIdHasBeenSet = false;
118 bool m_commentIdHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace Assurance
123} // namespace Aws
AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
CommentKey & WithFrameworkVersion(FrameworkVersionT &&value)
Definition CommentKey.h:65
const Aws::String & GetControlId() const
Definition CommentKey.h:76
const Aws::String & GetFrameworkVersion() const
Definition CommentKey.h:57
void SetFrameworkVersion(FrameworkVersionT &&value)
Definition CommentKey.h:60
const Aws::String & GetCommentId() const
Definition CommentKey.h:94
const Aws::String & GetFramework() const
Definition CommentKey.h:39
void SetControlId(ControlIdT &&value)
Definition CommentKey.h:79
AWS_ASSURANCE_API CommentKey()=default
CommentKey & WithControlId(ControlIdT &&value)
Definition CommentKey.h:84
CommentKey & WithFramework(FrameworkT &&value)
Definition CommentKey.h:47
AWS_ASSURANCE_API CommentKey & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetCommentId(CommentIdT &&value)
Definition CommentKey.h:97
CommentKey & WithCommentId(CommentIdT &&value)
Definition CommentKey.h:102
void SetFramework(FrameworkT &&value)
Definition CommentKey.h:42
AWS_ASSURANCE_API CommentKey(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String