AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace ApplicationSignals
28{
29namespace Model
30{
32 {
33 public:
34 AWS_APPLICATIONSIGNALS_API GetServiceResult() = default;
37
38
40
43 inline const Service& GetService() const { return m_service; }
44 template<typename ServiceT = Service>
45 void SetService(ServiceT&& value) { m_serviceHasBeenSet = true; m_service = std::forward<ServiceT>(value); }
46 template<typename ServiceT = Service>
47 GetServiceResult& WithService(ServiceT&& value) { SetService(std::forward<ServiceT>(value)); return *this;}
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) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
61 template<typename StartTimeT = Aws::Utils::DateTime>
62 GetServiceResult& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
64
66
73 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
74 template<typename EndTimeT = Aws::Utils::DateTime>
75 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
76 template<typename EndTimeT = Aws::Utils::DateTime>
77 GetServiceResult& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
79
81
88 inline const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& GetLogGroupReferences() const { return m_logGroupReferences; }
89 template<typename LogGroupReferencesT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
90 void SetLogGroupReferences(LogGroupReferencesT&& value) { m_logGroupReferencesHasBeenSet = true; m_logGroupReferences = std::forward<LogGroupReferencesT>(value); }
91 template<typename LogGroupReferencesT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
92 GetServiceResult& WithLogGroupReferences(LogGroupReferencesT&& value) { SetLogGroupReferences(std::forward<LogGroupReferencesT>(value)); return *this;}
93 template<typename LogGroupReferencesT = Aws::Map<Aws::String, Aws::String>>
94 GetServiceResult& AddLogGroupReferences(LogGroupReferencesT&& value) { m_logGroupReferencesHasBeenSet = true; m_logGroupReferences.emplace_back(std::forward<LogGroupReferencesT>(value)); return *this; }
96
98
99 inline const Aws::String& GetRequestId() const { return m_requestId; }
100 template<typename RequestIdT = Aws::String>
101 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
102 template<typename RequestIdT = Aws::String>
103 GetServiceResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
105 private:
106
107 Service m_service;
108 bool m_serviceHasBeenSet = false;
109
110 Aws::Utils::DateTime m_startTime{};
111 bool m_startTimeHasBeenSet = false;
112
113 Aws::Utils::DateTime m_endTime{};
114 bool m_endTimeHasBeenSet = false;
115
117 bool m_logGroupReferencesHasBeenSet = false;
118
119 Aws::String m_requestId;
120 bool m_requestIdHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace ApplicationSignals
125} // 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