AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StopContactRequest.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/DisconnectReason.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Connect
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CONNECT_API StopContactRequest();
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 "StopContact"; }
32
33 AWS_CONNECT_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetContactId() const{ return m_contactId; }
41 inline bool ContactIdHasBeenSet() const { return m_contactIdHasBeenSet; }
42 inline void SetContactId(const Aws::String& value) { m_contactIdHasBeenSet = true; m_contactId = value; }
43 inline void SetContactId(Aws::String&& value) { m_contactIdHasBeenSet = true; m_contactId = std::move(value); }
44 inline void SetContactId(const char* value) { m_contactIdHasBeenSet = true; m_contactId.assign(value); }
45 inline StopContactRequest& WithContactId(const Aws::String& value) { SetContactId(value); return *this;}
46 inline StopContactRequest& WithContactId(Aws::String&& value) { SetContactId(std::move(value)); return *this;}
47 inline StopContactRequest& WithContactId(const char* value) { SetContactId(value); return *this;}
49
51
56 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
57 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
58 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
59 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
60 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
61 inline StopContactRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
62 inline StopContactRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
63 inline StopContactRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
65
67
71 inline const DisconnectReason& GetDisconnectReason() const{ return m_disconnectReason; }
72 inline bool DisconnectReasonHasBeenSet() const { return m_disconnectReasonHasBeenSet; }
73 inline void SetDisconnectReason(const DisconnectReason& value) { m_disconnectReasonHasBeenSet = true; m_disconnectReason = value; }
74 inline void SetDisconnectReason(DisconnectReason&& value) { m_disconnectReasonHasBeenSet = true; m_disconnectReason = std::move(value); }
75 inline StopContactRequest& WithDisconnectReason(const DisconnectReason& value) { SetDisconnectReason(value); return *this;}
76 inline StopContactRequest& WithDisconnectReason(DisconnectReason&& value) { SetDisconnectReason(std::move(value)); return *this;}
78 private:
79
80 Aws::String m_contactId;
81 bool m_contactIdHasBeenSet = false;
82
83 Aws::String m_instanceId;
84 bool m_instanceIdHasBeenSet = false;
85
86 DisconnectReason m_disconnectReason;
87 bool m_disconnectReasonHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace Connect
92} // namespace Aws
StopContactRequest & WithInstanceId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
StopContactRequest & WithContactId(const Aws::String &value)
StopContactRequest & WithInstanceId(Aws::String &&value)
StopContactRequest & WithContactId(Aws::String &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
StopContactRequest & WithDisconnectReason(DisconnectReason &&value)
const Aws::String & GetContactId() const
const DisconnectReason & GetDisconnectReason() const
void SetInstanceId(const Aws::String &value)
const Aws::String & GetInstanceId() const
void SetContactId(const Aws::String &value)
StopContactRequest & WithInstanceId(const char *value)
void SetDisconnectReason(DisconnectReason &&value)
StopContactRequest & WithContactId(const char *value)
StopContactRequest & WithDisconnectReason(const DisconnectReason &value)
void SetDisconnectReason(const DisconnectReason &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String