AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
SendWhatsAppMessageRequest.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/socialmessaging/SocialMessagingRequest.h>
10#include <aws/socialmessaging/SocialMessaging_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SocialMessaging {
16namespace Model {
17
21 public:
22 AWS_SOCIALMESSAGING_API SendWhatsAppMessageRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "SendWhatsAppMessage"; }
29
30 AWS_SOCIALMESSAGING_API Aws::String SerializePayload() const override;
31
33
41 inline const Aws::String& GetOriginationPhoneNumberId() const { return m_originationPhoneNumberId; }
42 inline bool OriginationPhoneNumberIdHasBeenSet() const { return m_originationPhoneNumberIdHasBeenSet; }
43 template <typename OriginationPhoneNumberIdT = Aws::String>
44 void SetOriginationPhoneNumberId(OriginationPhoneNumberIdT&& value) {
45 m_originationPhoneNumberIdHasBeenSet = true;
46 m_originationPhoneNumberId = std::forward<OriginationPhoneNumberIdT>(value);
47 }
48 template <typename OriginationPhoneNumberIdT = Aws::String>
49 SendWhatsAppMessageRequest& WithOriginationPhoneNumberId(OriginationPhoneNumberIdT&& value) {
50 SetOriginationPhoneNumberId(std::forward<OriginationPhoneNumberIdT>(value));
51 return *this;
52 }
54
56
62 inline const Aws::Utils::CryptoBuffer& GetMessage() const { return m_message; }
63 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
64 template <typename MessageT = Aws::Utils::CryptoBuffer>
65 void SetMessage(MessageT&& value) {
66 m_messageHasBeenSet = true;
67 m_message = std::forward<MessageT>(value);
68 }
69 template <typename MessageT = Aws::Utils::CryptoBuffer>
71 SetMessage(std::forward<MessageT>(value));
72 return *this;
73 }
75
77
84 inline const Aws::String& GetMetaApiVersion() const { return m_metaApiVersion; }
85 inline bool MetaApiVersionHasBeenSet() const { return m_metaApiVersionHasBeenSet; }
86 template <typename MetaApiVersionT = Aws::String>
87 void SetMetaApiVersion(MetaApiVersionT&& value) {
88 m_metaApiVersionHasBeenSet = true;
89 m_metaApiVersion = std::forward<MetaApiVersionT>(value);
90 }
91 template <typename MetaApiVersionT = Aws::String>
93 SetMetaApiVersion(std::forward<MetaApiVersionT>(value));
94 return *this;
95 }
97 private:
98 Aws::String m_originationPhoneNumberId;
99
100 Aws::Utils::CryptoBuffer m_message{};
101
102 Aws::String m_metaApiVersion;
103 bool m_originationPhoneNumberIdHasBeenSet = false;
104 bool m_messageHasBeenSet = false;
105 bool m_metaApiVersionHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace SocialMessaging
110} // namespace Aws
SendWhatsAppMessageRequest & WithMetaApiVersion(MetaApiVersionT &&value)
void SetOriginationPhoneNumberId(OriginationPhoneNumberIdT &&value)
AWS_SOCIALMESSAGING_API SendWhatsAppMessageRequest()=default
SendWhatsAppMessageRequest & WithMessage(MessageT &&value)
AWS_SOCIALMESSAGING_API Aws::String SerializePayload() const override
SendWhatsAppMessageRequest & WithOriginationPhoneNumberId(OriginationPhoneNumberIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String