AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetWhatsAppMessageMediaRequest.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 GetWhatsAppMessageMediaRequest();
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 "GetWhatsAppMessageMedia"; }
33
34 AWS_SOCIALMESSAGING_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetMediaId() const{ return m_mediaId; }
42 inline bool MediaIdHasBeenSet() const { return m_mediaIdHasBeenSet; }
43 inline void SetMediaId(const Aws::String& value) { m_mediaIdHasBeenSet = true; m_mediaId = value; }
44 inline void SetMediaId(Aws::String&& value) { m_mediaIdHasBeenSet = true; m_mediaId = std::move(value); }
45 inline void SetMediaId(const char* value) { m_mediaIdHasBeenSet = true; m_mediaId.assign(value); }
46 inline GetWhatsAppMessageMediaRequest& WithMediaId(const Aws::String& value) { SetMediaId(value); return *this;}
47 inline GetWhatsAppMessageMediaRequest& WithMediaId(Aws::String&& value) { SetMediaId(std::move(value)); return *this;}
48 inline GetWhatsAppMessageMediaRequest& WithMediaId(const char* value) { SetMediaId(value); return *this;}
50
52
59 inline const Aws::String& GetOriginationPhoneNumberId() const{ return m_originationPhoneNumberId; }
60 inline bool OriginationPhoneNumberIdHasBeenSet() const { return m_originationPhoneNumberIdHasBeenSet; }
61 inline void SetOriginationPhoneNumberId(const Aws::String& value) { m_originationPhoneNumberIdHasBeenSet = true; m_originationPhoneNumberId = value; }
62 inline void SetOriginationPhoneNumberId(Aws::String&& value) { m_originationPhoneNumberIdHasBeenSet = true; m_originationPhoneNumberId = std::move(value); }
63 inline void SetOriginationPhoneNumberId(const char* value) { m_originationPhoneNumberIdHasBeenSet = true; m_originationPhoneNumberId.assign(value); }
68
70
73 inline bool GetMetadataOnly() const{ return m_metadataOnly; }
74 inline bool MetadataOnlyHasBeenSet() const { return m_metadataOnlyHasBeenSet; }
75 inline void SetMetadataOnly(bool value) { m_metadataOnlyHasBeenSet = true; m_metadataOnly = value; }
76 inline GetWhatsAppMessageMediaRequest& WithMetadataOnly(bool value) { SetMetadataOnly(value); return *this;}
78
80
83 inline const S3PresignedUrl& GetDestinationS3PresignedUrl() const{ return m_destinationS3PresignedUrl; }
84 inline bool DestinationS3PresignedUrlHasBeenSet() const { return m_destinationS3PresignedUrlHasBeenSet; }
85 inline void SetDestinationS3PresignedUrl(const S3PresignedUrl& value) { m_destinationS3PresignedUrlHasBeenSet = true; m_destinationS3PresignedUrl = value; }
86 inline void SetDestinationS3PresignedUrl(S3PresignedUrl&& value) { m_destinationS3PresignedUrlHasBeenSet = true; m_destinationS3PresignedUrl = std::move(value); }
90
92
95 inline const S3File& GetDestinationS3File() const{ return m_destinationS3File; }
96 inline bool DestinationS3FileHasBeenSet() const { return m_destinationS3FileHasBeenSet; }
97 inline void SetDestinationS3File(const S3File& value) { m_destinationS3FileHasBeenSet = true; m_destinationS3File = value; }
98 inline void SetDestinationS3File(S3File&& value) { m_destinationS3FileHasBeenSet = true; m_destinationS3File = std::move(value); }
100 inline GetWhatsAppMessageMediaRequest& WithDestinationS3File(S3File&& value) { SetDestinationS3File(std::move(value)); return *this;}
102 private:
103
104 Aws::String m_mediaId;
105 bool m_mediaIdHasBeenSet = false;
106
107 Aws::String m_originationPhoneNumberId;
108 bool m_originationPhoneNumberIdHasBeenSet = false;
109
110 bool m_metadataOnly;
111 bool m_metadataOnlyHasBeenSet = false;
112
113 S3PresignedUrl m_destinationS3PresignedUrl;
114 bool m_destinationS3PresignedUrlHasBeenSet = false;
115
116 S3File m_destinationS3File;
117 bool m_destinationS3FileHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace SocialMessaging
122} // namespace Aws
GetWhatsAppMessageMediaRequest & WithMediaId(const Aws::String &value)
GetWhatsAppMessageMediaRequest & WithOriginationPhoneNumberId(const Aws::String &value)
GetWhatsAppMessageMediaRequest & WithDestinationS3File(S3File &&value)
GetWhatsAppMessageMediaRequest & WithDestinationS3PresignedUrl(S3PresignedUrl &&value)
GetWhatsAppMessageMediaRequest & WithOriginationPhoneNumberId(const char *value)
GetWhatsAppMessageMediaRequest & WithOriginationPhoneNumberId(Aws::String &&value)
GetWhatsAppMessageMediaRequest & WithMediaId(const char *value)
GetWhatsAppMessageMediaRequest & WithDestinationS3PresignedUrl(const S3PresignedUrl &value)
AWS_SOCIALMESSAGING_API Aws::String SerializePayload() const override
GetWhatsAppMessageMediaRequest & WithDestinationS3File(const S3File &value)
GetWhatsAppMessageMediaRequest & WithMediaId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String