AWS SDK for C++

AWS SDK for C++ Version 1.11.757

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/qbusiness/QBusiness_EXPORTS.h>
11#include <aws/qbusiness/model/GroupStatusDetail.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 QBusiness {
25namespace Model {
27 public:
28 AWS_QBUSINESS_API GetGroupResult() = default;
31
33
36 inline const GroupStatusDetail& GetStatus() const { return m_status; }
37 template <typename StatusT = GroupStatusDetail>
38 void SetStatus(StatusT&& value) {
39 m_statusHasBeenSet = true;
40 m_status = std::forward<StatusT>(value);
41 }
42 template <typename StatusT = GroupStatusDetail>
44 SetStatus(std::forward<StatusT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::Vector<GroupStatusDetail>& GetStatusHistory() const { return m_statusHistory; }
54 template <typename StatusHistoryT = Aws::Vector<GroupStatusDetail>>
56 m_statusHistoryHasBeenSet = true;
57 m_statusHistory = std::forward<StatusHistoryT>(value);
58 }
59 template <typename StatusHistoryT = Aws::Vector<GroupStatusDetail>>
61 SetStatusHistory(std::forward<StatusHistoryT>(value));
62 return *this;
63 }
64 template <typename StatusHistoryT = GroupStatusDetail>
66 m_statusHistoryHasBeenSet = true;
67 m_statusHistory.emplace_back(std::forward<StatusHistoryT>(value));
68 return *this;
69 }
71
73
74 inline const Aws::String& GetRequestId() const { return m_requestId; }
75 template <typename RequestIdT = Aws::String>
76 void SetRequestId(RequestIdT&& value) {
77 m_requestIdHasBeenSet = true;
78 m_requestId = std::forward<RequestIdT>(value);
79 }
80 template <typename RequestIdT = Aws::String>
82 SetRequestId(std::forward<RequestIdT>(value));
83 return *this;
84 }
86 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
87
88 private:
89 GroupStatusDetail m_status;
90
91 Aws::Vector<GroupStatusDetail> m_statusHistory;
92
93 Aws::String m_requestId;
94 Aws::Http::HttpResponseCode m_HttpResponseCode;
95 bool m_statusHasBeenSet = false;
96 bool m_statusHistoryHasBeenSet = false;
97 bool m_requestIdHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace QBusiness
102} // namespace Aws
GetGroupResult & AddStatusHistory(StatusHistoryT &&value)
GetGroupResult & WithStatus(StatusT &&value)
AWS_QBUSINESS_API GetGroupResult()=default
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::String & GetRequestId() const
const Aws::Vector< GroupStatusDetail > & GetStatusHistory() const
const GroupStatusDetail & GetStatus() const
AWS_QBUSINESS_API GetGroupResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetGroupResult & WithRequestId(RequestIdT &&value)
void SetRequestId(RequestIdT &&value)
void SetStatusHistory(StatusHistoryT &&value)
GetGroupResult & WithStatusHistory(StatusHistoryT &&value)
AWS_QBUSINESS_API GetGroupResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue