AWS SDK for C++

AWS SDK for C++ Version 1.11.718

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/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSMap.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 GetServiceResult() = default;
32
34
37 inline const Service& GetService() const { return m_service; }
38 template <typename ServiceT = Service>
39 void SetService(ServiceT&& value) {
40 m_serviceHasBeenSet = true;
41 m_service = std::forward<ServiceT>(value);
42 }
43 template <typename ServiceT = Service>
44 GetServiceResult& WithService(ServiceT&& value) {
45 SetService(std::forward<ServiceT>(value));
46 return *this;
47 }
49
51
58 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
59 template <typename StartTimeT = Aws::Utils::DateTime>
60 void SetStartTime(StartTimeT&& value) {
61 m_startTimeHasBeenSet = true;
62 m_startTime = std::forward<StartTimeT>(value);
63 }
64 template <typename StartTimeT = Aws::Utils::DateTime>
65 GetServiceResult& WithStartTime(StartTimeT&& value) {
66 SetStartTime(std::forward<StartTimeT>(value));
67 return *this;
68 }
70
72
79 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
80 template <typename EndTimeT = Aws::Utils::DateTime>
81 void SetEndTime(EndTimeT&& value) {
82 m_endTimeHasBeenSet = true;
83 m_endTime = std::forward<EndTimeT>(value);
84 }
85 template <typename EndTimeT = Aws::Utils::DateTime>
86 GetServiceResult& WithEndTime(EndTimeT&& value) {
87 SetEndTime(std::forward<EndTimeT>(value));
88 return *this;
89 }
91
93
100 inline const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& GetLogGroupReferences() const { return m_logGroupReferences; }
101 template <typename LogGroupReferencesT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
102 void SetLogGroupReferences(LogGroupReferencesT&& value) {
103 m_logGroupReferencesHasBeenSet = true;
104 m_logGroupReferences = std::forward<LogGroupReferencesT>(value);
105 }
106 template <typename LogGroupReferencesT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
107 GetServiceResult& WithLogGroupReferences(LogGroupReferencesT&& value) {
108 SetLogGroupReferences(std::forward<LogGroupReferencesT>(value));
109 return *this;
110 }
111 template <typename LogGroupReferencesT = Aws::Map<Aws::String, Aws::String>>
112 GetServiceResult& AddLogGroupReferences(LogGroupReferencesT&& value) {
113 m_logGroupReferencesHasBeenSet = true;
114 m_logGroupReferences.emplace_back(std::forward<LogGroupReferencesT>(value));
115 return *this;
116 }
118
120
121 inline const Aws::String& GetRequestId() const { return m_requestId; }
122 template <typename RequestIdT = Aws::String>
123 void SetRequestId(RequestIdT&& value) {
124 m_requestIdHasBeenSet = true;
125 m_requestId = std::forward<RequestIdT>(value);
126 }
127 template <typename RequestIdT = Aws::String>
128 GetServiceResult& WithRequestId(RequestIdT&& value) {
129 SetRequestId(std::forward<RequestIdT>(value));
130 return *this;
131 }
133 private:
134 Service m_service;
135
136 Aws::Utils::DateTime m_startTime{};
137
138 Aws::Utils::DateTime m_endTime{};
139
141
142 Aws::String m_requestId;
143 bool m_serviceHasBeenSet = false;
144 bool m_startTimeHasBeenSet = false;
145 bool m_endTimeHasBeenSet = false;
146 bool m_logGroupReferencesHasBeenSet = false;
147 bool m_requestIdHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace ApplicationSignals
152} // 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)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue