AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateWhatsAppMessageTemplateRequest.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 UpdateWhatsAppMessageTemplateRequest() = 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 "UpdateWhatsAppMessageTemplate"; }
32
33 AWS_SOCIALMESSAGING_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetId() const { return m_id; }
41 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
42 template<typename IdT = Aws::String>
43 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
44 template<typename IdT = Aws::String>
45 UpdateWhatsAppMessageTemplateRequest& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
47
49
52 inline const Aws::String& GetMetaTemplateId() const { return m_metaTemplateId; }
53 inline bool MetaTemplateIdHasBeenSet() const { return m_metaTemplateIdHasBeenSet; }
54 template<typename MetaTemplateIdT = Aws::String>
55 void SetMetaTemplateId(MetaTemplateIdT&& value) { m_metaTemplateIdHasBeenSet = true; m_metaTemplateId = std::forward<MetaTemplateIdT>(value); }
56 template<typename MetaTemplateIdT = Aws::String>
57 UpdateWhatsAppMessageTemplateRequest& WithMetaTemplateId(MetaTemplateIdT&& value) { SetMetaTemplateId(std::forward<MetaTemplateIdT>(value)); return *this;}
59
61
64 inline const Aws::String& GetTemplateCategory() const { return m_templateCategory; }
65 inline bool TemplateCategoryHasBeenSet() const { return m_templateCategoryHasBeenSet; }
66 template<typename TemplateCategoryT = Aws::String>
67 void SetTemplateCategory(TemplateCategoryT&& value) { m_templateCategoryHasBeenSet = true; m_templateCategory = std::forward<TemplateCategoryT>(value); }
68 template<typename TemplateCategoryT = Aws::String>
69 UpdateWhatsAppMessageTemplateRequest& WithTemplateCategory(TemplateCategoryT&& value) { SetTemplateCategory(std::forward<TemplateCategoryT>(value)); return *this;}
71
73
77 inline const Aws::Utils::ByteBuffer& GetTemplateComponents() const { return m_templateComponents; }
78 inline bool TemplateComponentsHasBeenSet() const { return m_templateComponentsHasBeenSet; }
79 template<typename TemplateComponentsT = Aws::Utils::ByteBuffer>
80 void SetTemplateComponents(TemplateComponentsT&& value) { m_templateComponentsHasBeenSet = true; m_templateComponents = std::forward<TemplateComponentsT>(value); }
81 template<typename TemplateComponentsT = Aws::Utils::ByteBuffer>
82 UpdateWhatsAppMessageTemplateRequest& WithTemplateComponents(TemplateComponentsT&& value) { SetTemplateComponents(std::forward<TemplateComponentsT>(value)); return *this;}
84 private:
85
86 Aws::String m_id;
87 bool m_idHasBeenSet = false;
88
89 Aws::String m_metaTemplateId;
90 bool m_metaTemplateIdHasBeenSet = false;
91
92 Aws::String m_templateCategory;
93 bool m_templateCategoryHasBeenSet = false;
94
95 Aws::Utils::ByteBuffer m_templateComponents{};
96 bool m_templateComponentsHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace SocialMessaging
101} // namespace Aws
AWS_SOCIALMESSAGING_API UpdateWhatsAppMessageTemplateRequest()=default
AWS_SOCIALMESSAGING_API Aws::String SerializePayload() const override
UpdateWhatsAppMessageTemplateRequest & WithTemplateComponents(TemplateComponentsT &&value)
UpdateWhatsAppMessageTemplateRequest & WithMetaTemplateId(MetaTemplateIdT &&value)
UpdateWhatsAppMessageTemplateRequest & WithTemplateCategory(TemplateCategoryT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String