AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ListGroupsResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iam/IAM_EXPORTS.h>
10#include <aws/iam/model/Group.h>
11#include <aws/iam/model/ResponseMetadata.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Xml {
21class XmlDocument;
22} // namespace Xml
23} // namespace Utils
24namespace IAM {
25namespace Model {
34 public:
35 AWS_IAM_API ListGroupsResult() = default;
38
40
43 inline const Aws::Vector<Group>& GetGroups() const { return m_groups; }
44 template <typename GroupsT = Aws::Vector<Group>>
45 void SetGroups(GroupsT&& value) {
46 m_groupsHasBeenSet = true;
47 m_groups = std::forward<GroupsT>(value);
48 }
49 template <typename GroupsT = Aws::Vector<Group>>
50 ListGroupsResult& WithGroups(GroupsT&& value) {
51 SetGroups(std::forward<GroupsT>(value));
52 return *this;
53 }
54 template <typename GroupsT = Group>
55 ListGroupsResult& AddGroups(GroupsT&& value) {
56 m_groupsHasBeenSet = true;
57 m_groups.emplace_back(std::forward<GroupsT>(value));
58 return *this;
59 }
61
63
72 inline bool GetIsTruncated() const { return m_isTruncated; }
73 inline void SetIsTruncated(bool value) {
74 m_isTruncatedHasBeenSet = true;
75 m_isTruncated = value;
76 }
77 inline ListGroupsResult& WithIsTruncated(bool value) {
78 SetIsTruncated(value);
79 return *this;
80 }
82
84
89 inline const Aws::String& GetMarker() const { return m_marker; }
90 template <typename MarkerT = Aws::String>
91 void SetMarker(MarkerT&& value) {
92 m_markerHasBeenSet = true;
93 m_marker = std::forward<MarkerT>(value);
94 }
95 template <typename MarkerT = Aws::String>
96 ListGroupsResult& WithMarker(MarkerT&& value) {
97 SetMarker(std::forward<MarkerT>(value));
98 return *this;
99 }
101
103
104 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
105 template <typename ResponseMetadataT = ResponseMetadata>
106 void SetResponseMetadata(ResponseMetadataT&& value) {
107 m_responseMetadataHasBeenSet = true;
108 m_responseMetadata = std::forward<ResponseMetadataT>(value);
109 }
110 template <typename ResponseMetadataT = ResponseMetadata>
111 ListGroupsResult& WithResponseMetadata(ResponseMetadataT&& value) {
112 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
113 return *this;
114 }
116 private:
117 Aws::Vector<Group> m_groups;
118
119 bool m_isTruncated{false};
120
121 Aws::String m_marker;
122
123 ResponseMetadata m_responseMetadata;
124 bool m_groupsHasBeenSet = false;
125 bool m_isTruncatedHasBeenSet = false;
126 bool m_markerHasBeenSet = false;
127 bool m_responseMetadataHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace IAM
132} // namespace Aws
const ResponseMetadata & GetResponseMetadata() const
ListGroupsResult & AddGroups(GroupsT &&value)
const Aws::String & GetMarker() const
ListGroupsResult & WithResponseMetadata(ResponseMetadataT &&value)
ListGroupsResult & WithGroups(GroupsT &&value)
ListGroupsResult & WithMarker(MarkerT &&value)
AWS_IAM_API ListGroupsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetResponseMetadata(ResponseMetadataT &&value)
ListGroupsResult & WithIsTruncated(bool value)
AWS_IAM_API ListGroupsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_IAM_API ListGroupsResult()=default
const Aws::Vector< Group > & GetGroups() 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