AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
ControlKey.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 ControlKey() = default;
31 AWS_ASSURANCE_API ControlKey(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_ASSURANCE_API ControlKey& 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 ControlKey& 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 ControlKey& 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 ControlKey& WithControlId(ControlIdT&& value) {
85 SetControlId(std::forward<ControlIdT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_framework;
91
92 Aws::String m_frameworkVersion;
93
94 Aws::String m_controlId;
95 bool m_frameworkHasBeenSet = false;
96 bool m_frameworkVersionHasBeenSet = false;
97 bool m_controlIdHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace Assurance
102} // namespace Aws
AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_ASSURANCE_API ControlKey()=default
ControlKey & WithFrameworkVersion(FrameworkVersionT &&value)
Definition ControlKey.h:65
void SetFramework(FrameworkT &&value)
Definition ControlKey.h:42
const Aws::String & GetFramework() const
Definition ControlKey.h:39
AWS_ASSURANCE_API ControlKey & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetControlId(ControlIdT &&value)
Definition ControlKey.h:79
ControlKey & WithFramework(FrameworkT &&value)
Definition ControlKey.h:47
AWS_ASSURANCE_API ControlKey(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ControlKey & WithControlId(ControlIdT &&value)
Definition ControlKey.h:84
void SetFrameworkVersion(FrameworkVersionT &&value)
Definition ControlKey.h:60
const Aws::String & GetControlId() const
Definition ControlKey.h:76
const Aws::String & GetFrameworkVersion() const
Definition ControlKey.h:57
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String