AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateCustomActionRequest.h
1
6#pragma once
7#include <aws/chatbot/Chatbot_EXPORTS.h>
8#include <aws/chatbot/ChatbotRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/chatbot/model/CustomActionDefinition.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/chatbot/model/CustomActionAttachment.h>
13#include <utility>
14
15namespace Aws
16{
17namespace chatbot
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CHATBOT_API UpdateCustomActionRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateCustomAction"; }
34
35 AWS_CHATBOT_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetCustomActionArn() const { return m_customActionArn; }
43 inline bool CustomActionArnHasBeenSet() const { return m_customActionArnHasBeenSet; }
44 template<typename CustomActionArnT = Aws::String>
45 void SetCustomActionArn(CustomActionArnT&& value) { m_customActionArnHasBeenSet = true; m_customActionArn = std::forward<CustomActionArnT>(value); }
46 template<typename CustomActionArnT = Aws::String>
47 UpdateCustomActionRequest& WithCustomActionArn(CustomActionArnT&& value) { SetCustomActionArn(std::forward<CustomActionArnT>(value)); return *this;}
49
51
55 inline const CustomActionDefinition& GetDefinition() const { return m_definition; }
56 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
57 template<typename DefinitionT = CustomActionDefinition>
58 void SetDefinition(DefinitionT&& value) { m_definitionHasBeenSet = true; m_definition = std::forward<DefinitionT>(value); }
59 template<typename DefinitionT = CustomActionDefinition>
60 UpdateCustomActionRequest& WithDefinition(DefinitionT&& value) { SetDefinition(std::forward<DefinitionT>(value)); return *this;}
62
64
68 inline const Aws::String& GetAliasName() const { return m_aliasName; }
69 inline bool AliasNameHasBeenSet() const { return m_aliasNameHasBeenSet; }
70 template<typename AliasNameT = Aws::String>
71 void SetAliasName(AliasNameT&& value) { m_aliasNameHasBeenSet = true; m_aliasName = std::forward<AliasNameT>(value); }
72 template<typename AliasNameT = Aws::String>
73 UpdateCustomActionRequest& WithAliasName(AliasNameT&& value) { SetAliasName(std::forward<AliasNameT>(value)); return *this;}
75
77
81 inline const Aws::Vector<CustomActionAttachment>& GetAttachments() const { return m_attachments; }
82 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
83 template<typename AttachmentsT = Aws::Vector<CustomActionAttachment>>
84 void SetAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::forward<AttachmentsT>(value); }
85 template<typename AttachmentsT = Aws::Vector<CustomActionAttachment>>
86 UpdateCustomActionRequest& WithAttachments(AttachmentsT&& value) { SetAttachments(std::forward<AttachmentsT>(value)); return *this;}
87 template<typename AttachmentsT = CustomActionAttachment>
88 UpdateCustomActionRequest& AddAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet = true; m_attachments.emplace_back(std::forward<AttachmentsT>(value)); return *this; }
90 private:
91
92 Aws::String m_customActionArn;
93 bool m_customActionArnHasBeenSet = false;
94
95 CustomActionDefinition m_definition;
96 bool m_definitionHasBeenSet = false;
97
98 Aws::String m_aliasName;
99 bool m_aliasNameHasBeenSet = false;
100
102 bool m_attachmentsHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace chatbot
107} // namespace Aws
UpdateCustomActionRequest & WithDefinition(DefinitionT &&value)
UpdateCustomActionRequest & WithCustomActionArn(CustomActionArnT &&value)
AWS_CHATBOT_API UpdateCustomActionRequest()=default
UpdateCustomActionRequest & WithAttachments(AttachmentsT &&value)
UpdateCustomActionRequest & AddAttachments(AttachmentsT &&value)
const Aws::Vector< CustomActionAttachment > & GetAttachments() const
virtual const char * GetServiceRequestName() const override
const CustomActionDefinition & GetDefinition() const
AWS_CHATBOT_API Aws::String SerializePayload() const override
UpdateCustomActionRequest & WithAliasName(AliasNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector