AWS SDK for C++  1.9.125
AWS SDK for C++
ListTargetsForPolicyResult.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 {
29  {
30  public:
34 
35 
39  inline const Aws::Vector<Aws::String>& GetTargets() const{ return m_targets; }
40 
44  inline void SetTargets(const Aws::Vector<Aws::String>& value) { m_targets = value; }
45 
49  inline void SetTargets(Aws::Vector<Aws::String>&& value) { m_targets = std::move(value); }
50 
54  inline ListTargetsForPolicyResult& WithTargets(const Aws::Vector<Aws::String>& value) { SetTargets(value); return *this;}
55 
59  inline ListTargetsForPolicyResult& WithTargets(Aws::Vector<Aws::String>&& value) { SetTargets(std::move(value)); return *this;}
60 
64  inline ListTargetsForPolicyResult& AddTargets(const Aws::String& value) { m_targets.push_back(value); return *this; }
65 
69  inline ListTargetsForPolicyResult& AddTargets(Aws::String&& value) { m_targets.push_back(std::move(value)); return *this; }
70 
74  inline ListTargetsForPolicyResult& AddTargets(const char* value) { m_targets.push_back(value); return *this; }
75 
76 
80  inline const Aws::String& GetNextMarker() const{ return m_nextMarker; }
81 
85  inline void SetNextMarker(const Aws::String& value) { m_nextMarker = value; }
86 
90  inline void SetNextMarker(Aws::String&& value) { m_nextMarker = std::move(value); }
91 
95  inline void SetNextMarker(const char* value) { m_nextMarker.assign(value); }
96 
100  inline ListTargetsForPolicyResult& WithNextMarker(const Aws::String& value) { SetNextMarker(value); return *this;}
101 
105  inline ListTargetsForPolicyResult& WithNextMarker(Aws::String&& value) { SetNextMarker(std::move(value)); return *this;}
106 
110  inline ListTargetsForPolicyResult& WithNextMarker(const char* value) { SetNextMarker(value); return *this;}
111 
112  private:
113 
114  Aws::Vector<Aws::String> m_targets;
115 
116  Aws::String m_nextMarker;
117  };
118 
119 } // namespace Model
120 } // namespace IoT
121 } // namespace Aws
Aws::IoT::Model::ListTargetsForPolicyResult::AddTargets
ListTargetsForPolicyResult & AddTargets(const char *value)
Definition: ListTargetsForPolicyResult.h:74
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::IoT::Model::ListTargetsForPolicyResult::ListTargetsForPolicyResult
ListTargetsForPolicyResult()
Aws::IoT::Model::ListTargetsForPolicyResult::WithNextMarker
ListTargetsForPolicyResult & WithNextMarker(Aws::String &&value)
Definition: ListTargetsForPolicyResult.h:105
Aws::IoT::Model::ListTargetsForPolicyResult::WithNextMarker
ListTargetsForPolicyResult & WithNextMarker(const char *value)
Definition: ListTargetsForPolicyResult.h:110
Aws::IoT::Model::ListTargetsForPolicyResult::SetTargets
void SetTargets(const Aws::Vector< Aws::String > &value)
Definition: ListTargetsForPolicyResult.h:44
Aws::IoT::Model::ListTargetsForPolicyResult
Definition: ListTargetsForPolicyResult.h:29
Aws::IoT::Model::ListTargetsForPolicyResult::GetTargets
const Aws::Vector< Aws::String > & GetTargets() const
Definition: ListTargetsForPolicyResult.h:39
Aws::IoT::Model::ListTargetsForPolicyResult::GetNextMarker
const Aws::String & GetNextMarker() const
Definition: ListTargetsForPolicyResult.h:80
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::ListTargetsForPolicyResult::SetNextMarker
void SetNextMarker(const Aws::String &value)
Definition: ListTargetsForPolicyResult.h:85
Aws::IoT::Model::ListTargetsForPolicyResult::operator=
ListTargetsForPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSVector.h
Aws::IoT::Model::ListTargetsForPolicyResult::SetNextMarker
void SetNextMarker(const char *value)
Definition: ListTargetsForPolicyResult.h:95
Aws::IoT::Model::ListTargetsForPolicyResult::WithNextMarker
ListTargetsForPolicyResult & WithNextMarker(const Aws::String &value)
Definition: ListTargetsForPolicyResult.h:100
Aws::IoT::Model::ListTargetsForPolicyResult::WithTargets
ListTargetsForPolicyResult & WithTargets(Aws::Vector< Aws::String > &&value)
Definition: ListTargetsForPolicyResult.h:59
AWSString.h
Aws::IoT::Model::ListTargetsForPolicyResult::ListTargetsForPolicyResult
ListTargetsForPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ListTargetsForPolicyResult::SetNextMarker
void SetNextMarker(Aws::String &&value)
Definition: ListTargetsForPolicyResult.h:90
Aws::IoT::Model::ListTargetsForPolicyResult::SetTargets
void SetTargets(Aws::Vector< Aws::String > &&value)
Definition: ListTargetsForPolicyResult.h:49
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::ListTargetsForPolicyResult::AddTargets
ListTargetsForPolicyResult & AddTargets(Aws::String &&value)
Definition: ListTargetsForPolicyResult.h:69
Aws::IoT::Model::ListTargetsForPolicyResult::WithTargets
ListTargetsForPolicyResult & WithTargets(const Aws::Vector< Aws::String > &value)
Definition: ListTargetsForPolicyResult.h:54
Aws::IoT::Model::ListTargetsForPolicyResult::AddTargets
ListTargetsForPolicyResult & AddTargets(const Aws::String &value)
Definition: ListTargetsForPolicyResult.h:64
IoT_EXPORTS.h