AWS SDK for C++  1.9.108
AWS SDK for C++
ListOriginationNumbersRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sns/SNS_EXPORTS.h>
8 #include <aws/sns/SNSRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace SNS
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "ListOriginationNumbers"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
43  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
44 
49  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
50 
55  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
56 
61  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
62 
67  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
68 
73  inline ListOriginationNumbersRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
74 
79  inline ListOriginationNumbersRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
80 
85  inline ListOriginationNumbersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
86 
87 
91  inline int GetMaxResults() const{ return m_maxResults; }
92 
96  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
97 
101  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
102 
106  inline ListOriginationNumbersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
107 
108  private:
109 
110  Aws::String m_nextToken;
111  bool m_nextTokenHasBeenSet;
112 
113  int m_maxResults;
114  bool m_maxResultsHasBeenSet;
115  };
116 
117 } // namespace Model
118 } // namespace SNS
119 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::SNS::Model::ListOriginationNumbersRequest::WithNextToken
ListOriginationNumbersRequest & WithNextToken(const Aws::String &value)
Definition: ListOriginationNumbersRequest.h:73
Aws::SNS::Model::ListOriginationNumbersRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListOriginationNumbersRequest.h:101
Aws::SNS::Model::ListOriginationNumbersRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListOriginationNumbersRequest.h:67
Aws::SNS::Model::ListOriginationNumbersRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::SNS::Model::ListOriginationNumbersRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListOriginationNumbersRequest.h:43
Aws::SNS::Model::ListOriginationNumbersRequest
Definition: ListOriginationNumbersRequest.h:22
Aws::SNS::Model::ListOriginationNumbersRequest::WithNextToken
ListOriginationNumbersRequest & WithNextToken(Aws::String &&value)
Definition: ListOriginationNumbersRequest.h:79
Aws::SNS::Model::ListOriginationNumbersRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListOriginationNumbersRequest.h:49
SNSRequest.h
Aws::SNS::SNSRequest
Definition: SNSRequest.h:17
Aws::SNS::Model::ListOriginationNumbersRequest::ListOriginationNumbersRequest
ListOriginationNumbersRequest()
Aws::SNS::Model::ListOriginationNumbersRequest::GetMaxResults
int GetMaxResults() const
Definition: ListOriginationNumbersRequest.h:91
AWSString.h
Aws::SNS::Model::ListOriginationNumbersRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListOriginationNumbersRequest.h:61
Aws::SNS::Model::ListOriginationNumbersRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CostExplorer::Model::SubscriberType::NOT_SET
@ NOT_SET
Aws::SNS::Model::ListOriginationNumbersRequest::WithNextToken
ListOriginationNumbersRequest & WithNextToken(const char *value)
Definition: ListOriginationNumbersRequest.h:85
AWS_SNS_API
#define AWS_SNS_API
Definition: SNS_EXPORTS.h:28
SNS_EXPORTS.h
Aws::SNS::Model::ListOriginationNumbersRequest::WithMaxResults
ListOriginationNumbersRequest & WithMaxResults(int value)
Definition: ListOriginationNumbersRequest.h:106
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SNS::Model::ListOriginationNumbersRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListOriginationNumbersRequest.h:96
Aws::SNS::Model::ListOriginationNumbersRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListOriginationNumbersRequest.h:30
Aws::SNS::Model::ListOriginationNumbersRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListOriginationNumbersRequest.h:55