AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDate(const Aws::Utils::DateTime& value) { m_dateHasBeenSet = true; m_date = value; }
51 inline void SetDate(Aws::Utils::DateTime&& value) { m_dateHasBeenSet = true; m_date = std::move(value); }
52 inline AssessmentRunNotification& WithDate(const Aws::Utils::DateTime& value) { SetDate(value); return *this;}
53 inline AssessmentRunNotification& WithDate(Aws::Utils::DateTime&& value) { SetDate(std::move(value)); return *this;}
55
57
60 inline const InspectorEvent& GetEvent() const{ return m_event; }
61 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
62 inline void SetEvent(const InspectorEvent& value) { m_eventHasBeenSet = true; m_event = value; }
63 inline void SetEvent(InspectorEvent&& value) { m_eventHasBeenSet = true; m_event = std::move(value); }
64 inline AssessmentRunNotification& WithEvent(const InspectorEvent& value) { SetEvent(value); return *this;}
65 inline AssessmentRunNotification& WithEvent(InspectorEvent&& value) { SetEvent(std::move(value)); return *this;}
67
69
72 inline const Aws::String& GetMessage() const{ return m_message; }
73 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
74 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
75 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
76 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
77 inline AssessmentRunNotification& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
78 inline AssessmentRunNotification& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
79 inline AssessmentRunNotification& WithMessage(const char* value) { SetMessage(value); return *this;}
81
83
87 inline bool GetError() const{ return m_error; }
88 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
89 inline void SetError(bool value) { m_errorHasBeenSet = true; m_error = value; }
90 inline AssessmentRunNotification& WithError(bool value) { SetError(value); return *this;}
92
94
97 inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; }
98 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
99 inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; }
100 inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::move(value); }
101 inline void SetSnsTopicArn(const char* value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn.assign(value); }
102 inline AssessmentRunNotification& WithSnsTopicArn(const Aws::String& value) { SetSnsTopicArn(value); return *this;}
103 inline AssessmentRunNotification& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;}
104 inline AssessmentRunNotification& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;}
106
108
111 inline const AssessmentRunNotificationSnsStatusCode& GetSnsPublishStatusCode() const{ return m_snsPublishStatusCode; }
112 inline bool SnsPublishStatusCodeHasBeenSet() const { return m_snsPublishStatusCodeHasBeenSet; }
113 inline void SetSnsPublishStatusCode(const AssessmentRunNotificationSnsStatusCode& value) { m_snsPublishStatusCodeHasBeenSet = true; m_snsPublishStatusCode = value; }
114 inline void SetSnsPublishStatusCode(AssessmentRunNotificationSnsStatusCode&& value) { m_snsPublishStatusCodeHasBeenSet = true; m_snsPublishStatusCode = std::move(value); }
118 private:
119
121 bool m_dateHasBeenSet = false;
122
123 InspectorEvent m_event;
124 bool m_eventHasBeenSet = false;
125
126 Aws::String m_message;
127 bool m_messageHasBeenSet = false;
128
129 bool m_error;
130 bool m_errorHasBeenSet = false;
131
132 Aws::String m_snsTopicArn;
133 bool m_snsTopicArnHasBeenSet = false;
134
135 AssessmentRunNotificationSnsStatusCode m_snsPublishStatusCode;
136 bool m_snsPublishStatusCodeHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace Inspector
141} // namespace Aws
AssessmentRunNotification & WithDate(Aws::Utils::DateTime &&value)
AssessmentRunNotification & WithSnsTopicArn(const char *value)
AWS_INSPECTOR_API AssessmentRunNotification(Aws::Utils::Json::JsonView jsonValue)
AssessmentRunNotification & WithSnsTopicArn(Aws::String &&value)
void SetSnsPublishStatusCode(const AssessmentRunNotificationSnsStatusCode &value)
AssessmentRunNotification & WithError(bool value)
AssessmentRunNotification & WithEvent(InspectorEvent &&value)
AssessmentRunNotification & WithMessage(Aws::String &&value)
AssessmentRunNotification & WithSnsTopicArn(const Aws::String &value)
void SetDate(const Aws::Utils::DateTime &value)
AssessmentRunNotification & WithDate(const Aws::Utils::DateTime &value)
AssessmentRunNotification & WithMessage(const Aws::String &value)
AssessmentRunNotification & WithEvent(const InspectorEvent &value)
void SetSnsPublishStatusCode(AssessmentRunNotificationSnsStatusCode &&value)
AssessmentRunNotification & WithSnsPublishStatusCode(AssessmentRunNotificationSnsStatusCode &&value)
AssessmentRunNotification & WithMessage(const char *value)
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
const AssessmentRunNotificationSnsStatusCode & GetSnsPublishStatusCode() const
AWS_INSPECTOR_API AssessmentRunNotification & operator=(Aws::Utils::Json::JsonView jsonValue)
AssessmentRunNotification & WithSnsPublishStatusCode(const AssessmentRunNotificationSnsStatusCode &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue