AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NotificationAction.h
1
6#pragma once
7#include <aws/iotevents/IoTEvents_EXPORTS.h>
8#include <aws/iotevents/model/NotificationTargetActions.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/iotevents/model/SMSConfiguration.h>
11#include <aws/iotevents/model/EmailConfiguration.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 IoTEvents
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_IOTEVENTS_API NotificationAction();
40 AWS_IOTEVENTS_API NotificationAction(Aws::Utils::Json::JsonView jsonValue);
42 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
52 inline const NotificationTargetActions& GetAction() const{ return m_action; }
53 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
54 inline void SetAction(const NotificationTargetActions& value) { m_actionHasBeenSet = true; m_action = value; }
55 inline void SetAction(NotificationTargetActions&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
56 inline NotificationAction& WithAction(const NotificationTargetActions& value) { SetAction(value); return *this;}
57 inline NotificationAction& WithAction(NotificationTargetActions&& value) { SetAction(std::move(value)); return *this;}
59
61
64 inline const Aws::Vector<SMSConfiguration>& GetSmsConfigurations() const{ return m_smsConfigurations; }
65 inline bool SmsConfigurationsHasBeenSet() const { return m_smsConfigurationsHasBeenSet; }
66 inline void SetSmsConfigurations(const Aws::Vector<SMSConfiguration>& value) { m_smsConfigurationsHasBeenSet = true; m_smsConfigurations = value; }
67 inline void SetSmsConfigurations(Aws::Vector<SMSConfiguration>&& value) { m_smsConfigurationsHasBeenSet = true; m_smsConfigurations = std::move(value); }
70 inline NotificationAction& AddSmsConfigurations(const SMSConfiguration& value) { m_smsConfigurationsHasBeenSet = true; m_smsConfigurations.push_back(value); return *this; }
71 inline NotificationAction& AddSmsConfigurations(SMSConfiguration&& value) { m_smsConfigurationsHasBeenSet = true; m_smsConfigurations.push_back(std::move(value)); return *this; }
73
75
78 inline const Aws::Vector<EmailConfiguration>& GetEmailConfigurations() const{ return m_emailConfigurations; }
79 inline bool EmailConfigurationsHasBeenSet() const { return m_emailConfigurationsHasBeenSet; }
80 inline void SetEmailConfigurations(const Aws::Vector<EmailConfiguration>& value) { m_emailConfigurationsHasBeenSet = true; m_emailConfigurations = value; }
81 inline void SetEmailConfigurations(Aws::Vector<EmailConfiguration>&& value) { m_emailConfigurationsHasBeenSet = true; m_emailConfigurations = std::move(value); }
84 inline NotificationAction& AddEmailConfigurations(const EmailConfiguration& value) { m_emailConfigurationsHasBeenSet = true; m_emailConfigurations.push_back(value); return *this; }
85 inline NotificationAction& AddEmailConfigurations(EmailConfiguration&& value) { m_emailConfigurationsHasBeenSet = true; m_emailConfigurations.push_back(std::move(value)); return *this; }
87 private:
88
90 bool m_actionHasBeenSet = false;
91
92 Aws::Vector<SMSConfiguration> m_smsConfigurations;
93 bool m_smsConfigurationsHasBeenSet = false;
94
95 Aws::Vector<EmailConfiguration> m_emailConfigurations;
96 bool m_emailConfigurationsHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace IoTEvents
101} // namespace Aws
void SetAction(const NotificationTargetActions &value)
void SetEmailConfigurations(Aws::Vector< EmailConfiguration > &&value)
void SetSmsConfigurations(const Aws::Vector< SMSConfiguration > &value)
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
NotificationAction & AddEmailConfigurations(EmailConfiguration &&value)
AWS_IOTEVENTS_API NotificationAction(Aws::Utils::Json::JsonView jsonValue)
const NotificationTargetActions & GetAction() const
AWS_IOTEVENTS_API NotificationAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEmailConfigurations(const Aws::Vector< EmailConfiguration > &value)
NotificationAction & WithSmsConfigurations(const Aws::Vector< SMSConfiguration > &value)
NotificationAction & WithAction(NotificationTargetActions &&value)
NotificationAction & AddSmsConfigurations(SMSConfiguration &&value)
const Aws::Vector< EmailConfiguration > & GetEmailConfigurations() const
NotificationAction & WithSmsConfigurations(Aws::Vector< SMSConfiguration > &&value)
NotificationAction & AddSmsConfigurations(const SMSConfiguration &value)
void SetAction(NotificationTargetActions &&value)
const Aws::Vector< SMSConfiguration > & GetSmsConfigurations() const
NotificationAction & WithEmailConfigurations(const Aws::Vector< EmailConfiguration > &value)
NotificationAction & WithAction(const NotificationTargetActions &value)
void SetSmsConfigurations(Aws::Vector< SMSConfiguration > &&value)
NotificationAction & AddEmailConfigurations(const EmailConfiguration &value)
NotificationAction & WithEmailConfigurations(Aws::Vector< EmailConfiguration > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue