AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SendWhatsAppMessageRequest.h
1
6#pragma once
7#include <aws/socialmessaging/SocialMessaging_EXPORTS.h>
8#include <aws/socialmessaging/SocialMessagingRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/Array.h>
11#include <utility>
12
13namespace Aws
14{
15namespace SocialMessaging
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_SOCIALMESSAGING_API SendWhatsAppMessageRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "SendWhatsAppMessage"; }
32
33 AWS_SOCIALMESSAGING_API Aws::String SerializePayload() const override;
34
35
37
45 inline const Aws::String& GetOriginationPhoneNumberId() const{ return m_originationPhoneNumberId; }
46 inline bool OriginationPhoneNumberIdHasBeenSet() const { return m_originationPhoneNumberIdHasBeenSet; }
47 inline void SetOriginationPhoneNumberId(const Aws::String& value) { m_originationPhoneNumberIdHasBeenSet = true; m_originationPhoneNumberId = value; }
48 inline void SetOriginationPhoneNumberId(Aws::String&& value) { m_originationPhoneNumberIdHasBeenSet = true; m_originationPhoneNumberId = std::move(value); }
49 inline void SetOriginationPhoneNumberId(const char* value) { m_originationPhoneNumberIdHasBeenSet = true; m_originationPhoneNumberId.assign(value); }
54
56
62 inline const Aws::Utils::CryptoBuffer& GetMessage() const{ return m_message; }
63 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
64 inline void SetMessage(const Aws::Utils::CryptoBuffer& value) { m_messageHasBeenSet = true; m_message = value; }
65 inline void SetMessage(Aws::Utils::CryptoBuffer&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
66 inline SendWhatsAppMessageRequest& WithMessage(const Aws::Utils::CryptoBuffer& value) { SetMessage(value); return *this;}
67 inline SendWhatsAppMessageRequest& WithMessage(Aws::Utils::CryptoBuffer&& value) { SetMessage(std::move(value)); return *this;}
69
71
78 inline const Aws::String& GetMetaApiVersion() const{ return m_metaApiVersion; }
79 inline bool MetaApiVersionHasBeenSet() const { return m_metaApiVersionHasBeenSet; }
80 inline void SetMetaApiVersion(const Aws::String& value) { m_metaApiVersionHasBeenSet = true; m_metaApiVersion = value; }
81 inline void SetMetaApiVersion(Aws::String&& value) { m_metaApiVersionHasBeenSet = true; m_metaApiVersion = std::move(value); }
82 inline void SetMetaApiVersion(const char* value) { m_metaApiVersionHasBeenSet = true; m_metaApiVersion.assign(value); }
83 inline SendWhatsAppMessageRequest& WithMetaApiVersion(const Aws::String& value) { SetMetaApiVersion(value); return *this;}
84 inline SendWhatsAppMessageRequest& WithMetaApiVersion(Aws::String&& value) { SetMetaApiVersion(std::move(value)); return *this;}
85 inline SendWhatsAppMessageRequest& WithMetaApiVersion(const char* value) { SetMetaApiVersion(value); return *this;}
87 private:
88
89 Aws::String m_originationPhoneNumberId;
90 bool m_originationPhoneNumberIdHasBeenSet = false;
91
93 bool m_messageHasBeenSet = false;
94
95 Aws::String m_metaApiVersion;
96 bool m_metaApiVersionHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace SocialMessaging
101} // namespace Aws
SendWhatsAppMessageRequest & WithOriginationPhoneNumberId(const char *value)
SendWhatsAppMessageRequest & WithMetaApiVersion(const Aws::String &value)
SendWhatsAppMessageRequest & WithOriginationPhoneNumberId(const Aws::String &value)
SendWhatsAppMessageRequest & WithMessage(const Aws::Utils::CryptoBuffer &value)
SendWhatsAppMessageRequest & WithMetaApiVersion(Aws::String &&value)
AWS_SOCIALMESSAGING_API Aws::String SerializePayload() const override
SendWhatsAppMessageRequest & WithOriginationPhoneNumberId(Aws::String &&value)
SendWhatsAppMessageRequest & WithMetaApiVersion(const char *value)
SendWhatsAppMessageRequest & WithMessage(Aws::Utils::CryptoBuffer &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String