AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeUserGroupsResult.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/elasticache/ElastiCache_EXPORTS.h>
10#include <aws/elasticache/model/ResponseMetadata.h>
11#include <aws/elasticache/model/UserGroup.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 ElastiCache {
25namespace Model {
27 public:
28 AWS_ELASTICACHE_API DescribeUserGroupsResult() = default;
31
33
36 inline const Aws::Vector<UserGroup>& GetUserGroups() const { return m_userGroups; }
37 template <typename UserGroupsT = Aws::Vector<UserGroup>>
38 void SetUserGroups(UserGroupsT&& value) {
39 m_userGroupsHasBeenSet = true;
40 m_userGroups = std::forward<UserGroupsT>(value);
41 }
42 template <typename UserGroupsT = Aws::Vector<UserGroup>>
44 SetUserGroups(std::forward<UserGroupsT>(value));
45 return *this;
46 }
47 template <typename UserGroupsT = UserGroup>
49 m_userGroupsHasBeenSet = true;
50 m_userGroups.emplace_back(std::forward<UserGroupsT>(value));
51 return *this;
52 }
54
56
62 inline const Aws::String& GetMarker() const { return m_marker; }
63 template <typename MarkerT = Aws::String>
64 void SetMarker(MarkerT&& value) {
65 m_markerHasBeenSet = true;
66 m_marker = std::forward<MarkerT>(value);
67 }
68 template <typename MarkerT = Aws::String>
70 SetMarker(std::forward<MarkerT>(value));
71 return *this;
72 }
74
76
77 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
78 template <typename ResponseMetadataT = ResponseMetadata>
79 void SetResponseMetadata(ResponseMetadataT&& value) {
80 m_responseMetadataHasBeenSet = true;
81 m_responseMetadata = std::forward<ResponseMetadataT>(value);
82 }
83 template <typename ResponseMetadataT = ResponseMetadata>
84 DescribeUserGroupsResult& WithResponseMetadata(ResponseMetadataT&& value) {
85 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
86 return *this;
87 }
89 private:
90 Aws::Vector<UserGroup> m_userGroups;
91
92 Aws::String m_marker;
93
94 ResponseMetadata m_responseMetadata;
95 bool m_userGroupsHasBeenSet = false;
96 bool m_markerHasBeenSet = false;
97 bool m_responseMetadataHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace ElastiCache
102} // namespace Aws
DescribeUserGroupsResult & AddUserGroups(UserGroupsT &&value)
AWS_ELASTICACHE_API DescribeUserGroupsResult()=default
DescribeUserGroupsResult & WithUserGroups(UserGroupsT &&value)
AWS_ELASTICACHE_API DescribeUserGroupsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const Aws::Vector< UserGroup > & GetUserGroups() const
DescribeUserGroupsResult & WithMarker(MarkerT &&value)
DescribeUserGroupsResult & WithResponseMetadata(ResponseMetadataT &&value)
AWS_ELASTICACHE_API DescribeUserGroupsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument