AWS SDK for C++

AWS SDK for C++ Version 1.11.852

Loading...
Searching...
No Matches
InstrumentationStatusEvent.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/application-signals/model/InstrumentationErrorCause.h>
9#include <aws/core/utils/DateTime.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ApplicationSignals {
21namespace Model {
22
31 public:
32 AWS_APPLICATIONSIGNALS_API InstrumentationStatusEvent() = default;
33 AWS_APPLICATIONSIGNALS_API InstrumentationStatusEvent(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPLICATIONSIGNALS_API InstrumentationStatusEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Utils::DateTime& GetTime() const { return m_time; }
42 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
43 template <typename TimeT = Aws::Utils::DateTime>
44 void SetTime(TimeT&& value) {
45 m_timeHasBeenSet = true;
46 m_time = std::forward<TimeT>(value);
47 }
48 template <typename TimeT = Aws::Utils::DateTime>
50 SetTime(std::forward<TimeT>(value));
51 return *this;
52 }
54
56
59 inline InstrumentationErrorCause GetErrorCause() const { return m_errorCause; }
60 inline bool ErrorCauseHasBeenSet() const { return m_errorCauseHasBeenSet; }
62 m_errorCauseHasBeenSet = true;
63 m_errorCause = value;
64 }
66 SetErrorCause(value);
67 return *this;
68 }
70 private:
71 Aws::Utils::DateTime m_time{};
72
74 bool m_timeHasBeenSet = false;
75 bool m_errorCauseHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace ApplicationSignals
80} // namespace Aws
InstrumentationStatusEvent & WithErrorCause(InstrumentationErrorCause value)
AWS_APPLICATIONSIGNALS_API InstrumentationStatusEvent()=default
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPLICATIONSIGNALS_API InstrumentationStatusEvent(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONSIGNALS_API InstrumentationStatusEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue