AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
ControlReference.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 ControlReference() = default;
31 AWS_ASSURANCE_API ControlReference(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_ASSURANCE_API ControlReference& 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 ControlReference& 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 ControlReference& WithFrameworkVersion(FrameworkVersionT&& value) {
66 SetFrameworkVersion(std::forward<FrameworkVersionT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetControlId() const { return m_controlId; }
76 inline bool ControlIdHasBeenSet() const { return m_controlIdHasBeenSet; }
77 template <typename ControlIdT = Aws::String>
78 void SetControlId(ControlIdT&& value) {
79 m_controlIdHasBeenSet = true;
80 m_controlId = std::forward<ControlIdT>(value);
81 }
82 template <typename ControlIdT = Aws::String>
83 ControlReference& WithControlId(ControlIdT&& value) {
84 SetControlId(std::forward<ControlIdT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_framework;
90
91 Aws::String m_frameworkVersion;
92
93 Aws::String m_controlId;
94 bool m_frameworkHasBeenSet = false;
95 bool m_frameworkVersionHasBeenSet = false;
96 bool m_controlIdHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace Assurance
101} // namespace Aws
AWS_ASSURANCE_API ControlReference & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ControlReference & WithFramework(FrameworkT &&value)
const Aws::String & GetFramework() const
AWS_ASSURANCE_API ControlReference(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetControlId() const
AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetFrameworkVersion(FrameworkVersionT &&value)
AWS_ASSURANCE_API ControlReference()=default
const Aws::String & GetFrameworkVersion() const
ControlReference & WithFrameworkVersion(FrameworkVersionT &&value)
ControlReference & WithControlId(ControlIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String