AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ListPhoneNumbersRequest.h
1
6#pragma once
7#include <aws/chime/Chime_EXPORTS.h>
8#include <aws/chime/ChimeRequest.h>
9#include <aws/chime/model/PhoneNumberStatus.h>
10#include <aws/chime/model/PhoneNumberProductType.h>
11#include <aws/chime/model/PhoneNumberAssociationName.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Http
18{
19 class URI;
20} //namespace Http
21namespace Chime
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_CHIME_API ListPhoneNumbersRequest() = default;
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_CHIME_API Aws::String SerializePayload() const override;
40
41 AWS_CHIME_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
43
45
48 inline PhoneNumberStatus GetStatus() const { return m_status; }
49 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
50 inline void SetStatus(PhoneNumberStatus value) { m_statusHasBeenSet = true; m_status = value; }
51 inline ListPhoneNumbersRequest& WithStatus(PhoneNumberStatus value) { SetStatus(value); return *this;}
53
55
58 inline PhoneNumberProductType GetProductType() const { return m_productType; }
59 inline bool ProductTypeHasBeenSet() const { return m_productTypeHasBeenSet; }
60 inline void SetProductType(PhoneNumberProductType value) { m_productTypeHasBeenSet = true; m_productType = value; }
63
65
68 inline PhoneNumberAssociationName GetFilterName() const { return m_filterName; }
69 inline bool FilterNameHasBeenSet() const { return m_filterNameHasBeenSet; }
70 inline void SetFilterName(PhoneNumberAssociationName value) { m_filterNameHasBeenSet = true; m_filterName = value; }
73
75
78 inline const Aws::String& GetFilterValue() const { return m_filterValue; }
79 inline bool FilterValueHasBeenSet() const { return m_filterValueHasBeenSet; }
80 template<typename FilterValueT = Aws::String>
81 void SetFilterValue(FilterValueT&& value) { m_filterValueHasBeenSet = true; m_filterValue = std::forward<FilterValueT>(value); }
82 template<typename FilterValueT = Aws::String>
83 ListPhoneNumbersRequest& WithFilterValue(FilterValueT&& value) { SetFilterValue(std::forward<FilterValueT>(value)); return *this;}
85
87
90 inline int GetMaxResults() const { return m_maxResults; }
91 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
92 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
93 inline ListPhoneNumbersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
95
97
100 inline const Aws::String& GetNextToken() const { return m_nextToken; }
101 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
102 template<typename NextTokenT = Aws::String>
103 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
104 template<typename NextTokenT = Aws::String>
105 ListPhoneNumbersRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
107 private:
108
110 bool m_statusHasBeenSet = false;
111
113 bool m_productTypeHasBeenSet = false;
114
116 bool m_filterNameHasBeenSet = false;
117
118 Aws::String m_filterValue;
119 bool m_filterValueHasBeenSet = false;
120
121 int m_maxResults{0};
122 bool m_maxResultsHasBeenSet = false;
123
124 Aws::String m_nextToken;
125 bool m_nextTokenHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace Chime
130} // namespace Aws
ListPhoneNumbersRequest & WithNextToken(NextTokenT &&value)
AWS_CHIME_API ListPhoneNumbersRequest()=default
ListPhoneNumbersRequest & WithProductType(PhoneNumberProductType value)
AWS_CHIME_API Aws::String SerializePayload() const override
ListPhoneNumbersRequest & WithStatus(PhoneNumberStatus value)
ListPhoneNumbersRequest & WithMaxResults(int value)
ListPhoneNumbersRequest & WithFilterName(PhoneNumberAssociationName value)
AWS_CHIME_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListPhoneNumbersRequest & WithFilterValue(FilterValueT &&value)
PhoneNumberAssociationName GetFilterName() const
void SetFilterName(PhoneNumberAssociationName value)
virtual const char * GetServiceRequestName() const override
void SetProductType(PhoneNumberProductType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String