AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
SearchWorkspaceAssociationsResult.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/WorkspaceAssociationSearchSummary.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.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 Connect {
25namespace Model {
27 public:
28 AWS_CONNECT_API SearchWorkspaceAssociationsResult() = default;
31
33
37 inline const Aws::String& GetNextToken() const { return m_nextToken; }
38 template <typename NextTokenT = Aws::String>
39 void SetNextToken(NextTokenT&& value) {
40 m_nextTokenHasBeenSet = true;
41 m_nextToken = std::forward<NextTokenT>(value);
42 }
43 template <typename NextTokenT = Aws::String>
45 SetNextToken(std::forward<NextTokenT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::Vector<WorkspaceAssociationSearchSummary>& GetWorkspaceAssociations() const { return m_workspaceAssociations; }
55 template <typename WorkspaceAssociationsT = Aws::Vector<WorkspaceAssociationSearchSummary>>
56 void SetWorkspaceAssociations(WorkspaceAssociationsT&& value) {
57 m_workspaceAssociationsHasBeenSet = true;
58 m_workspaceAssociations = std::forward<WorkspaceAssociationsT>(value);
59 }
60 template <typename WorkspaceAssociationsT = Aws::Vector<WorkspaceAssociationSearchSummary>>
62 SetWorkspaceAssociations(std::forward<WorkspaceAssociationsT>(value));
63 return *this;
64 }
65 template <typename WorkspaceAssociationsT = WorkspaceAssociationSearchSummary>
67 m_workspaceAssociationsHasBeenSet = true;
68 m_workspaceAssociations.emplace_back(std::forward<WorkspaceAssociationsT>(value));
69 return *this;
70 }
72
74
78 inline long long GetApproximateTotalCount() const { return m_approximateTotalCount; }
79 inline void SetApproximateTotalCount(long long value) {
80 m_approximateTotalCountHasBeenSet = true;
81 m_approximateTotalCount = value;
82 }
85 return *this;
86 }
88
90
91 inline const Aws::String& GetRequestId() const { return m_requestId; }
92 template <typename RequestIdT = Aws::String>
93 void SetRequestId(RequestIdT&& value) {
94 m_requestIdHasBeenSet = true;
95 m_requestId = std::forward<RequestIdT>(value);
96 }
97 template <typename RequestIdT = Aws::String>
99 SetRequestId(std::forward<RequestIdT>(value));
100 return *this;
101 }
103 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
104
105 private:
106 Aws::String m_nextToken;
107
109
110 long long m_approximateTotalCount{0};
111
112 Aws::String m_requestId;
113 Aws::Http::HttpResponseCode m_HttpResponseCode;
114 bool m_nextTokenHasBeenSet = false;
115 bool m_workspaceAssociationsHasBeenSet = false;
116 bool m_approximateTotalCountHasBeenSet = false;
117 bool m_requestIdHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace Connect
122} // namespace Aws
SearchWorkspaceAssociationsResult & WithNextToken(NextTokenT &&value)
SearchWorkspaceAssociationsResult & WithWorkspaceAssociations(WorkspaceAssociationsT &&value)
const Aws::Vector< WorkspaceAssociationSearchSummary > & GetWorkspaceAssociations() const
SearchWorkspaceAssociationsResult & WithRequestId(RequestIdT &&value)
SearchWorkspaceAssociationsResult & WithApproximateTotalCount(long long value)
AWS_CONNECT_API SearchWorkspaceAssociationsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
SearchWorkspaceAssociationsResult & AddWorkspaceAssociations(WorkspaceAssociationsT &&value)
AWS_CONNECT_API SearchWorkspaceAssociationsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue