AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListPoliciesResult.h
1
6#pragma once
7#include <aws/iam/IAM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iam/model/ResponseMetadata.h>
11#include <aws/iam/model/Policy.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Xml
22{
23 class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace IAM
27{
28namespace Model
29{
37 {
38 public:
39 AWS_IAM_API ListPoliciesResult();
42
43
45
48 inline const Aws::Vector<Policy>& GetPolicies() const{ return m_policies; }
49 inline void SetPolicies(const Aws::Vector<Policy>& value) { m_policies = value; }
50 inline void SetPolicies(Aws::Vector<Policy>&& value) { m_policies = std::move(value); }
51 inline ListPoliciesResult& WithPolicies(const Aws::Vector<Policy>& value) { SetPolicies(value); return *this;}
52 inline ListPoliciesResult& WithPolicies(Aws::Vector<Policy>&& value) { SetPolicies(std::move(value)); return *this;}
53 inline ListPoliciesResult& AddPolicies(const Policy& value) { m_policies.push_back(value); return *this; }
54 inline ListPoliciesResult& AddPolicies(Policy&& value) { m_policies.push_back(std::move(value)); return *this; }
56
58
67 inline bool GetIsTruncated() const{ return m_isTruncated; }
68 inline void SetIsTruncated(bool value) { m_isTruncated = value; }
69 inline ListPoliciesResult& WithIsTruncated(bool value) { SetIsTruncated(value); return *this;}
71
73
78 inline const Aws::String& GetMarker() const{ return m_marker; }
79 inline void SetMarker(const Aws::String& value) { m_marker = value; }
80 inline void SetMarker(Aws::String&& value) { m_marker = std::move(value); }
81 inline void SetMarker(const char* value) { m_marker.assign(value); }
82 inline ListPoliciesResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
83 inline ListPoliciesResult& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
84 inline ListPoliciesResult& WithMarker(const char* value) { SetMarker(value); return *this;}
86
88
89 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
90 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
91 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
92 inline ListPoliciesResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
93 inline ListPoliciesResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
95 private:
96
97 Aws::Vector<Policy> m_policies;
98
99 bool m_isTruncated;
100
101 Aws::String m_marker;
102
103 ResponseMetadata m_responseMetadata;
104 };
105
106} // namespace Model
107} // namespace IAM
108} // namespace Aws
const Aws::Vector< Policy > & GetPolicies() const
ListPoliciesResult & WithResponseMetadata(const ResponseMetadata &value)
void SetPolicies(const Aws::Vector< Policy > &value)
ListPoliciesResult & WithMarker(const char *value)
ListPoliciesResult & WithPolicies(Aws::Vector< Policy > &&value)
const Aws::String & GetMarker() const
ListPoliciesResult & WithResponseMetadata(ResponseMetadata &&value)
const ResponseMetadata & GetResponseMetadata() const
AWS_IAM_API ListPoliciesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ListPoliciesResult & WithMarker(const Aws::String &value)
ListPoliciesResult & WithIsTruncated(bool value)
ListPoliciesResult & WithMarker(Aws::String &&value)
void SetResponseMetadata(ResponseMetadata &&value)
ListPoliciesResult & AddPolicies(Policy &&value)
void SetResponseMetadata(const ResponseMetadata &value)
void SetMarker(Aws::String &&value)
void SetMarker(const Aws::String &value)
ListPoliciesResult & WithPolicies(const Aws::Vector< Policy > &value)
AWS_IAM_API ListPoliciesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetPolicies(Aws::Vector< Policy > &&value)
ListPoliciesResult & AddPolicies(const Policy &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument