AWS SDK for C++

AWS SDK for C++ Version 1.11.780

Loading...
Searching...
No Matches
GetGroupResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/iam/IAM_EXPORTS.h>
11#include <aws/iam/model/Group.h>
12#include <aws/iam/model/ResponseMetadata.h>
13#include <aws/iam/model/User.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Xml {
23class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace IAM {
27namespace Model {
36 public:
37 AWS_IAM_API GetGroupResult() = default;
40
42
45 inline const Group& GetGroup() const { return m_group; }
46 template <typename GroupT = Group>
47 void SetGroup(GroupT&& value) {
48 m_groupHasBeenSet = true;
49 m_group = std::forward<GroupT>(value);
50 }
51 template <typename GroupT = Group>
52 GetGroupResult& WithGroup(GroupT&& value) {
53 SetGroup(std::forward<GroupT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::Vector<User>& GetUsers() const { return m_users; }
63 template <typename UsersT = Aws::Vector<User>>
64 void SetUsers(UsersT&& value) {
65 m_usersHasBeenSet = true;
66 m_users = std::forward<UsersT>(value);
67 }
68 template <typename UsersT = Aws::Vector<User>>
69 GetGroupResult& WithUsers(UsersT&& value) {
70 SetUsers(std::forward<UsersT>(value));
71 return *this;
72 }
73 template <typename UsersT = User>
74 GetGroupResult& AddUsers(UsersT&& value) {
75 m_usersHasBeenSet = true;
76 m_users.emplace_back(std::forward<UsersT>(value));
77 return *this;
78 }
80
82
91 inline bool GetIsTruncated() const { return m_isTruncated; }
92 inline void SetIsTruncated(bool value) {
93 m_isTruncatedHasBeenSet = true;
94 m_isTruncated = value;
95 }
96 inline GetGroupResult& WithIsTruncated(bool value) {
97 SetIsTruncated(value);
98 return *this;
99 }
101
103
108 inline const Aws::String& GetMarker() const { return m_marker; }
109 template <typename MarkerT = Aws::String>
110 void SetMarker(MarkerT&& value) {
111 m_markerHasBeenSet = true;
112 m_marker = std::forward<MarkerT>(value);
113 }
114 template <typename MarkerT = Aws::String>
115 GetGroupResult& WithMarker(MarkerT&& value) {
116 SetMarker(std::forward<MarkerT>(value));
117 return *this;
118 }
120
122
123 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
124 template <typename ResponseMetadataT = ResponseMetadata>
125 void SetResponseMetadata(ResponseMetadataT&& value) {
126 m_responseMetadataHasBeenSet = true;
127 m_responseMetadata = std::forward<ResponseMetadataT>(value);
128 }
129 template <typename ResponseMetadataT = ResponseMetadata>
130 GetGroupResult& WithResponseMetadata(ResponseMetadataT&& value) {
131 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
132 return *this;
133 }
135 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
136
137 private:
138 Group m_group;
139
140 Aws::Vector<User> m_users;
141
142 bool m_isTruncated{false};
143
144 Aws::String m_marker;
145
146 ResponseMetadata m_responseMetadata;
147 Aws::Http::HttpResponseCode m_HttpResponseCode;
148 bool m_groupHasBeenSet = false;
149 bool m_usersHasBeenSet = false;
150 bool m_isTruncatedHasBeenSet = false;
151 bool m_markerHasBeenSet = false;
152 bool m_responseMetadataHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace IAM
157} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetGroupResult & WithMarker(MarkerT &&value)
const Aws::Vector< User > & GetUsers() const
GetGroupResult & WithIsTruncated(bool value)
GetGroupResult & WithUsers(UsersT &&value)
AWS_IAM_API GetGroupResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetGroup(GroupT &&value)
const ResponseMetadata & GetResponseMetadata() const
GetGroupResult & WithResponseMetadata(ResponseMetadataT &&value)
GetGroupResult & AddUsers(UsersT &&value)
const Group & GetGroup() const
const Aws::String & GetMarker() const
void SetResponseMetadata(ResponseMetadataT &&value)
GetGroupResult & WithGroup(GroupT &&value)
void SetMarker(MarkerT &&value)
void SetUsers(UsersT &&value)
AWS_IAM_API GetGroupResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_IAM_API GetGroupResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument