AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
AssessmentRunNotification.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/inspector/Inspector_EXPORTS.h>
10#include <aws/inspector/model/AssessmentRunNotificationSnsStatusCode.h>
11#include <aws/inspector/model/InspectorEvent.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Inspector {
23namespace Model {
24
32 public:
33 AWS_INSPECTOR_API AssessmentRunNotification() = default;
36 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Utils::DateTime& GetDate() const { return m_date; }
43 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
44 template <typename DateT = Aws::Utils::DateTime>
45 void SetDate(DateT&& value) {
46 m_dateHasBeenSet = true;
47 m_date = std::forward<DateT>(value);
48 }
49 template <typename DateT = Aws::Utils::DateTime>
51 SetDate(std::forward<DateT>(value));
52 return *this;
53 }
55
57
60 inline InspectorEvent GetEvent() const { return m_event; }
61 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
62 inline void SetEvent(InspectorEvent value) {
63 m_eventHasBeenSet = true;
64 m_event = value;
65 }
67 SetEvent(value);
68 return *this;
69 }
71
73
76 inline const Aws::String& GetMessage() const { return m_message; }
77 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
78 template <typename MessageT = Aws::String>
79 void SetMessage(MessageT&& value) {
80 m_messageHasBeenSet = true;
81 m_message = std::forward<MessageT>(value);
82 }
83 template <typename MessageT = Aws::String>
85 SetMessage(std::forward<MessageT>(value));
86 return *this;
87 }
89
91
95 inline bool GetError() const { return m_error; }
96 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
97 inline void SetError(bool value) {
98 m_errorHasBeenSet = true;
99 m_error = value;
100 }
102 SetError(value);
103 return *this;
104 }
106
108
111 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
112 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
113 template <typename SnsTopicArnT = Aws::String>
114 void SetSnsTopicArn(SnsTopicArnT&& value) {
115 m_snsTopicArnHasBeenSet = true;
116 m_snsTopicArn = std::forward<SnsTopicArnT>(value);
117 }
118 template <typename SnsTopicArnT = Aws::String>
120 SetSnsTopicArn(std::forward<SnsTopicArnT>(value));
121 return *this;
122 }
124
126
129 inline AssessmentRunNotificationSnsStatusCode GetSnsPublishStatusCode() const { return m_snsPublishStatusCode; }
130 inline bool SnsPublishStatusCodeHasBeenSet() const { return m_snsPublishStatusCodeHasBeenSet; }
132 m_snsPublishStatusCodeHasBeenSet = true;
133 m_snsPublishStatusCode = value;
134 }
137 return *this;
138 }
140 private:
141 Aws::Utils::DateTime m_date{};
142
144
145 Aws::String m_message;
146
147 bool m_error{false};
148
149 Aws::String m_snsTopicArn;
150
152 bool m_dateHasBeenSet = false;
153 bool m_eventHasBeenSet = false;
154 bool m_messageHasBeenSet = false;
155 bool m_errorHasBeenSet = false;
156 bool m_snsTopicArnHasBeenSet = false;
157 bool m_snsPublishStatusCodeHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace Inspector
162} // namespace Aws
AWS_INSPECTOR_API AssessmentRunNotification(Aws::Utils::Json::JsonView jsonValue)
AssessmentRunNotification & WithMessage(MessageT &&value)
void SetSnsPublishStatusCode(AssessmentRunNotificationSnsStatusCode value)
AssessmentRunNotification & WithError(bool value)
AWS_INSPECTOR_API AssessmentRunNotification()=default
AssessmentRunNotification & WithSnsPublishStatusCode(AssessmentRunNotificationSnsStatusCode value)
AssessmentRunNotification & WithSnsTopicArn(SnsTopicArnT &&value)
AssessmentRunNotification & WithDate(DateT &&value)
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INSPECTOR_API AssessmentRunNotification & operator=(Aws::Utils::Json::JsonView jsonValue)
AssessmentRunNotificationSnsStatusCode GetSnsPublishStatusCode() const
AssessmentRunNotification & WithEvent(InspectorEvent value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue