AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
ListServicesResult.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/application-signals/model/ServiceSummary.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace ApplicationSignals {
26namespace Model {
28 public:
29 AWS_APPLICATIONSIGNALS_API ListServicesResult() = default;
32
34
41 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
42 template <typename StartTimeT = Aws::Utils::DateTime>
43 void SetStartTime(StartTimeT&& value) {
44 m_startTimeHasBeenSet = true;
45 m_startTime = std::forward<StartTimeT>(value);
46 }
47 template <typename StartTimeT = Aws::Utils::DateTime>
48 ListServicesResult& WithStartTime(StartTimeT&& value) {
49 SetStartTime(std::forward<StartTimeT>(value));
50 return *this;
51 }
53
55
62 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
63 template <typename EndTimeT = Aws::Utils::DateTime>
64 void SetEndTime(EndTimeT&& value) {
65 m_endTimeHasBeenSet = true;
66 m_endTime = std::forward<EndTimeT>(value);
67 }
68 template <typename EndTimeT = Aws::Utils::DateTime>
69 ListServicesResult& WithEndTime(EndTimeT&& value) {
70 SetEndTime(std::forward<EndTimeT>(value));
71 return *this;
72 }
74
76
81 inline const Aws::Vector<ServiceSummary>& GetServiceSummaries() const { return m_serviceSummaries; }
82 template <typename ServiceSummariesT = Aws::Vector<ServiceSummary>>
83 void SetServiceSummaries(ServiceSummariesT&& value) {
84 m_serviceSummariesHasBeenSet = true;
85 m_serviceSummaries = std::forward<ServiceSummariesT>(value);
86 }
87 template <typename ServiceSummariesT = Aws::Vector<ServiceSummary>>
88 ListServicesResult& WithServiceSummaries(ServiceSummariesT&& value) {
89 SetServiceSummaries(std::forward<ServiceSummariesT>(value));
90 return *this;
91 }
92 template <typename ServiceSummariesT = ServiceSummary>
93 ListServicesResult& AddServiceSummaries(ServiceSummariesT&& value) {
94 m_serviceSummariesHasBeenSet = true;
95 m_serviceSummaries.emplace_back(std::forward<ServiceSummariesT>(value));
96 return *this;
97 }
99
101
105 inline const Aws::String& GetNextToken() const { return m_nextToken; }
106 template <typename NextTokenT = Aws::String>
107 void SetNextToken(NextTokenT&& value) {
108 m_nextTokenHasBeenSet = true;
109 m_nextToken = std::forward<NextTokenT>(value);
110 }
111 template <typename NextTokenT = Aws::String>
112 ListServicesResult& WithNextToken(NextTokenT&& value) {
113 SetNextToken(std::forward<NextTokenT>(value));
114 return *this;
115 }
117
119
120 inline const Aws::String& GetRequestId() const { return m_requestId; }
121 template <typename RequestIdT = Aws::String>
122 void SetRequestId(RequestIdT&& value) {
123 m_requestIdHasBeenSet = true;
124 m_requestId = std::forward<RequestIdT>(value);
125 }
126 template <typename RequestIdT = Aws::String>
127 ListServicesResult& WithRequestId(RequestIdT&& value) {
128 SetRequestId(std::forward<RequestIdT>(value));
129 return *this;
130 }
132 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
133
134 private:
135 Aws::Utils::DateTime m_startTime{};
136
137 Aws::Utils::DateTime m_endTime{};
138
139 Aws::Vector<ServiceSummary> m_serviceSummaries;
140
141 Aws::String m_nextToken;
142
143 Aws::String m_requestId;
144 Aws::Http::HttpResponseCode m_HttpResponseCode;
145 bool m_startTimeHasBeenSet = false;
146 bool m_endTimeHasBeenSet = false;
147 bool m_serviceSummariesHasBeenSet = false;
148 bool m_nextTokenHasBeenSet = false;
149 bool m_requestIdHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace ApplicationSignals
154} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_APPLICATIONSIGNALS_API ListServicesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListServicesResult & WithNextToken(NextTokenT &&value)
ListServicesResult & WithStartTime(StartTimeT &&value)
ListServicesResult & WithRequestId(RequestIdT &&value)
ListServicesResult & AddServiceSummaries(ServiceSummariesT &&value)
const Aws::Utils::DateTime & GetEndTime() const
ListServicesResult & WithServiceSummaries(ServiceSummariesT &&value)
ListServicesResult & WithEndTime(EndTimeT &&value)
const Aws::Vector< ServiceSummary > & GetServiceSummaries() const
AWS_APPLICATIONSIGNALS_API ListServicesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_APPLICATIONSIGNALS_API ListServicesResult()=default
const Aws::Utils::DateTime & GetStartTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue