AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
Annotation.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/cloudformation/model/AnnotationSeverityLevel.h>
9#include <aws/cloudformation/model/AnnotationStatus.h>
10#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace CloudFormation {
22namespace Model {
23
33 public:
34 AWS_CLOUDFORMATION_API Annotation() = default;
35 AWS_CLOUDFORMATION_API Annotation(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_CLOUDFORMATION_API Annotation& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
47 inline const Aws::String& GetAnnotationName() const { return m_annotationName; }
48 inline bool AnnotationNameHasBeenSet() const { return m_annotationNameHasBeenSet; }
49 template <typename AnnotationNameT = Aws::String>
50 void SetAnnotationName(AnnotationNameT&& value) {
51 m_annotationNameHasBeenSet = true;
52 m_annotationName = std::forward<AnnotationNameT>(value);
53 }
54 template <typename AnnotationNameT = Aws::String>
55 Annotation& WithAnnotationName(AnnotationNameT&& value) {
56 SetAnnotationName(std::forward<AnnotationNameT>(value));
57 return *this;
58 }
60
62
65 inline AnnotationStatus GetStatus() const { return m_status; }
66 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
67 inline void SetStatus(AnnotationStatus value) {
68 m_statusHasBeenSet = true;
69 m_status = value;
70 }
72 SetStatus(value);
73 return *this;
74 }
76
78
82 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
83 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
84 template <typename StatusMessageT = Aws::String>
85 void SetStatusMessage(StatusMessageT&& value) {
86 m_statusMessageHasBeenSet = true;
87 m_statusMessage = std::forward<StatusMessageT>(value);
88 }
89 template <typename StatusMessageT = Aws::String>
90 Annotation& WithStatusMessage(StatusMessageT&& value) {
91 SetStatusMessage(std::forward<StatusMessageT>(value));
92 return *this;
93 }
95
97
101 inline const Aws::String& GetRemediationMessage() const { return m_remediationMessage; }
102 inline bool RemediationMessageHasBeenSet() const { return m_remediationMessageHasBeenSet; }
103 template <typename RemediationMessageT = Aws::String>
104 void SetRemediationMessage(RemediationMessageT&& value) {
105 m_remediationMessageHasBeenSet = true;
106 m_remediationMessage = std::forward<RemediationMessageT>(value);
107 }
108 template <typename RemediationMessageT = Aws::String>
109 Annotation& WithRemediationMessage(RemediationMessageT&& value) {
110 SetRemediationMessage(std::forward<RemediationMessageT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::String& GetRemediationLink() const { return m_remediationLink; }
120 inline bool RemediationLinkHasBeenSet() const { return m_remediationLinkHasBeenSet; }
121 template <typename RemediationLinkT = Aws::String>
122 void SetRemediationLink(RemediationLinkT&& value) {
123 m_remediationLinkHasBeenSet = true;
124 m_remediationLink = std::forward<RemediationLinkT>(value);
125 }
126 template <typename RemediationLinkT = Aws::String>
127 Annotation& WithRemediationLink(RemediationLinkT&& value) {
128 SetRemediationLink(std::forward<RemediationLinkT>(value));
129 return *this;
130 }
132
134
137 inline AnnotationSeverityLevel GetSeverityLevel() const { return m_severityLevel; }
138 inline bool SeverityLevelHasBeenSet() const { return m_severityLevelHasBeenSet; }
140 m_severityLevelHasBeenSet = true;
141 m_severityLevel = value;
142 }
144 SetSeverityLevel(value);
145 return *this;
146 }
148 private:
149 Aws::String m_annotationName;
150
152
153 Aws::String m_statusMessage;
154
155 Aws::String m_remediationMessage;
156
157 Aws::String m_remediationLink;
158
160 bool m_annotationNameHasBeenSet = false;
161 bool m_statusHasBeenSet = false;
162 bool m_statusMessageHasBeenSet = false;
163 bool m_remediationMessageHasBeenSet = false;
164 bool m_remediationLinkHasBeenSet = false;
165 bool m_severityLevelHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace CloudFormation
170} // namespace Aws
Annotation & WithAnnotationName(AnnotationNameT &&value)
Definition Annotation.h:55
void SetRemediationLink(RemediationLinkT &&value)
Definition Annotation.h:122
AWS_CLOUDFORMATION_API Annotation()=default
void SetAnnotationName(AnnotationNameT &&value)
Definition Annotation.h:50
const Aws::String & GetRemediationLink() const
Definition Annotation.h:119
Annotation & WithSeverityLevel(AnnotationSeverityLevel value)
Definition Annotation.h:143
void SetStatusMessage(StatusMessageT &&value)
Definition Annotation.h:85
AnnotationSeverityLevel GetSeverityLevel() const
Definition Annotation.h:137
AnnotationStatus GetStatus() const
Definition Annotation.h:65
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetAnnotationName() const
Definition Annotation.h:47
AWS_CLOUDFORMATION_API Annotation(const Aws::Utils::Xml::XmlNode &xmlNode)
Annotation & WithRemediationLink(RemediationLinkT &&value)
Definition Annotation.h:127
void SetStatus(AnnotationStatus value)
Definition Annotation.h:67
Annotation & WithRemediationMessage(RemediationMessageT &&value)
Definition Annotation.h:109
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
Annotation & WithStatus(AnnotationStatus value)
Definition Annotation.h:71
AWS_CLOUDFORMATION_API Annotation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Annotation & WithStatusMessage(StatusMessageT &&value)
Definition Annotation.h:90
const Aws::String & GetRemediationMessage() const
Definition Annotation.h:101
void SetSeverityLevel(AnnotationSeverityLevel value)
Definition Annotation.h:139
const Aws::String & GetStatusMessage() const
Definition Annotation.h:82
void SetRemediationMessage(RemediationMessageT &&value)
Definition Annotation.h:104
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream