AWS SDK for C++  1.9.104
AWS SDK for C++
ListPhoneNumbersOptedOutResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sns/SNS_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Xml
21 {
22  class XmlDocument;
23 } // namespace Xml
24 } // namespace Utils
25 namespace SNS
26 {
27 namespace Model
28 {
36  {
37  public:
41 
42 
47  inline const Aws::Vector<Aws::String>& GetPhoneNumbers() const{ return m_phoneNumbers; }
48 
53  inline void SetPhoneNumbers(const Aws::Vector<Aws::String>& value) { m_phoneNumbers = value; }
54 
59  inline void SetPhoneNumbers(Aws::Vector<Aws::String>&& value) { m_phoneNumbers = std::move(value); }
60 
65  inline ListPhoneNumbersOptedOutResult& WithPhoneNumbers(const Aws::Vector<Aws::String>& value) { SetPhoneNumbers(value); return *this;}
66 
71  inline ListPhoneNumbersOptedOutResult& WithPhoneNumbers(Aws::Vector<Aws::String>&& value) { SetPhoneNumbers(std::move(value)); return *this;}
72 
77  inline ListPhoneNumbersOptedOutResult& AddPhoneNumbers(const Aws::String& value) { m_phoneNumbers.push_back(value); return *this; }
78 
83  inline ListPhoneNumbersOptedOutResult& AddPhoneNumbers(Aws::String&& value) { m_phoneNumbers.push_back(std::move(value)); return *this; }
84 
89  inline ListPhoneNumbersOptedOutResult& AddPhoneNumbers(const char* value) { m_phoneNumbers.push_back(value); return *this; }
90 
91 
97  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
98 
104  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
105 
111  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
112 
118  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
119 
125  inline ListPhoneNumbersOptedOutResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
126 
132  inline ListPhoneNumbersOptedOutResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
133 
139  inline ListPhoneNumbersOptedOutResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
140 
141 
142 
143  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
144 
145 
146  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
147 
148 
149  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
150 
151 
152  inline ListPhoneNumbersOptedOutResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
153 
154 
155  inline ListPhoneNumbersOptedOutResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
156 
157  private:
158 
159  Aws::Vector<Aws::String> m_phoneNumbers;
160 
161  Aws::String m_nextToken;
162 
163  ResponseMetadata m_responseMetadata;
164  };
165 
166 } // namespace Model
167 } // namespace SNS
168 } // namespace Aws
Aws::SNS::Model::ListPhoneNumbersOptedOutResult::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: ListPhoneNumbersOptedOutResult.h:149
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::SNS::Model::ListPhoneNumbersOptedOutResult::ListPhoneNumbersOptedOutResult
ListPhoneNumbersOptedOutResult()
Aws::SNS::Model::ListPhoneNumbersOptedOutResult::WithNextToken
ListPhoneNumbersOptedOutResult & WithNextToken(Aws::String &&value)
Definition: ListPhoneNumbersOptedOutResult.h:132
Aws::SNS::Model::ListPhoneNumbersOptedOutResult::operator=
ListPhoneNumbersOptedOutResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::SNS::Model::ListPhoneNumbersOptedOutResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListPhoneNumbersOptedOutResult.h:97
Aws::SNS::Model::ListPhoneNumbersOptedOutResult::AddPhoneNumbers
ListPhoneNumbersOptedOutResult & AddPhoneNumbers(const Aws::String &value)
Definition: ListPhoneNumbersOptedOutResult.h:77
Aws::SNS::Model::ListPhoneNumbersOptedOutResult::WithNextToken
ListPhoneNumbersOptedOutResult & WithNextToken(const char *value)
Definition: ListPhoneNumbersOptedOutResult.h:139
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::SNS::Model::ListPhoneNumbersOptedOutResult::ListPhoneNumbersOptedOutResult
ListPhoneNumbersOptedOutResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::SNS::Model::ListPhoneNumbersOptedOutResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListPhoneNumbersOptedOutResult.h:111
Aws::SNS::Model::ListPhoneNumbersOptedOutResult::WithNextToken
ListPhoneNumbersOptedOutResult & WithNextToken(const Aws::String &value)
Definition: ListPhoneNumbersOptedOutResult.h:125
ResponseMetadata.h
AWSString.h
Aws::SNS::Model::ListPhoneNumbersOptedOutResult::GetPhoneNumbers
const Aws::Vector< Aws::String > & GetPhoneNumbers() const
Definition: ListPhoneNumbersOptedOutResult.h:47
Aws::SNS::Model::ListPhoneNumbersOptedOutResult::SetPhoneNumbers
void SetPhoneNumbers(const Aws::Vector< Aws::String > &value)
Definition: ListPhoneNumbersOptedOutResult.h:53
Aws::CostExplorer::Model::SubscriberType::NOT_SET
@ NOT_SET
Aws::SNS::Model::ListPhoneNumbersOptedOutResult
Definition: ListPhoneNumbersOptedOutResult.h:36
AWS_SNS_API
#define AWS_SNS_API
Definition: SNS_EXPORTS.h:28
Aws::SNS::Model::ListPhoneNumbersOptedOutResult::AddPhoneNumbers
ListPhoneNumbersOptedOutResult & AddPhoneNumbers(Aws::String &&value)
Definition: ListPhoneNumbersOptedOutResult.h:83
Aws::SNS::Model::ListPhoneNumbersOptedOutResult::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: ListPhoneNumbersOptedOutResult.h:143
Aws::SNS::Model::ListPhoneNumbersOptedOutResult::WithResponseMetadata
ListPhoneNumbersOptedOutResult & WithResponseMetadata(ResponseMetadata &&value)
Definition: ListPhoneNumbersOptedOutResult.h:155
SNS_EXPORTS.h
Aws::SNS::Model::ListPhoneNumbersOptedOutResult::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: ListPhoneNumbersOptedOutResult.h:146
Aws::SNS::Model::ListPhoneNumbersOptedOutResult::SetPhoneNumbers
void SetPhoneNumbers(Aws::Vector< Aws::String > &&value)
Definition: ListPhoneNumbersOptedOutResult.h:59
Aws
Definition: AccessManagementClient.h:15
Aws::SNS::Model::ListPhoneNumbersOptedOutResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListPhoneNumbersOptedOutResult.h:104
Aws::SNS::Model::ListPhoneNumbersOptedOutResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListPhoneNumbersOptedOutResult.h:118
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SNS::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::SNS::Model::ListPhoneNumbersOptedOutResult::WithResponseMetadata
ListPhoneNumbersOptedOutResult & WithResponseMetadata(const ResponseMetadata &value)
Definition: ListPhoneNumbersOptedOutResult.h:152
Aws::SNS::Model::ListPhoneNumbersOptedOutResult::WithPhoneNumbers
ListPhoneNumbersOptedOutResult & WithPhoneNumbers(Aws::Vector< Aws::String > &&value)
Definition: ListPhoneNumbersOptedOutResult.h:71
Aws::SNS::Model::ListPhoneNumbersOptedOutResult::WithPhoneNumbers
ListPhoneNumbersOptedOutResult & WithPhoneNumbers(const Aws::Vector< Aws::String > &value)
Definition: ListPhoneNumbersOptedOutResult.h:65
Aws::SNS::Model::ListPhoneNumbersOptedOutResult::AddPhoneNumbers
ListPhoneNumbersOptedOutResult & AddPhoneNumbers(const char *value)
Definition: ListPhoneNumbersOptedOutResult.h:89