AWS SDK for C++

AWS SDK for C++ Version 1.11.553

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Loading...
Searching...
No Matches
CreateContactFlowRequest.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/ConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/connect/model/ContactFlowType.h>
11#include <aws/connect/model/ContactFlowStatus.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Connect
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CONNECT_API CreateContactFlowRequest() = 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 "CreateContactFlow"; }
34
35 AWS_CONNECT_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
43 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
44 template<typename InstanceIdT = Aws::String>
45 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
46 template<typename InstanceIdT = Aws::String>
47 CreateContactFlowRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
49
51
54 inline const Aws::String& GetName() const { return m_name; }
55 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 template<typename NameT = Aws::String>
57 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
58 template<typename NameT = Aws::String>
59 CreateContactFlowRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
61
63
68 inline ContactFlowType GetType() const { return m_type; }
69 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
70 inline void SetType(ContactFlowType value) { m_typeHasBeenSet = true; m_type = value; }
71 inline CreateContactFlowRequest& WithType(ContactFlowType value) { SetType(value); return *this;}
73
75
78 inline const Aws::String& GetDescription() const { return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 template<typename DescriptionT = Aws::String>
81 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
82 template<typename DescriptionT = Aws::String>
83 CreateContactFlowRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
85
87
94 inline const Aws::String& GetContent() const { return m_content; }
95 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
96 template<typename ContentT = Aws::String>
97 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
98 template<typename ContentT = Aws::String>
99 CreateContactFlowRequest& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
101
103
109 inline ContactFlowStatus GetStatus() const { return m_status; }
110 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
111 inline void SetStatus(ContactFlowStatus value) { m_statusHasBeenSet = true; m_status = value; }
112 inline CreateContactFlowRequest& WithStatus(ContactFlowStatus value) { SetStatus(value); return *this;}
114
116
120 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
121 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
122 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
123 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
124 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
125 CreateContactFlowRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
126 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
127 CreateContactFlowRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
128 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
129 }
131 private:
132
133 Aws::String m_instanceId;
134 bool m_instanceIdHasBeenSet = false;
135
136 Aws::String m_name;
137 bool m_nameHasBeenSet = false;
138
140 bool m_typeHasBeenSet = false;
141
142 Aws::String m_description;
143 bool m_descriptionHasBeenSet = false;
144
145 Aws::String m_content;
146 bool m_contentHasBeenSet = false;
147
149 bool m_statusHasBeenSet = false;
150
152 bool m_tagsHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace Connect
157} // namespace Aws
AWS_CONNECT_API CreateContactFlowRequest()=default
CreateContactFlowRequest & WithStatus(ContactFlowStatus value)
CreateContactFlowRequest & WithTags(TagsT &&value)
CreateContactFlowRequest & WithContent(ContentT &&value)
CreateContactFlowRequest & WithType(ContactFlowType value)
CreateContactFlowRequest & WithDescription(DescriptionT &&value)
CreateContactFlowRequest & WithName(NameT &&value)
CreateContactFlowRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateContactFlowRequest & WithInstanceId(InstanceIdT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_CONNECT_API Aws::String SerializePayload() const override
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String