AWS SDK for C++  1.9.123
AWS SDK for C++
ListAttachedPoliciesResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
10 #include <aws/iot/model/Policy.h>
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 IoT
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<Policy>& GetPolicies() const{ return m_policies; }
41 
45  inline void SetPolicies(const Aws::Vector<Policy>& value) { m_policies = value; }
46 
50  inline void SetPolicies(Aws::Vector<Policy>&& value) { m_policies = std::move(value); }
51 
55  inline ListAttachedPoliciesResult& WithPolicies(const Aws::Vector<Policy>& value) { SetPolicies(value); return *this;}
56 
60  inline ListAttachedPoliciesResult& WithPolicies(Aws::Vector<Policy>&& value) { SetPolicies(std::move(value)); return *this;}
61 
65  inline ListAttachedPoliciesResult& AddPolicies(const Policy& value) { m_policies.push_back(value); return *this; }
66 
70  inline ListAttachedPoliciesResult& AddPolicies(Policy&& value) { m_policies.push_back(std::move(value)); return *this; }
71 
72 
77  inline const Aws::String& GetNextMarker() const{ return m_nextMarker; }
78 
83  inline void SetNextMarker(const Aws::String& value) { m_nextMarker = value; }
84 
89  inline void SetNextMarker(Aws::String&& value) { m_nextMarker = std::move(value); }
90 
95  inline void SetNextMarker(const char* value) { m_nextMarker.assign(value); }
96 
101  inline ListAttachedPoliciesResult& WithNextMarker(const Aws::String& value) { SetNextMarker(value); return *this;}
102 
107  inline ListAttachedPoliciesResult& WithNextMarker(Aws::String&& value) { SetNextMarker(std::move(value)); return *this;}
108 
113  inline ListAttachedPoliciesResult& WithNextMarker(const char* value) { SetNextMarker(value); return *this;}
114 
115  private:
116 
117  Aws::Vector<Policy> m_policies;
118 
119  Aws::String m_nextMarker;
120  };
121 
122 } // namespace Model
123 } // namespace IoT
124 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::IoT::Model::ListAttachedPoliciesResult::WithPolicies
ListAttachedPoliciesResult & WithPolicies(const Aws::Vector< Policy > &value)
Definition: ListAttachedPoliciesResult.h:55
Aws::IoT::Model::ListAttachedPoliciesResult::SetNextMarker
void SetNextMarker(const Aws::String &value)
Definition: ListAttachedPoliciesResult.h:83
Aws::IoT::Model::ListAttachedPoliciesResult::AddPolicies
ListAttachedPoliciesResult & AddPolicies(const Policy &value)
Definition: ListAttachedPoliciesResult.h:65
Aws::IoT::Model::ListAttachedPoliciesResult::WithNextMarker
ListAttachedPoliciesResult & WithNextMarker(Aws::String &&value)
Definition: ListAttachedPoliciesResult.h:107
Aws::IoT::Model::ListAttachedPoliciesResult::ListAttachedPoliciesResult
ListAttachedPoliciesResult()
Aws::IoT::Model::ListAttachedPoliciesResult::AddPolicies
ListAttachedPoliciesResult & AddPolicies(Policy &&value)
Definition: ListAttachedPoliciesResult.h:70
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::IoT::Model::ListAttachedPoliciesResult::WithNextMarker
ListAttachedPoliciesResult & WithNextMarker(const char *value)
Definition: ListAttachedPoliciesResult.h:113
Aws::IoT::Model::ListAttachedPoliciesResult::SetPolicies
void SetPolicies(const Aws::Vector< Policy > &value)
Definition: ListAttachedPoliciesResult.h:45
Aws::IoT::Model::ListAttachedPoliciesResult::ListAttachedPoliciesResult
ListAttachedPoliciesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Policy.h
Aws::IoT::Model::Policy
Definition: Policy.h:32
AWSString.h
Aws::IoT::Model::ListAttachedPoliciesResult::operator=
ListAttachedPoliciesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::IoT::Model::ListAttachedPoliciesResult::SetPolicies
void SetPolicies(Aws::Vector< Policy > &&value)
Definition: ListAttachedPoliciesResult.h:50
Aws::IoT::Model::ListAttachedPoliciesResult
Definition: ListAttachedPoliciesResult.h:30
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ListAttachedPoliciesResult::WithNextMarker
ListAttachedPoliciesResult & WithNextMarker(const Aws::String &value)
Definition: ListAttachedPoliciesResult.h:101
Aws::IoT::Model::ListAttachedPoliciesResult::GetNextMarker
const Aws::String & GetNextMarker() const
Definition: ListAttachedPoliciesResult.h:77
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::ListAttachedPoliciesResult::GetPolicies
const Aws::Vector< Policy > & GetPolicies() const
Definition: ListAttachedPoliciesResult.h:40
Aws::IoT::Model::ListAttachedPoliciesResult::WithPolicies
ListAttachedPoliciesResult & WithPolicies(Aws::Vector< Policy > &&value)
Definition: ListAttachedPoliciesResult.h:60
Aws::IoT::Model::ListAttachedPoliciesResult::SetNextMarker
void SetNextMarker(const char *value)
Definition: ListAttachedPoliciesResult.h:95
Aws::IoT::Model::ListAttachedPoliciesResult::SetNextMarker
void SetNextMarker(Aws::String &&value)
Definition: ListAttachedPoliciesResult.h:89
IoT_EXPORTS.h