AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListPolicyVersionsResult.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/PolicyVersion.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:
42
43
45
51 inline const Aws::Vector<PolicyVersion>& GetVersions() const{ return m_versions; }
52 inline void SetVersions(const Aws::Vector<PolicyVersion>& value) { m_versions = value; }
53 inline void SetVersions(Aws::Vector<PolicyVersion>&& value) { m_versions = std::move(value); }
54 inline ListPolicyVersionsResult& WithVersions(const Aws::Vector<PolicyVersion>& value) { SetVersions(value); return *this;}
55 inline ListPolicyVersionsResult& WithVersions(Aws::Vector<PolicyVersion>&& value) { SetVersions(std::move(value)); return *this;}
56 inline ListPolicyVersionsResult& AddVersions(const PolicyVersion& value) { m_versions.push_back(value); return *this; }
57 inline ListPolicyVersionsResult& AddVersions(PolicyVersion&& value) { m_versions.push_back(std::move(value)); return *this; }
59
61
70 inline bool GetIsTruncated() const{ return m_isTruncated; }
71 inline void SetIsTruncated(bool value) { m_isTruncated = value; }
72 inline ListPolicyVersionsResult& WithIsTruncated(bool value) { SetIsTruncated(value); return *this;}
74
76
81 inline const Aws::String& GetMarker() const{ return m_marker; }
82 inline void SetMarker(const Aws::String& value) { m_marker = value; }
83 inline void SetMarker(Aws::String&& value) { m_marker = std::move(value); }
84 inline void SetMarker(const char* value) { m_marker.assign(value); }
85 inline ListPolicyVersionsResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
86 inline ListPolicyVersionsResult& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
87 inline ListPolicyVersionsResult& WithMarker(const char* value) { SetMarker(value); return *this;}
89
91
92 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
93 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
94 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
96 inline ListPolicyVersionsResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
98 private:
99
101
102 bool m_isTruncated;
103
104 Aws::String m_marker;
105
106 ResponseMetadata m_responseMetadata;
107 };
108
109} // namespace Model
110} // namespace IAM
111} // namespace Aws
ListPolicyVersionsResult & AddVersions(const PolicyVersion &value)
const Aws::Vector< PolicyVersion > & GetVersions() const
const ResponseMetadata & GetResponseMetadata() const
ListPolicyVersionsResult & WithResponseMetadata(ResponseMetadata &&value)
ListPolicyVersionsResult & WithResponseMetadata(const ResponseMetadata &value)
ListPolicyVersionsResult & WithMarker(const Aws::String &value)
void SetVersions(const Aws::Vector< PolicyVersion > &value)
ListPolicyVersionsResult & WithVersions(const Aws::Vector< PolicyVersion > &value)
ListPolicyVersionsResult & WithIsTruncated(bool value)
AWS_IAM_API ListPolicyVersionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ListPolicyVersionsResult & WithMarker(const char *value)
ListPolicyVersionsResult & WithMarker(Aws::String &&value)
ListPolicyVersionsResult & WithVersions(Aws::Vector< PolicyVersion > &&value)
void SetResponseMetadata(ResponseMetadata &&value)
AWS_IAM_API ListPolicyVersionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ListPolicyVersionsResult & AddVersions(PolicyVersion &&value)
void SetResponseMetadata(const ResponseMetadata &value)
void SetVersions(Aws::Vector< PolicyVersion > &&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