AWS SDK for C++  1.9.125
AWS SDK for C++
ListThingPrincipalsResult.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>& GetPrincipals() const{ return m_principals; }
46 
50  inline void SetPrincipals(const Aws::Vector<Aws::String>& value) { m_principals = value; }
51 
55  inline void SetPrincipals(Aws::Vector<Aws::String>&& value) { m_principals = std::move(value); }
56 
60  inline ListThingPrincipalsResult& WithPrincipals(const Aws::Vector<Aws::String>& value) { SetPrincipals(value); return *this;}
61 
65  inline ListThingPrincipalsResult& WithPrincipals(Aws::Vector<Aws::String>&& value) { SetPrincipals(std::move(value)); return *this;}
66 
70  inline ListThingPrincipalsResult& AddPrincipals(const Aws::String& value) { m_principals.push_back(value); return *this; }
71 
75  inline ListThingPrincipalsResult& AddPrincipals(Aws::String&& value) { m_principals.push_back(std::move(value)); return *this; }
76 
80  inline ListThingPrincipalsResult& AddPrincipals(const char* value) { m_principals.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 ListThingPrincipalsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
112 
117  inline ListThingPrincipalsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
118 
123  inline ListThingPrincipalsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
124 
125  private:
126 
127  Aws::Vector<Aws::String> m_principals;
128 
129  Aws::String m_nextToken;
130  };
131 
132 } // namespace Model
133 } // namespace IoT
134 } // namespace Aws
Aws::IoT::Model::ListThingPrincipalsResult::WithNextToken
ListThingPrincipalsResult & WithNextToken(Aws::String &&value)
Definition: ListThingPrincipalsResult.h:117
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::IoT::Model::ListThingPrincipalsResult::AddPrincipals
ListThingPrincipalsResult & AddPrincipals(const char *value)
Definition: ListThingPrincipalsResult.h:80
Aws::IoT::Model::ListThingPrincipalsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListThingPrincipalsResult.h:93
Aws::IoT::Model::ListThingPrincipalsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListThingPrincipalsResult.h:87
Aws::IoT::Model::ListThingPrincipalsResult::AddPrincipals
ListThingPrincipalsResult & AddPrincipals(const Aws::String &value)
Definition: ListThingPrincipalsResult.h:70
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::ListThingPrincipalsResult::SetPrincipals
void SetPrincipals(const Aws::Vector< Aws::String > &value)
Definition: ListThingPrincipalsResult.h:50
Aws::IoT::Model::ListThingPrincipalsResult::WithNextToken
ListThingPrincipalsResult & WithNextToken(const char *value)
Definition: ListThingPrincipalsResult.h:123
AWSVector.h
Aws::IoT::Model::ListThingPrincipalsResult::ListThingPrincipalsResult
ListThingPrincipalsResult()
Aws::IoT::Model::ListThingPrincipalsResult::SetPrincipals
void SetPrincipals(Aws::Vector< Aws::String > &&value)
Definition: ListThingPrincipalsResult.h:55
Aws::IoT::Model::ListThingPrincipalsResult::ListThingPrincipalsResult
ListThingPrincipalsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::IoT::Model::ListThingPrincipalsResult
Definition: ListThingPrincipalsResult.h:35
Aws::IoT::Model::ListThingPrincipalsResult::operator=
ListThingPrincipalsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::IoT::Model::ListThingPrincipalsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListThingPrincipalsResult.h:105
AWSString.h
Aws::IoT::Model::ListThingPrincipalsResult::WithNextToken
ListThingPrincipalsResult & WithNextToken(const Aws::String &value)
Definition: ListThingPrincipalsResult.h:111
Aws::IoT::Model::ListThingPrincipalsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListThingPrincipalsResult.h:99
Aws::IoT::Model::ListThingPrincipalsResult::GetPrincipals
const Aws::Vector< Aws::String > & GetPrincipals() const
Definition: ListThingPrincipalsResult.h:45
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ListThingPrincipalsResult::AddPrincipals
ListThingPrincipalsResult & AddPrincipals(Aws::String &&value)
Definition: ListThingPrincipalsResult.h:75
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::ListThingPrincipalsResult::WithPrincipals
ListThingPrincipalsResult & WithPrincipals(const Aws::Vector< Aws::String > &value)
Definition: ListThingPrincipalsResult.h:60
IoT_EXPORTS.h
Aws::IoT::Model::ListThingPrincipalsResult::WithPrincipals
ListThingPrincipalsResult & WithPrincipals(Aws::Vector< Aws::String > &&value)
Definition: ListThingPrincipalsResult.h:65