AWS SDK for C++  1.9.160
AWS SDK for C++
ListApprovedOriginsResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace Connect
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
39  inline const Aws::Vector<Aws::String>& GetOrigins() const{ return m_origins; }
40 
44  inline void SetOrigins(const Aws::Vector<Aws::String>& value) { m_origins = value; }
45 
49  inline void SetOrigins(Aws::Vector<Aws::String>&& value) { m_origins = std::move(value); }
50 
54  inline ListApprovedOriginsResult& WithOrigins(const Aws::Vector<Aws::String>& value) { SetOrigins(value); return *this;}
55 
59  inline ListApprovedOriginsResult& WithOrigins(Aws::Vector<Aws::String>&& value) { SetOrigins(std::move(value)); return *this;}
60 
64  inline ListApprovedOriginsResult& AddOrigins(const Aws::String& value) { m_origins.push_back(value); return *this; }
65 
69  inline ListApprovedOriginsResult& AddOrigins(Aws::String&& value) { m_origins.push_back(std::move(value)); return *this; }
70 
74  inline ListApprovedOriginsResult& AddOrigins(const char* value) { m_origins.push_back(value); return *this; }
75 
76 
81  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
82 
87  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
88 
93  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
94 
99  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
100 
105  inline ListApprovedOriginsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
106 
111  inline ListApprovedOriginsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
112 
117  inline ListApprovedOriginsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
118 
119  private:
120 
121  Aws::Vector<Aws::String> m_origins;
122 
123  Aws::String m_nextToken;
124  };
125 
126 } // namespace Model
127 } // namespace Connect
128 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Connect::Model::ListApprovedOriginsResult::AddOrigins
ListApprovedOriginsResult & AddOrigins(Aws::String &&value)
Definition: ListApprovedOriginsResult.h:69
Aws::Connect::Model::ListApprovedOriginsResult::ListApprovedOriginsResult
ListApprovedOriginsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Connect::Model::ListApprovedOriginsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListApprovedOriginsResult.h:81
Aws::Connect::Model::ListApprovedOriginsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListApprovedOriginsResult.h:93
Aws::Connect::Model::ListApprovedOriginsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListApprovedOriginsResult.h:87
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Connect::Model::ListApprovedOriginsResult::WithOrigins
ListApprovedOriginsResult & WithOrigins(Aws::Vector< Aws::String > &&value)
Definition: ListApprovedOriginsResult.h:59
AWSVector.h
Aws::Connect::Model::ListApprovedOriginsResult::ListApprovedOriginsResult
ListApprovedOriginsResult()
Aws::Connect::Model::ListApprovedOriginsResult::AddOrigins
ListApprovedOriginsResult & AddOrigins(const char *value)
Definition: ListApprovedOriginsResult.h:74
Aws::Connect::Model::ListApprovedOriginsResult::WithNextToken
ListApprovedOriginsResult & WithNextToken(const Aws::String &value)
Definition: ListApprovedOriginsResult.h:105
Aws::Connect::Model::ListApprovedOriginsResult::GetOrigins
const Aws::Vector< Aws::String > & GetOrigins() const
Definition: ListApprovedOriginsResult.h:39
AWSString.h
Aws::Connect::Model::ListApprovedOriginsResult::SetOrigins
void SetOrigins(const Aws::Vector< Aws::String > &value)
Definition: ListApprovedOriginsResult.h:44
Aws::Connect::Model::ListApprovedOriginsResult::WithOrigins
ListApprovedOriginsResult & WithOrigins(const Aws::Vector< Aws::String > &value)
Definition: ListApprovedOriginsResult.h:54
Aws::Connect::Model::ListApprovedOriginsResult::AddOrigins
ListApprovedOriginsResult & AddOrigins(const Aws::String &value)
Definition: ListApprovedOriginsResult.h:64
Aws::Connect::Model::ListApprovedOriginsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListApprovedOriginsResult.h:99
Aws::Connect::Model::ListApprovedOriginsResult::SetOrigins
void SetOrigins(Aws::Vector< Aws::String > &&value)
Definition: ListApprovedOriginsResult.h:49
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Connect::Model::ListApprovedOriginsResult::WithNextToken
ListApprovedOriginsResult & WithNextToken(const char *value)
Definition: ListApprovedOriginsResult.h:117
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Aws::Connect::Model::ListApprovedOriginsResult::operator=
ListApprovedOriginsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Connect_EXPORTS.h
Aws::Connect::Model::ListApprovedOriginsResult
Definition: ListApprovedOriginsResult.h:29
Aws::Connect::Model::ListApprovedOriginsResult::WithNextToken
ListApprovedOriginsResult & WithNextToken(Aws::String &&value)
Definition: ListApprovedOriginsResult.h:111