AWS SDK for C++  1.9.15
AWS SDK for C++
ListPrincipalThingsResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
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 IoT
25 {
26 namespace Model
27 {
35  {
36  public:
40 
41 
45  inline const Aws::Vector<Aws::String>& GetThings() const{ return m_things; }
46 
50  inline void SetThings(const Aws::Vector<Aws::String>& value) { m_things = value; }
51 
55  inline void SetThings(Aws::Vector<Aws::String>&& value) { m_things = std::move(value); }
56 
60  inline ListPrincipalThingsResult& WithThings(const Aws::Vector<Aws::String>& value) { SetThings(value); return *this;}
61 
65  inline ListPrincipalThingsResult& WithThings(Aws::Vector<Aws::String>&& value) { SetThings(std::move(value)); return *this;}
66 
70  inline ListPrincipalThingsResult& AddThings(const Aws::String& value) { m_things.push_back(value); return *this; }
71 
75  inline ListPrincipalThingsResult& AddThings(Aws::String&& value) { m_things.push_back(std::move(value)); return *this; }
76 
80  inline ListPrincipalThingsResult& AddThings(const char* value) { m_things.push_back(value); return *this; }
81 
82 
87  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
88 
93  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
94 
99  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
100 
105  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
106 
111  inline ListPrincipalThingsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
112 
117  inline ListPrincipalThingsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
118 
123  inline ListPrincipalThingsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
124 
125  private:
126 
127  Aws::Vector<Aws::String> m_things;
128 
129  Aws::String m_nextToken;
130  };
131 
132 } // namespace Model
133 } // namespace IoT
134 } // namespace Aws
Aws::IoT::Model::ListPrincipalThingsResult::WithNextToken
ListPrincipalThingsResult & WithNextToken(Aws::String &&value)
Definition: ListPrincipalThingsResult.h:117
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::IoT::Model::ListPrincipalThingsResult::SetThings
void SetThings(const Aws::Vector< Aws::String > &value)
Definition: ListPrincipalThingsResult.h:50
Aws::IoT::Model::ListPrincipalThingsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListPrincipalThingsResult.h:87
Aws::IoT::Model::ListPrincipalThingsResult::AddThings
ListPrincipalThingsResult & AddThings(const Aws::String &value)
Definition: ListPrincipalThingsResult.h:70
Aws::IoT::Model::ListPrincipalThingsResult::ListPrincipalThingsResult
ListPrincipalThingsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::IoT::Model::ListPrincipalThingsResult::WithThings
ListPrincipalThingsResult & WithThings(const Aws::Vector< Aws::String > &value)
Definition: ListPrincipalThingsResult.h:60
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::IoT::Model::ListPrincipalThingsResult::SetThings
void SetThings(Aws::Vector< Aws::String > &&value)
Definition: ListPrincipalThingsResult.h:55
Aws::IoT::Model::ListPrincipalThingsResult::GetThings
const Aws::Vector< Aws::String > & GetThings() const
Definition: ListPrincipalThingsResult.h:45
Aws::IoT::Model::ListPrincipalThingsResult::AddThings
ListPrincipalThingsResult & AddThings(const char *value)
Definition: ListPrincipalThingsResult.h:80
AWSString.h
Aws::IoT::Model::ListPrincipalThingsResult
Definition: ListPrincipalThingsResult.h:35
Aws::IoT::Model::ListPrincipalThingsResult::WithNextToken
ListPrincipalThingsResult & WithNextToken(const Aws::String &value)
Definition: ListPrincipalThingsResult.h:111
Aws::IoT::Model::ListPrincipalThingsResult::AddThings
ListPrincipalThingsResult & AddThings(Aws::String &&value)
Definition: ListPrincipalThingsResult.h:75
Aws::IoT::Model::ListPrincipalThingsResult::WithThings
ListPrincipalThingsResult & WithThings(Aws::Vector< Aws::String > &&value)
Definition: ListPrincipalThingsResult.h:65
Aws
Definition: AccessManagementClient.h:15
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::ListPrincipalThingsResult::ListPrincipalThingsResult
ListPrincipalThingsResult()
Aws::IoT::Model::ListPrincipalThingsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListPrincipalThingsResult.h:93
Aws::IoT::Model::ListPrincipalThingsResult::WithNextToken
ListPrincipalThingsResult & WithNextToken(const char *value)
Definition: ListPrincipalThingsResult.h:123
Aws::IoT::Model::ListPrincipalThingsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListPrincipalThingsResult.h:105
Aws::IoT::Model::ListPrincipalThingsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListPrincipalThingsResult.h:99
IoT_EXPORTS.h
Aws::IoT::Model::ListPrincipalThingsResult::operator=
ListPrincipalThingsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)