AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PostWhatsAppMessageMediaRequest.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/socialmessaging/model/S3PresignedUrl.h>
11#include <aws/socialmessaging/model/S3File.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SocialMessaging
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SOCIALMESSAGING_API PostWhatsAppMessageMediaRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "PostWhatsAppMessageMedia"; }
33
34 AWS_SOCIALMESSAGING_API Aws::String SerializePayload() const override;
35
36
38
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
59 inline const S3PresignedUrl& GetSourceS3PresignedUrl() const{ return m_sourceS3PresignedUrl; }
60 inline bool SourceS3PresignedUrlHasBeenSet() const { return m_sourceS3PresignedUrlHasBeenSet; }
61 inline void SetSourceS3PresignedUrl(const S3PresignedUrl& value) { m_sourceS3PresignedUrlHasBeenSet = true; m_sourceS3PresignedUrl = value; }
62 inline void SetSourceS3PresignedUrl(S3PresignedUrl&& value) { m_sourceS3PresignedUrlHasBeenSet = true; m_sourceS3PresignedUrl = std::move(value); }
66
68
71 inline const S3File& GetSourceS3File() const{ return m_sourceS3File; }
72 inline bool SourceS3FileHasBeenSet() const { return m_sourceS3FileHasBeenSet; }
73 inline void SetSourceS3File(const S3File& value) { m_sourceS3FileHasBeenSet = true; m_sourceS3File = value; }
74 inline void SetSourceS3File(S3File&& value) { m_sourceS3FileHasBeenSet = true; m_sourceS3File = std::move(value); }
75 inline PostWhatsAppMessageMediaRequest& WithSourceS3File(const S3File& value) { SetSourceS3File(value); return *this;}
76 inline PostWhatsAppMessageMediaRequest& WithSourceS3File(S3File&& value) { SetSourceS3File(std::move(value)); return *this;}
78 private:
79
80 Aws::String m_originationPhoneNumberId;
81 bool m_originationPhoneNumberIdHasBeenSet = false;
82
83 S3PresignedUrl m_sourceS3PresignedUrl;
84 bool m_sourceS3PresignedUrlHasBeenSet = false;
85
86 S3File m_sourceS3File;
87 bool m_sourceS3FileHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace SocialMessaging
92} // namespace Aws
PostWhatsAppMessageMediaRequest & WithSourceS3PresignedUrl(S3PresignedUrl &&value)
PostWhatsAppMessageMediaRequest & WithSourceS3File(const S3File &value)
void SetSourceS3File(S3File &&value)
PostWhatsAppMessageMediaRequest & WithOriginationPhoneNumberId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
AWS_SOCIALMESSAGING_API PostWhatsAppMessageMediaRequest()
const S3PresignedUrl & GetSourceS3PresignedUrl() const
void SetOriginationPhoneNumberId(Aws::String &&value)
const Aws::String & GetOriginationPhoneNumberId() const
bool SourceS3PresignedUrlHasBeenSet() const
bool OriginationPhoneNumberIdHasBeenSet() const
void SetSourceS3PresignedUrl(S3PresignedUrl &&value)
void SetOriginationPhoneNumberId(const Aws::String &value)
AWS_SOCIALMESSAGING_API Aws::String SerializePayload() const override
PostWhatsAppMessageMediaRequest & WithOriginationPhoneNumberId(const Aws::String &value)
void SetSourceS3File(const S3File &value)
void SetSourceS3PresignedUrl(const S3PresignedUrl &value)
void SetOriginationPhoneNumberId(const char *value)
PostWhatsAppMessageMediaRequest & WithOriginationPhoneNumberId(const char *value)
PostWhatsAppMessageMediaRequest & WithSourceS3File(S3File &&value)
PostWhatsAppMessageMediaRequest & WithSourceS3PresignedUrl(const S3PresignedUrl &value)
const S3File & GetSourceS3File() const
bool SourceS3FileHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String