AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
GetServiceResult.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/application-signals/model/Service.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace ApplicationSignals {
27namespace Model {
29 public:
30 AWS_APPLICATIONSIGNALS_API GetServiceResult() = default;
33
35
38 inline const Service& GetService() const { return m_service; }
39 template <typename ServiceT = Service>
40 void SetService(ServiceT&& value) {
41 m_serviceHasBeenSet = true;
42 m_service = std::forward<ServiceT>(value);
43 }
44 template <typename ServiceT = Service>
45 GetServiceResult& WithService(ServiceT&& value) {
46 SetService(std::forward<ServiceT>(value));
47 return *this;
48 }
50
52
59 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
60 template <typename StartTimeT = Aws::Utils::DateTime>
61 void SetStartTime(StartTimeT&& value) {
62 m_startTimeHasBeenSet = true;
63 m_startTime = std::forward<StartTimeT>(value);
64 }
65 template <typename StartTimeT = Aws::Utils::DateTime>
66 GetServiceResult& WithStartTime(StartTimeT&& value) {
67 SetStartTime(std::forward<StartTimeT>(value));
68 return *this;
69 }
71
73
80 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
81 template <typename EndTimeT = Aws::Utils::DateTime>
82 void SetEndTime(EndTimeT&& value) {
83 m_endTimeHasBeenSet = true;
84 m_endTime = std::forward<EndTimeT>(value);
85 }
86 template <typename EndTimeT = Aws::Utils::DateTime>
87 GetServiceResult& WithEndTime(EndTimeT&& value) {
88 SetEndTime(std::forward<EndTimeT>(value));
89 return *this;
90 }
92
94
101 inline const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& GetLogGroupReferences() const { return m_logGroupReferences; }
102 template <typename LogGroupReferencesT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
103 void SetLogGroupReferences(LogGroupReferencesT&& value) {
104 m_logGroupReferencesHasBeenSet = true;
105 m_logGroupReferences = std::forward<LogGroupReferencesT>(value);
106 }
107 template <typename LogGroupReferencesT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
108 GetServiceResult& WithLogGroupReferences(LogGroupReferencesT&& value) {
109 SetLogGroupReferences(std::forward<LogGroupReferencesT>(value));
110 return *this;
111 }
112 template <typename LogGroupReferencesT = Aws::Map<Aws::String, Aws::String>>
113 GetServiceResult& AddLogGroupReferences(LogGroupReferencesT&& value) {
114 m_logGroupReferencesHasBeenSet = true;
115 m_logGroupReferences.emplace_back(std::forward<LogGroupReferencesT>(value));
116 return *this;
117 }
119
121
122 inline const Aws::String& GetRequestId() const { return m_requestId; }
123 template <typename RequestIdT = Aws::String>
124 void SetRequestId(RequestIdT&& value) {
125 m_requestIdHasBeenSet = true;
126 m_requestId = std::forward<RequestIdT>(value);
127 }
128 template <typename RequestIdT = Aws::String>
129 GetServiceResult& WithRequestId(RequestIdT&& value) {
130 SetRequestId(std::forward<RequestIdT>(value));
131 return *this;
132 }
134 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
135
136 private:
137 Service m_service;
138
139 Aws::Utils::DateTime m_startTime{};
140
141 Aws::Utils::DateTime m_endTime{};
142
144
145 Aws::String m_requestId;
146 Aws::Http::HttpResponseCode m_HttpResponseCode;
147 bool m_serviceHasBeenSet = false;
148 bool m_startTimeHasBeenSet = false;
149 bool m_endTimeHasBeenSet = false;
150 bool m_logGroupReferencesHasBeenSet = false;
151 bool m_requestIdHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace ApplicationSignals
156} // namespace Aws
GetServiceResult & WithStartTime(StartTimeT &&value)
AWS_APPLICATIONSIGNALS_API GetServiceResult()=default
GetServiceResult & WithService(ServiceT &&value)
void SetLogGroupReferences(LogGroupReferencesT &&value)
GetServiceResult & AddLogGroupReferences(LogGroupReferencesT &&value)
GetServiceResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetStartTime() const
GetServiceResult & WithEndTime(EndTimeT &&value)
const Aws::Utils::DateTime & GetEndTime() const
AWS_APPLICATIONSIGNALS_API GetServiceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetServiceResult & WithLogGroupReferences(LogGroupReferencesT &&value)
const Aws::Vector< Aws::Map< Aws::String, Aws::String > > & GetLogGroupReferences() const
AWS_APPLICATIONSIGNALS_API GetServiceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() 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