AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
ListApplicationsResult.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/opensearch/OpenSearchService_EXPORTS.h>
11#include <aws/opensearch/model/ApplicationSummary.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 OpenSearchService {
25namespace Model {
27 public:
28 AWS_OPENSEARCHSERVICE_API ListApplicationsResult() = default;
31
33
37 inline const Aws::Vector<ApplicationSummary>& GetApplicationSummaries() const { return m_applicationSummaries; }
38 template <typename ApplicationSummariesT = Aws::Vector<ApplicationSummary>>
39 void SetApplicationSummaries(ApplicationSummariesT&& value) {
40 m_applicationSummariesHasBeenSet = true;
41 m_applicationSummaries = std::forward<ApplicationSummariesT>(value);
42 }
43 template <typename ApplicationSummariesT = Aws::Vector<ApplicationSummary>>
44 ListApplicationsResult& WithApplicationSummaries(ApplicationSummariesT&& value) {
45 SetApplicationSummaries(std::forward<ApplicationSummariesT>(value));
46 return *this;
47 }
48 template <typename ApplicationSummariesT = ApplicationSummary>
49 ListApplicationsResult& AddApplicationSummaries(ApplicationSummariesT&& value) {
50 m_applicationSummariesHasBeenSet = true;
51 m_applicationSummaries.emplace_back(std::forward<ApplicationSummariesT>(value));
52 return *this;
53 }
55
57
58 inline const Aws::String& GetNextToken() const { return m_nextToken; }
59 template <typename NextTokenT = Aws::String>
60 void SetNextToken(NextTokenT&& value) {
61 m_nextTokenHasBeenSet = true;
62 m_nextToken = std::forward<NextTokenT>(value);
63 }
64 template <typename NextTokenT = Aws::String>
66 SetNextToken(std::forward<NextTokenT>(value));
67 return *this;
68 }
70
72
73 inline const Aws::String& GetRequestId() const { return m_requestId; }
74 template <typename RequestIdT = Aws::String>
75 void SetRequestId(RequestIdT&& value) {
76 m_requestIdHasBeenSet = true;
77 m_requestId = std::forward<RequestIdT>(value);
78 }
79 template <typename RequestIdT = Aws::String>
81 SetRequestId(std::forward<RequestIdT>(value));
82 return *this;
83 }
85 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
86
87 private:
88 Aws::Vector<ApplicationSummary> m_applicationSummaries;
89
90 Aws::String m_nextToken;
91
92 Aws::String m_requestId;
93 Aws::Http::HttpResponseCode m_HttpResponseCode;
94 bool m_applicationSummariesHasBeenSet = false;
95 bool m_nextTokenHasBeenSet = false;
96 bool m_requestIdHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace OpenSearchService
101} // namespace Aws
AWS_OPENSEARCHSERVICE_API ListApplicationsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetApplicationSummaries(ApplicationSummariesT &&value)
AWS_OPENSEARCHSERVICE_API ListApplicationsResult()=default
ListApplicationsResult & AddApplicationSummaries(ApplicationSummariesT &&value)
ListApplicationsResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< ApplicationSummary > & GetApplicationSummaries() const
AWS_OPENSEARCHSERVICE_API ListApplicationsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListApplicationsResult & WithApplicationSummaries(ApplicationSummariesT &&value)
ListApplicationsResult & WithNextToken(NextTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue