AWS SDK for C++  1.9.108
AWS SDK for C++
ListResourcesResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace WorkMail
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<Resource>& GetResources() const{ return m_resources; }
41 
45  inline void SetResources(const Aws::Vector<Resource>& value) { m_resources = value; }
46 
50  inline void SetResources(Aws::Vector<Resource>&& value) { m_resources = std::move(value); }
51 
55  inline ListResourcesResult& WithResources(const Aws::Vector<Resource>& value) { SetResources(value); return *this;}
56 
60  inline ListResourcesResult& WithResources(Aws::Vector<Resource>&& value) { SetResources(std::move(value)); return *this;}
61 
65  inline ListResourcesResult& AddResources(const Resource& value) { m_resources.push_back(value); return *this; }
66 
70  inline ListResourcesResult& AddResources(Resource&& value) { m_resources.push_back(std::move(value)); return *this; }
71 
72 
78  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
79 
85  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
86 
92  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
93 
99  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
100 
106  inline ListResourcesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
107 
113  inline ListResourcesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
114 
120  inline ListResourcesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
121 
122  private:
123 
124  Aws::Vector<Resource> m_resources;
125 
126  Aws::String m_nextToken;
127  };
128 
129 } // namespace Model
130 } // namespace WorkMail
131 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::WorkMail::Model::Resource
Definition: Resource.h:35
Aws::WorkMail::Model::ListResourcesResult::GetResources
const Aws::Vector< Resource > & GetResources() const
Definition: ListResourcesResult.h:40
Aws::WorkMail::Model::ListResourcesResult::WithNextToken
ListResourcesResult & WithNextToken(Aws::String &&value)
Definition: ListResourcesResult.h:113
Aws::WorkMail::Model::ListResourcesResult::SetResources
void SetResources(Aws::Vector< Resource > &&value)
Definition: ListResourcesResult.h:50
Aws::WorkMail::Model::ListResourcesResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListResourcesResult.h:92
Aws::WorkMail::Model::ListResourcesResult::ListResourcesResult
ListResourcesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::WorkMail::Model::ListResourcesResult::WithResources
ListResourcesResult & WithResources(const Aws::Vector< Resource > &value)
Definition: ListResourcesResult.h:55
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
WorkMail_EXPORTS.h
AWSVector.h
Aws::WorkMail::Model::ListResourcesResult::WithNextToken
ListResourcesResult & WithNextToken(const Aws::String &value)
Definition: ListResourcesResult.h:106
Aws::WorkMail::Model::ListResourcesResult::AddResources
ListResourcesResult & AddResources(const Resource &value)
Definition: ListResourcesResult.h:65
Aws::WorkMail::Model::ListResourcesResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListResourcesResult.h:78
AWSString.h
Aws::WorkMail::Model::ListResourcesResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListResourcesResult.h:99
Aws::WorkMail::Model::ListResourcesResult::AddResources
ListResourcesResult & AddResources(Resource &&value)
Definition: ListResourcesResult.h:70
Aws
Definition: AccessManagementClient.h:15
Aws::WorkMail::Model::ListResourcesResult::WithResources
ListResourcesResult & WithResources(Aws::Vector< Resource > &&value)
Definition: ListResourcesResult.h:60
AWS_WORKMAIL_API
#define AWS_WORKMAIL_API
Definition: WorkMail_EXPORTS.h:28
Aws::WorkMail::Model::ListResourcesResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListResourcesResult.h:85
Aws::WorkMail::Model::ListResourcesResult
Definition: ListResourcesResult.h:30
Aws::WorkMail::Model::ListResourcesResult::ListResourcesResult
ListResourcesResult()
Aws::WorkMail::Model::ListResourcesResult::SetResources
void SetResources(const Aws::Vector< Resource > &value)
Definition: ListResourcesResult.h:45
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Resource.h
Aws::WorkMail::Model::ListResourcesResult::operator=
ListResourcesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::WorkMail::Model::ListResourcesResult::WithNextToken
ListResourcesResult & WithNextToken(const char *value)
Definition: ListResourcesResult.h:120