AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
SMSConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iotevents/IoTEvents_EXPORTS.h>
10#include <aws/iotevents/model/RecipientDetail.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoTEvents {
22namespace Model {
23
31 public:
32 AWS_IOTEVENTS_API SMSConfiguration() = default;
33 AWS_IOTEVENTS_API SMSConfiguration(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetSenderId() const { return m_senderId; }
42 inline bool SenderIdHasBeenSet() const { return m_senderIdHasBeenSet; }
43 template <typename SenderIdT = Aws::String>
44 void SetSenderId(SenderIdT&& value) {
45 m_senderIdHasBeenSet = true;
46 m_senderId = std::forward<SenderIdT>(value);
47 }
48 template <typename SenderIdT = Aws::String>
49 SMSConfiguration& WithSenderId(SenderIdT&& value) {
50 SetSenderId(std::forward<SenderIdT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetAdditionalMessage() const { return m_additionalMessage; }
61 inline bool AdditionalMessageHasBeenSet() const { return m_additionalMessageHasBeenSet; }
62 template <typename AdditionalMessageT = Aws::String>
63 void SetAdditionalMessage(AdditionalMessageT&& value) {
64 m_additionalMessageHasBeenSet = true;
65 m_additionalMessage = std::forward<AdditionalMessageT>(value);
66 }
67 template <typename AdditionalMessageT = Aws::String>
68 SMSConfiguration& WithAdditionalMessage(AdditionalMessageT&& value) {
69 SetAdditionalMessage(std::forward<AdditionalMessageT>(value));
70 return *this;
71 }
73
75
81 inline const Aws::Vector<RecipientDetail>& GetRecipients() const { return m_recipients; }
82 inline bool RecipientsHasBeenSet() const { return m_recipientsHasBeenSet; }
83 template <typename RecipientsT = Aws::Vector<RecipientDetail>>
84 void SetRecipients(RecipientsT&& value) {
85 m_recipientsHasBeenSet = true;
86 m_recipients = std::forward<RecipientsT>(value);
87 }
88 template <typename RecipientsT = Aws::Vector<RecipientDetail>>
89 SMSConfiguration& WithRecipients(RecipientsT&& value) {
90 SetRecipients(std::forward<RecipientsT>(value));
91 return *this;
92 }
93 template <typename RecipientsT = RecipientDetail>
94 SMSConfiguration& AddRecipients(RecipientsT&& value) {
95 m_recipientsHasBeenSet = true;
96 m_recipients.emplace_back(std::forward<RecipientsT>(value));
97 return *this;
98 }
100 private:
101 Aws::String m_senderId;
102
103 Aws::String m_additionalMessage;
104
105 Aws::Vector<RecipientDetail> m_recipients;
106 bool m_senderIdHasBeenSet = false;
107 bool m_additionalMessageHasBeenSet = false;
108 bool m_recipientsHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace IoTEvents
113} // namespace Aws
const Aws::Vector< RecipientDetail > & GetRecipients() const
SMSConfiguration & WithSenderId(SenderIdT &&value)
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
SMSConfiguration & WithAdditionalMessage(AdditionalMessageT &&value)
AWS_IOTEVENTS_API SMSConfiguration()=default
const Aws::String & GetSenderId() const
SMSConfiguration & WithRecipients(RecipientsT &&value)
AWS_IOTEVENTS_API SMSConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetRecipients(RecipientsT &&value)
SMSConfiguration & AddRecipients(RecipientsT &&value)
const Aws::String & GetAdditionalMessage() const
void SetAdditionalMessage(AdditionalMessageT &&value)
AWS_IOTEVENTS_API SMSConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue