AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AssessmentRunNotification.h
1
6#pragma once
7#include <aws/inspector/Inspector_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/inspector/model/InspectorEvent.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/inspector/model/AssessmentRunNotificationSnsStatusCode.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Inspector
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_INSPECTOR_API AssessmentRunNotification() = default;
41 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Utils::DateTime& GetDate() const { return m_date; }
49 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
50 template<typename DateT = Aws::Utils::DateTime>
51 void SetDate(DateT&& value) { m_dateHasBeenSet = true; m_date = std::forward<DateT>(value); }
52 template<typename DateT = Aws::Utils::DateTime>
53 AssessmentRunNotification& WithDate(DateT&& value) { SetDate(std::forward<DateT>(value)); return *this;}
55
57
60 inline InspectorEvent GetEvent() const { return m_event; }
61 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
62 inline void SetEvent(InspectorEvent value) { m_eventHasBeenSet = true; m_event = value; }
63 inline AssessmentRunNotification& WithEvent(InspectorEvent value) { SetEvent(value); return *this;}
65
67
70 inline const Aws::String& GetMessage() const { return m_message; }
71 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
72 template<typename MessageT = Aws::String>
73 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
74 template<typename MessageT = Aws::String>
75 AssessmentRunNotification& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
77
79
83 inline bool GetError() const { return m_error; }
84 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
85 inline void SetError(bool value) { m_errorHasBeenSet = true; m_error = value; }
86 inline AssessmentRunNotification& WithError(bool value) { SetError(value); return *this;}
88
90
93 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
94 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
95 template<typename SnsTopicArnT = Aws::String>
96 void SetSnsTopicArn(SnsTopicArnT&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::forward<SnsTopicArnT>(value); }
97 template<typename SnsTopicArnT = Aws::String>
98 AssessmentRunNotification& WithSnsTopicArn(SnsTopicArnT&& value) { SetSnsTopicArn(std::forward<SnsTopicArnT>(value)); return *this;}
100
102
105 inline AssessmentRunNotificationSnsStatusCode GetSnsPublishStatusCode() const { return m_snsPublishStatusCode; }
106 inline bool SnsPublishStatusCodeHasBeenSet() const { return m_snsPublishStatusCodeHasBeenSet; }
107 inline void SetSnsPublishStatusCode(AssessmentRunNotificationSnsStatusCode value) { m_snsPublishStatusCodeHasBeenSet = true; m_snsPublishStatusCode = value; }
110 private:
111
112 Aws::Utils::DateTime m_date{};
113 bool m_dateHasBeenSet = false;
114
116 bool m_eventHasBeenSet = false;
117
118 Aws::String m_message;
119 bool m_messageHasBeenSet = false;
120
121 bool m_error{false};
122 bool m_errorHasBeenSet = false;
123
124 Aws::String m_snsTopicArn;
125 bool m_snsTopicArnHasBeenSet = false;
126
128 bool m_snsPublishStatusCodeHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace Inspector
133} // 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