AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListContactReferencesRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/connect/model/ReferenceType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace Connect
21{
22namespace Model
23{
24
28 {
29 public:
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "ListContactReferences"; }
37
38 AWS_CONNECT_API Aws::String SerializePayload() const override;
39
40 AWS_CONNECT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
42
44
49 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
50 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
51 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
52 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
53 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
54 inline ListContactReferencesRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
55 inline ListContactReferencesRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
56 inline ListContactReferencesRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
58
60
63 inline const Aws::String& GetContactId() const{ return m_contactId; }
64 inline bool ContactIdHasBeenSet() const { return m_contactIdHasBeenSet; }
65 inline void SetContactId(const Aws::String& value) { m_contactIdHasBeenSet = true; m_contactId = value; }
66 inline void SetContactId(Aws::String&& value) { m_contactIdHasBeenSet = true; m_contactId = std::move(value); }
67 inline void SetContactId(const char* value) { m_contactIdHasBeenSet = true; m_contactId.assign(value); }
68 inline ListContactReferencesRequest& WithContactId(const Aws::String& value) { SetContactId(value); return *this;}
69 inline ListContactReferencesRequest& WithContactId(Aws::String&& value) { SetContactId(std::move(value)); return *this;}
70 inline ListContactReferencesRequest& WithContactId(const char* value) { SetContactId(value); return *this;}
72
74
77 inline const Aws::Vector<ReferenceType>& GetReferenceTypes() const{ return m_referenceTypes; }
78 inline bool ReferenceTypesHasBeenSet() const { return m_referenceTypesHasBeenSet; }
79 inline void SetReferenceTypes(const Aws::Vector<ReferenceType>& value) { m_referenceTypesHasBeenSet = true; m_referenceTypes = value; }
80 inline void SetReferenceTypes(Aws::Vector<ReferenceType>&& value) { m_referenceTypesHasBeenSet = true; m_referenceTypes = std::move(value); }
83 inline ListContactReferencesRequest& AddReferenceTypes(const ReferenceType& value) { m_referenceTypesHasBeenSet = true; m_referenceTypes.push_back(value); return *this; }
84 inline ListContactReferencesRequest& AddReferenceTypes(ReferenceType&& value) { m_referenceTypesHasBeenSet = true; m_referenceTypes.push_back(std::move(value)); return *this; }
86
88
94 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
95 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
96 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
97 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
98 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
99 inline ListContactReferencesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
100 inline ListContactReferencesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
101 inline ListContactReferencesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
103 private:
104
105 Aws::String m_instanceId;
106 bool m_instanceIdHasBeenSet = false;
107
108 Aws::String m_contactId;
109 bool m_contactIdHasBeenSet = false;
110
111 Aws::Vector<ReferenceType> m_referenceTypes;
112 bool m_referenceTypesHasBeenSet = false;
113
114 Aws::String m_nextToken;
115 bool m_nextTokenHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace Connect
120} // namespace Aws
const Aws::Vector< ReferenceType > & GetReferenceTypes() const
AWS_CONNECT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListContactReferencesRequest & WithInstanceId(const Aws::String &value)
AWS_CONNECT_API Aws::String SerializePayload() const override
ListContactReferencesRequest & WithReferenceTypes(Aws::Vector< ReferenceType > &&value)
ListContactReferencesRequest & WithNextToken(const Aws::String &value)
ListContactReferencesRequest & AddReferenceTypes(const ReferenceType &value)
ListContactReferencesRequest & WithContactId(const char *value)
ListContactReferencesRequest & WithContactId(Aws::String &&value)
void SetReferenceTypes(const Aws::Vector< ReferenceType > &value)
virtual const char * GetServiceRequestName() const override
ListContactReferencesRequest & WithNextToken(Aws::String &&value)
ListContactReferencesRequest & WithInstanceId(const char *value)
ListContactReferencesRequest & WithReferenceTypes(const Aws::Vector< ReferenceType > &value)
ListContactReferencesRequest & AddReferenceTypes(ReferenceType &&value)
ListContactReferencesRequest & WithContactId(const Aws::String &value)
void SetReferenceTypes(Aws::Vector< ReferenceType > &&value)
ListContactReferencesRequest & WithInstanceId(Aws::String &&value)
ListContactReferencesRequest & WithNextToken(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector