AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ListGroupPoliciesResult.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 <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Xml
21{
22 class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace IAM
26{
27namespace Model
28{
37 {
38 public:
39 AWS_IAM_API ListGroupPoliciesResult() = default;
42
43
45
51 inline const Aws::Vector<Aws::String>& GetPolicyNames() const { return m_policyNames; }
52 template<typename PolicyNamesT = Aws::Vector<Aws::String>>
53 void SetPolicyNames(PolicyNamesT&& value) { m_policyNamesHasBeenSet = true; m_policyNames = std::forward<PolicyNamesT>(value); }
54 template<typename PolicyNamesT = Aws::Vector<Aws::String>>
55 ListGroupPoliciesResult& WithPolicyNames(PolicyNamesT&& value) { SetPolicyNames(std::forward<PolicyNamesT>(value)); return *this;}
56 template<typename PolicyNamesT = Aws::String>
57 ListGroupPoliciesResult& AddPolicyNames(PolicyNamesT&& value) { m_policyNamesHasBeenSet = true; m_policyNames.emplace_back(std::forward<PolicyNamesT>(value)); return *this; }
59
61
70 inline bool GetIsTruncated() const { return m_isTruncated; }
71 inline void SetIsTruncated(bool value) { m_isTruncatedHasBeenSet = true; m_isTruncated = value; }
72 inline ListGroupPoliciesResult& WithIsTruncated(bool value) { SetIsTruncated(value); return *this;}
74
76
81 inline const Aws::String& GetMarker() const { return m_marker; }
82 template<typename MarkerT = Aws::String>
83 void SetMarker(MarkerT&& value) { m_markerHasBeenSet = true; m_marker = std::forward<MarkerT>(value); }
84 template<typename MarkerT = Aws::String>
85 ListGroupPoliciesResult& WithMarker(MarkerT&& value) { SetMarker(std::forward<MarkerT>(value)); return *this;}
87
89
90 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
91 template<typename ResponseMetadataT = ResponseMetadata>
92 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
93 template<typename ResponseMetadataT = ResponseMetadata>
94 ListGroupPoliciesResult& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
96 private:
97
98 Aws::Vector<Aws::String> m_policyNames;
99 bool m_policyNamesHasBeenSet = false;
100
101 bool m_isTruncated{false};
102 bool m_isTruncatedHasBeenSet = false;
103
104 Aws::String m_marker;
105 bool m_markerHasBeenSet = false;
106
107 ResponseMetadata m_responseMetadata;
108 bool m_responseMetadataHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace IAM
113} // namespace Aws
void SetResponseMetadata(ResponseMetadataT &&value)
AWS_IAM_API ListGroupPoliciesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ListGroupPoliciesResult & WithIsTruncated(bool value)
ListGroupPoliciesResult & AddPolicyNames(PolicyNamesT &&value)
const ResponseMetadata & GetResponseMetadata() const
AWS_IAM_API ListGroupPoliciesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ListGroupPoliciesResult & WithPolicyNames(PolicyNamesT &&value)
ListGroupPoliciesResult & WithMarker(MarkerT &&value)
AWS_IAM_API ListGroupPoliciesResult()=default
ListGroupPoliciesResult & WithResponseMetadata(ResponseMetadataT &&value)
const Aws::Vector< Aws::String > & GetPolicyNames() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument