AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListPhoneNumbersRequest.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/PhoneNumberType.h>
12#include <aws/connect/model/PhoneNumberCountryCode.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Http
18{
19 class URI;
20} //namespace Http
21namespace Connect
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_CONNECT_API ListPhoneNumbersRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "ListPhoneNumbers"; }
38
39 AWS_CONNECT_API Aws::String SerializePayload() const override;
40
41 AWS_CONNECT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
43
45
50 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
51 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
52 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
53 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
54 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
55 inline ListPhoneNumbersRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
56 inline ListPhoneNumbersRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
57 inline ListPhoneNumbersRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
59
61
69 inline const Aws::Vector<PhoneNumberType>& GetPhoneNumberTypes() const{ return m_phoneNumberTypes; }
70 inline bool PhoneNumberTypesHasBeenSet() const { return m_phoneNumberTypesHasBeenSet; }
71 inline void SetPhoneNumberTypes(const Aws::Vector<PhoneNumberType>& value) { m_phoneNumberTypesHasBeenSet = true; m_phoneNumberTypes = value; }
72 inline void SetPhoneNumberTypes(Aws::Vector<PhoneNumberType>&& value) { m_phoneNumberTypesHasBeenSet = true; m_phoneNumberTypes = std::move(value); }
75 inline ListPhoneNumbersRequest& AddPhoneNumberTypes(const PhoneNumberType& value) { m_phoneNumberTypesHasBeenSet = true; m_phoneNumberTypes.push_back(value); return *this; }
76 inline ListPhoneNumbersRequest& AddPhoneNumberTypes(PhoneNumberType&& value) { m_phoneNumberTypesHasBeenSet = true; m_phoneNumberTypes.push_back(std::move(value)); return *this; }
78
80
83 inline const Aws::Vector<PhoneNumberCountryCode>& GetPhoneNumberCountryCodes() const{ return m_phoneNumberCountryCodes; }
84 inline bool PhoneNumberCountryCodesHasBeenSet() const { return m_phoneNumberCountryCodesHasBeenSet; }
85 inline void SetPhoneNumberCountryCodes(const Aws::Vector<PhoneNumberCountryCode>& value) { m_phoneNumberCountryCodesHasBeenSet = true; m_phoneNumberCountryCodes = value; }
86 inline void SetPhoneNumberCountryCodes(Aws::Vector<PhoneNumberCountryCode>&& value) { m_phoneNumberCountryCodesHasBeenSet = true; m_phoneNumberCountryCodes = std::move(value); }
89 inline ListPhoneNumbersRequest& AddPhoneNumberCountryCodes(const PhoneNumberCountryCode& value) { m_phoneNumberCountryCodesHasBeenSet = true; m_phoneNumberCountryCodes.push_back(value); return *this; }
90 inline ListPhoneNumbersRequest& AddPhoneNumberCountryCodes(PhoneNumberCountryCode&& value) { m_phoneNumberCountryCodesHasBeenSet = true; m_phoneNumberCountryCodes.push_back(std::move(value)); return *this; }
92
94
98 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
99 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
100 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
101 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
102 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
103 inline ListPhoneNumbersRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
104 inline ListPhoneNumbersRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
105 inline ListPhoneNumbersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
107
109
113 inline int GetMaxResults() const{ return m_maxResults; }
114 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
115 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
116 inline ListPhoneNumbersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
118 private:
119
120 Aws::String m_instanceId;
121 bool m_instanceIdHasBeenSet = false;
122
123 Aws::Vector<PhoneNumberType> m_phoneNumberTypes;
124 bool m_phoneNumberTypesHasBeenSet = false;
125
126 Aws::Vector<PhoneNumberCountryCode> m_phoneNumberCountryCodes;
127 bool m_phoneNumberCountryCodesHasBeenSet = false;
128
129 Aws::String m_nextToken;
130 bool m_nextTokenHasBeenSet = false;
131
132 int m_maxResults;
133 bool m_maxResultsHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace Connect
138} // namespace Aws
ListPhoneNumbersRequest & WithNextToken(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< PhoneNumberCountryCode > & GetPhoneNumberCountryCodes() const
ListPhoneNumbersRequest & WithNextToken(const Aws::String &value)
void SetPhoneNumberCountryCodes(const Aws::Vector< PhoneNumberCountryCode > &value)
AWS_CONNECT_API Aws::String SerializePayload() const override
void SetPhoneNumberTypes(Aws::Vector< PhoneNumberType > &&value)
void SetPhoneNumberCountryCodes(Aws::Vector< PhoneNumberCountryCode > &&value)
ListPhoneNumbersRequest & WithInstanceId(const char *value)
ListPhoneNumbersRequest & WithMaxResults(int value)
AWS_CONNECT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListPhoneNumbersRequest & WithPhoneNumberTypes(const Aws::Vector< PhoneNumberType > &value)
ListPhoneNumbersRequest & AddPhoneNumberTypes(const PhoneNumberType &value)
const Aws::Vector< PhoneNumberType > & GetPhoneNumberTypes() const
ListPhoneNumbersRequest & AddPhoneNumberCountryCodes(const PhoneNumberCountryCode &value)
void SetPhoneNumberTypes(const Aws::Vector< PhoneNumberType > &value)
ListPhoneNumbersRequest & AddPhoneNumberTypes(PhoneNumberType &&value)
ListPhoneNumbersRequest & WithInstanceId(Aws::String &&value)
ListPhoneNumbersRequest & WithPhoneNumberTypes(Aws::Vector< PhoneNumberType > &&value)
ListPhoneNumbersRequest & WithInstanceId(const Aws::String &value)
ListPhoneNumbersRequest & WithPhoneNumberCountryCodes(Aws::Vector< PhoneNumberCountryCode > &&value)
ListPhoneNumbersRequest & AddPhoneNumberCountryCodes(PhoneNumberCountryCode &&value)
ListPhoneNumbersRequest & WithPhoneNumberCountryCodes(const Aws::Vector< PhoneNumberCountryCode > &value)
ListPhoneNumbersRequest & WithNextToken(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector