AWS SDK for C++

AWS SDK for C++ Version 1.11.691

Loading...
Searching...
No Matches
AssociateFlowRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/FlowAssociationResourceType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Connect {
16namespace Model {
17
21 public:
22 AWS_CONNECT_API AssociateFlowRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "AssociateFlow"; }
29
30 AWS_CONNECT_API Aws::String SerializePayload() const override;
31
33
38 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
39 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
40 template <typename InstanceIdT = Aws::String>
41 void SetInstanceId(InstanceIdT&& value) {
42 m_instanceIdHasBeenSet = true;
43 m_instanceId = std::forward<InstanceIdT>(value);
44 }
45 template <typename InstanceIdT = Aws::String>
46 AssociateFlowRequest& WithInstanceId(InstanceIdT&& value) {
47 SetInstanceId(std::forward<InstanceIdT>(value));
48 return *this;
49 }
51
53
59 inline const Aws::String& GetResourceId() const { return m_resourceId; }
60 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
61 template <typename ResourceIdT = Aws::String>
62 void SetResourceId(ResourceIdT&& value) {
63 m_resourceIdHasBeenSet = true;
64 m_resourceId = std::forward<ResourceIdT>(value);
65 }
66 template <typename ResourceIdT = Aws::String>
67 AssociateFlowRequest& WithResourceId(ResourceIdT&& value) {
68 SetResourceId(std::forward<ResourceIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetFlowId() const { return m_flowId; }
78 inline bool FlowIdHasBeenSet() const { return m_flowIdHasBeenSet; }
79 template <typename FlowIdT = Aws::String>
80 void SetFlowId(FlowIdT&& value) {
81 m_flowIdHasBeenSet = true;
82 m_flowId = std::forward<FlowIdT>(value);
83 }
84 template <typename FlowIdT = Aws::String>
85 AssociateFlowRequest& WithFlowId(FlowIdT&& value) {
86 SetFlowId(std::forward<FlowIdT>(value));
87 return *this;
88 }
90
92
95 inline FlowAssociationResourceType GetResourceType() const { return m_resourceType; }
96 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
98 m_resourceTypeHasBeenSet = true;
99 m_resourceType = value;
100 }
102 SetResourceType(value);
103 return *this;
104 }
106 private:
107 Aws::String m_instanceId;
108 bool m_instanceIdHasBeenSet = false;
109
110 Aws::String m_resourceId;
111 bool m_resourceIdHasBeenSet = false;
112
113 Aws::String m_flowId;
114 bool m_flowIdHasBeenSet = false;
115
117 bool m_resourceTypeHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace Connect
122} // namespace Aws
FlowAssociationResourceType GetResourceType() const
AssociateFlowRequest & WithInstanceId(InstanceIdT &&value)
AWS_CONNECT_API AssociateFlowRequest()=default
AssociateFlowRequest & WithResourceType(FlowAssociationResourceType value)
AWS_CONNECT_API Aws::String SerializePayload() const override
void SetResourceType(FlowAssociationResourceType value)
virtual const char * GetServiceRequestName() const override
AssociateFlowRequest & WithFlowId(FlowIdT &&value)
AssociateFlowRequest & WithResourceId(ResourceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String