AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
DescribeGroupResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/workmail/WorkMail_EXPORTS.h>
11#include <aws/workmail/model/EntityState.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace WorkMail {
25namespace Model {
27 public:
28 AWS_WORKMAIL_API DescribeGroupResult() = default;
31
33
36 inline const Aws::String& GetGroupId() const { return m_groupId; }
37 template <typename GroupIdT = Aws::String>
38 void SetGroupId(GroupIdT&& value) {
39 m_groupIdHasBeenSet = true;
40 m_groupId = std::forward<GroupIdT>(value);
41 }
42 template <typename GroupIdT = Aws::String>
43 DescribeGroupResult& WithGroupId(GroupIdT&& value) {
44 SetGroupId(std::forward<GroupIdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetName() const { return m_name; }
54 template <typename NameT = Aws::String>
55 void SetName(NameT&& value) {
56 m_nameHasBeenSet = true;
57 m_name = std::forward<NameT>(value);
58 }
59 template <typename NameT = Aws::String>
60 DescribeGroupResult& WithName(NameT&& value) {
61 SetName(std::forward<NameT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetEmail() const { return m_email; }
71 template <typename EmailT = Aws::String>
72 void SetEmail(EmailT&& value) {
73 m_emailHasBeenSet = true;
74 m_email = std::forward<EmailT>(value);
75 }
76 template <typename EmailT = Aws::String>
77 DescribeGroupResult& WithEmail(EmailT&& value) {
78 SetEmail(std::forward<EmailT>(value));
79 return *this;
80 }
82
84
88 inline EntityState GetState() const { return m_state; }
89 inline void SetState(EntityState value) {
90 m_stateHasBeenSet = true;
91 m_state = value;
92 }
94 SetState(value);
95 return *this;
96 }
98
100
104 inline const Aws::Utils::DateTime& GetEnabledDate() const { return m_enabledDate; }
105 template <typename EnabledDateT = Aws::Utils::DateTime>
106 void SetEnabledDate(EnabledDateT&& value) {
107 m_enabledDateHasBeenSet = true;
108 m_enabledDate = std::forward<EnabledDateT>(value);
109 }
110 template <typename EnabledDateT = Aws::Utils::DateTime>
111 DescribeGroupResult& WithEnabledDate(EnabledDateT&& value) {
112 SetEnabledDate(std::forward<EnabledDateT>(value));
113 return *this;
114 }
116
118
122 inline const Aws::Utils::DateTime& GetDisabledDate() const { return m_disabledDate; }
123 template <typename DisabledDateT = Aws::Utils::DateTime>
124 void SetDisabledDate(DisabledDateT&& value) {
125 m_disabledDateHasBeenSet = true;
126 m_disabledDate = std::forward<DisabledDateT>(value);
127 }
128 template <typename DisabledDateT = Aws::Utils::DateTime>
129 DescribeGroupResult& WithDisabledDate(DisabledDateT&& value) {
130 SetDisabledDate(std::forward<DisabledDateT>(value));
131 return *this;
132 }
134
136
140 inline bool GetHiddenFromGlobalAddressList() const { return m_hiddenFromGlobalAddressList; }
141 inline void SetHiddenFromGlobalAddressList(bool value) {
142 m_hiddenFromGlobalAddressListHasBeenSet = true;
143 m_hiddenFromGlobalAddressList = value;
144 }
147 return *this;
148 }
150
152
153 inline const Aws::String& GetRequestId() const { return m_requestId; }
154 template <typename RequestIdT = Aws::String>
155 void SetRequestId(RequestIdT&& value) {
156 m_requestIdHasBeenSet = true;
157 m_requestId = std::forward<RequestIdT>(value);
158 }
159 template <typename RequestIdT = Aws::String>
160 DescribeGroupResult& WithRequestId(RequestIdT&& value) {
161 SetRequestId(std::forward<RequestIdT>(value));
162 return *this;
163 }
165 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
166
167 private:
168 Aws::String m_groupId;
169
170 Aws::String m_name;
171
172 Aws::String m_email;
173
175
176 Aws::Utils::DateTime m_enabledDate{};
177
178 Aws::Utils::DateTime m_disabledDate{};
179
180 bool m_hiddenFromGlobalAddressList{false};
181
182 Aws::String m_requestId;
183 Aws::Http::HttpResponseCode m_HttpResponseCode;
184 bool m_groupIdHasBeenSet = false;
185 bool m_nameHasBeenSet = false;
186 bool m_emailHasBeenSet = false;
187 bool m_stateHasBeenSet = false;
188 bool m_enabledDateHasBeenSet = false;
189 bool m_disabledDateHasBeenSet = false;
190 bool m_hiddenFromGlobalAddressListHasBeenSet = false;
191 bool m_requestIdHasBeenSet = false;
192};
193
194} // namespace Model
195} // namespace WorkMail
196} // namespace Aws
DescribeGroupResult & WithEnabledDate(EnabledDateT &&value)
DescribeGroupResult & WithRequestId(RequestIdT &&value)
DescribeGroupResult & WithState(EntityState value)
DescribeGroupResult & WithEmail(EmailT &&value)
AWS_WORKMAIL_API DescribeGroupResult()=default
DescribeGroupResult & WithName(NameT &&value)
AWS_WORKMAIL_API DescribeGroupResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeGroupResult & WithHiddenFromGlobalAddressList(bool value)
AWS_WORKMAIL_API DescribeGroupResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeGroupResult & WithDisabledDate(DisabledDateT &&value)
const Aws::Utils::DateTime & GetEnabledDate() const
DescribeGroupResult & WithGroupId(GroupIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Utils::DateTime & GetDisabledDate() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue