AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DisassociateWorkspaceRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Connect {
16namespace Model {
17
21 public:
22 AWS_CONNECT_API DisassociateWorkspaceRequest() = 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 "DisassociateWorkspace"; }
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>
47 SetInstanceId(std::forward<InstanceIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
57 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
58 template <typename WorkspaceIdT = Aws::String>
59 void SetWorkspaceId(WorkspaceIdT&& value) {
60 m_workspaceIdHasBeenSet = true;
61 m_workspaceId = std::forward<WorkspaceIdT>(value);
62 }
63 template <typename WorkspaceIdT = Aws::String>
65 SetWorkspaceId(std::forward<WorkspaceIdT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::Vector<Aws::String>& GetResourceArns() const { return m_resourceArns; }
76 inline bool ResourceArnsHasBeenSet() const { return m_resourceArnsHasBeenSet; }
77 template <typename ResourceArnsT = Aws::Vector<Aws::String>>
78 void SetResourceArns(ResourceArnsT&& value) {
79 m_resourceArnsHasBeenSet = true;
80 m_resourceArns = std::forward<ResourceArnsT>(value);
81 }
82 template <typename ResourceArnsT = Aws::Vector<Aws::String>>
84 SetResourceArns(std::forward<ResourceArnsT>(value));
85 return *this;
86 }
87 template <typename ResourceArnsT = Aws::String>
89 m_resourceArnsHasBeenSet = true;
90 m_resourceArns.emplace_back(std::forward<ResourceArnsT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_instanceId;
96
97 Aws::String m_workspaceId;
98
99 Aws::Vector<Aws::String> m_resourceArns;
100 bool m_instanceIdHasBeenSet = false;
101 bool m_workspaceIdHasBeenSet = false;
102 bool m_resourceArnsHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace Connect
107} // namespace Aws
DisassociateWorkspaceRequest & WithWorkspaceId(WorkspaceIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CONNECT_API Aws::String SerializePayload() const override
DisassociateWorkspaceRequest & AddResourceArns(ResourceArnsT &&value)
DisassociateWorkspaceRequest & WithResourceArns(ResourceArnsT &&value)
DisassociateWorkspaceRequest & WithInstanceId(InstanceIdT &&value)
AWS_CONNECT_API DisassociateWorkspaceRequest()=default
const Aws::Vector< Aws::String > & GetResourceArns() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector