AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetGroupResult.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/qbusiness/model/GroupStatusDetail.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace QBusiness
26{
27namespace Model
28{
30 {
31 public:
32 AWS_QBUSINESS_API GetGroupResult() = default;
35
36
38
41 inline const GroupStatusDetail& GetStatus() const { return m_status; }
42 template<typename StatusT = GroupStatusDetail>
43 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
44 template<typename StatusT = GroupStatusDetail>
45 GetGroupResult& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
47
49
52 inline const Aws::Vector<GroupStatusDetail>& GetStatusHistory() const { return m_statusHistory; }
53 template<typename StatusHistoryT = Aws::Vector<GroupStatusDetail>>
54 void SetStatusHistory(StatusHistoryT&& value) { m_statusHistoryHasBeenSet = true; m_statusHistory = std::forward<StatusHistoryT>(value); }
55 template<typename StatusHistoryT = Aws::Vector<GroupStatusDetail>>
56 GetGroupResult& WithStatusHistory(StatusHistoryT&& value) { SetStatusHistory(std::forward<StatusHistoryT>(value)); return *this;}
57 template<typename StatusHistoryT = GroupStatusDetail>
58 GetGroupResult& AddStatusHistory(StatusHistoryT&& value) { m_statusHistoryHasBeenSet = true; m_statusHistory.emplace_back(std::forward<StatusHistoryT>(value)); return *this; }
60
62
63 inline const Aws::String& GetRequestId() const { return m_requestId; }
64 template<typename RequestIdT = Aws::String>
65 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
66 template<typename RequestIdT = Aws::String>
67 GetGroupResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
69 private:
70
71 GroupStatusDetail m_status;
72 bool m_statusHasBeenSet = false;
73
74 Aws::Vector<GroupStatusDetail> m_statusHistory;
75 bool m_statusHistoryHasBeenSet = false;
76
77 Aws::String m_requestId;
78 bool m_requestIdHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace QBusiness
83} // namespace Aws
GetGroupResult & AddStatusHistory(StatusHistoryT &&value)
GetGroupResult & WithStatus(StatusT &&value)
AWS_QBUSINESS_API GetGroupResult()=default
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