AWS SDK for C++  1.9.156
AWS SDK for C++
ListOriginationNumbersResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sns/SNS_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlDocument;
24 } // namespace Xml
25 } // namespace Utils
26 namespace SNS
27 {
28 namespace Model
29 {
31  {
32  public:
36 
37 
43  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
44 
50  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
51 
57  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
58 
64  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
65 
71  inline ListOriginationNumbersResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
72 
78  inline ListOriginationNumbersResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
79 
85  inline ListOriginationNumbersResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
86 
87 
91  inline const Aws::Vector<PhoneNumberInformation>& GetPhoneNumbers() const{ return m_phoneNumbers; }
92 
96  inline void SetPhoneNumbers(const Aws::Vector<PhoneNumberInformation>& value) { m_phoneNumbers = value; }
97 
101  inline void SetPhoneNumbers(Aws::Vector<PhoneNumberInformation>&& value) { m_phoneNumbers = std::move(value); }
102 
106  inline ListOriginationNumbersResult& WithPhoneNumbers(const Aws::Vector<PhoneNumberInformation>& value) { SetPhoneNumbers(value); return *this;}
107 
111  inline ListOriginationNumbersResult& WithPhoneNumbers(Aws::Vector<PhoneNumberInformation>&& value) { SetPhoneNumbers(std::move(value)); return *this;}
112 
116  inline ListOriginationNumbersResult& AddPhoneNumbers(const PhoneNumberInformation& value) { m_phoneNumbers.push_back(value); return *this; }
117 
121  inline ListOriginationNumbersResult& AddPhoneNumbers(PhoneNumberInformation&& value) { m_phoneNumbers.push_back(std::move(value)); return *this; }
122 
123 
124 
125  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
126 
127 
128  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
129 
130 
131  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
132 
133 
134  inline ListOriginationNumbersResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
135 
136 
137  inline ListOriginationNumbersResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
138 
139  private:
140 
141  Aws::String m_nextToken;
142 
144 
145  ResponseMetadata m_responseMetadata;
146  };
147 
148 } // namespace Model
149 } // namespace SNS
150 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::SNS::Model::ListOriginationNumbersResult::ListOriginationNumbersResult
ListOriginationNumbersResult()
Aws::SNS::Model::ListOriginationNumbersResult::WithPhoneNumbers
ListOriginationNumbersResult & WithPhoneNumbers(const Aws::Vector< PhoneNumberInformation > &value)
Definition: ListOriginationNumbersResult.h:106
Aws::SNS::Model::ListOriginationNumbersResult::WithPhoneNumbers
ListOriginationNumbersResult & WithPhoneNumbers(Aws::Vector< PhoneNumberInformation > &&value)
Definition: ListOriginationNumbersResult.h:111
Aws::SNS::Model::ListOriginationNumbersResult::SetPhoneNumbers
void SetPhoneNumbers(Aws::Vector< PhoneNumberInformation > &&value)
Definition: ListOriginationNumbersResult.h:101
Aws::SNS::Model::ListOriginationNumbersResult::SetPhoneNumbers
void SetPhoneNumbers(const Aws::Vector< PhoneNumberInformation > &value)
Definition: ListOriginationNumbersResult.h:96
Aws::SNS::Model::ListOriginationNumbersResult::GetPhoneNumbers
const Aws::Vector< PhoneNumberInformation > & GetPhoneNumbers() const
Definition: ListOriginationNumbersResult.h:91
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SNS::Model::ListOriginationNumbersResult::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: ListOriginationNumbersResult.h:125
Aws::SNS::Model::ListOriginationNumbersResult::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: ListOriginationNumbersResult.h:131
AWSVector.h
Aws::SNS::Model::ListOriginationNumbersResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListOriginationNumbersResult.h:43
Aws::SNS::Model::ListOriginationNumbersResult
Definition: ListOriginationNumbersResult.h:31
Aws::SNS::Model::ListOriginationNumbersResult::WithNextToken
ListOriginationNumbersResult & WithNextToken(Aws::String &&value)
Definition: ListOriginationNumbersResult.h:78
Aws::SNS::Model::ListOriginationNumbersResult::WithNextToken
ListOriginationNumbersResult & WithNextToken(const char *value)
Definition: ListOriginationNumbersResult.h:85
ResponseMetadata.h
Aws::SNS::Model::ListOriginationNumbersResult::AddPhoneNumbers
ListOriginationNumbersResult & AddPhoneNumbers(PhoneNumberInformation &&value)
Definition: ListOriginationNumbersResult.h:121
AWSString.h
Aws::SNS::Model::ListOriginationNumbersResult::WithResponseMetadata
ListOriginationNumbersResult & WithResponseMetadata(ResponseMetadata &&value)
Definition: ListOriginationNumbersResult.h:137
Aws::CostExplorer::Model::SubscriberType::NOT_SET
@ NOT_SET
PhoneNumberInformation.h
AWS_SNS_API
#define AWS_SNS_API
Definition: SNS_EXPORTS.h:28
Aws::SNS::Model::ListOriginationNumbersResult::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: ListOriginationNumbersResult.h:128
SNS_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::SNS::Model::ListOriginationNumbersResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListOriginationNumbersResult.h:57
Aws::SNS::Model::PhoneNumberInformation
Definition: PhoneNumberInformation.h:36
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SNS::Model::ListOriginationNumbersResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListOriginationNumbersResult.h:50
Aws::SNS::Model::ListOriginationNumbersResult::ListOriginationNumbersResult
ListOriginationNumbersResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::SNS::Model::ListOriginationNumbersResult::AddPhoneNumbers
ListOriginationNumbersResult & AddPhoneNumbers(const PhoneNumberInformation &value)
Definition: ListOriginationNumbersResult.h:116
Aws::SNS::Model::ListOriginationNumbersResult::operator=
ListOriginationNumbersResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::SNS::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::SNS::Model::ListOriginationNumbersResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListOriginationNumbersResult.h:64
Aws::SNS::Model::ListOriginationNumbersResult::WithNextToken
ListOriginationNumbersResult & WithNextToken(const Aws::String &value)
Definition: ListOriginationNumbersResult.h:71
Aws::SNS::Model::ListOriginationNumbersResult::WithResponseMetadata
ListOriginationNumbersResult & WithResponseMetadata(const ResponseMetadata &value)
Definition: ListOriginationNumbersResult.h:134