AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateWhatsAppMessageTemplateRequest.h
1
6#pragma once
7#include <aws/socialmessaging/SocialMessaging_EXPORTS.h>
8#include <aws/socialmessaging/SocialMessagingRequest.h>
9#include <aws/core/utils/Array.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace SocialMessaging
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_SOCIALMESSAGING_API CreateWhatsAppMessageTemplateRequest() = default;
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 "CreateWhatsAppMessageTemplate"; }
32
33 AWS_SOCIALMESSAGING_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::Utils::ByteBuffer& GetTemplateDefinition() const { return m_templateDefinition; }
41 inline bool TemplateDefinitionHasBeenSet() const { return m_templateDefinitionHasBeenSet; }
42 template<typename TemplateDefinitionT = Aws::Utils::ByteBuffer>
43 void SetTemplateDefinition(TemplateDefinitionT&& value) { m_templateDefinitionHasBeenSet = true; m_templateDefinition = std::forward<TemplateDefinitionT>(value); }
44 template<typename TemplateDefinitionT = Aws::Utils::ByteBuffer>
45 CreateWhatsAppMessageTemplateRequest& WithTemplateDefinition(TemplateDefinitionT&& value) { SetTemplateDefinition(std::forward<TemplateDefinitionT>(value)); return *this;}
47
49
52 inline const Aws::String& GetId() const { return m_id; }
53 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
54 template<typename IdT = Aws::String>
55 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
56 template<typename IdT = Aws::String>
57 CreateWhatsAppMessageTemplateRequest& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
59 private:
60
61 Aws::Utils::ByteBuffer m_templateDefinition{};
62 bool m_templateDefinitionHasBeenSet = false;
63
64 Aws::String m_id;
65 bool m_idHasBeenSet = false;
66 };
67
68} // namespace Model
69} // namespace SocialMessaging
70} // namespace Aws
CreateWhatsAppMessageTemplateRequest & WithTemplateDefinition(TemplateDefinitionT &&value)
AWS_SOCIALMESSAGING_API CreateWhatsAppMessageTemplateRequest()=default
AWS_SOCIALMESSAGING_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String