AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
PredictorEvent.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/forecast/ForecastService_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ForecastService {
21namespace Model {
22
30 public:
31 AWS_FORECASTSERVICE_API PredictorEvent() = default;
32 AWS_FORECASTSERVICE_API PredictorEvent(Aws::Utils::Json::JsonView jsonValue);
33 AWS_FORECASTSERVICE_API PredictorEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
43 inline const Aws::String& GetDetail() const { return m_detail; }
44 inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; }
45 template <typename DetailT = Aws::String>
46 void SetDetail(DetailT&& value) {
47 m_detailHasBeenSet = true;
48 m_detail = std::forward<DetailT>(value);
49 }
50 template <typename DetailT = Aws::String>
51 PredictorEvent& WithDetail(DetailT&& value) {
52 SetDetail(std::forward<DetailT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Utils::DateTime& GetDatetime() const { return m_datetime; }
62 inline bool DatetimeHasBeenSet() const { return m_datetimeHasBeenSet; }
63 template <typename DatetimeT = Aws::Utils::DateTime>
64 void SetDatetime(DatetimeT&& value) {
65 m_datetimeHasBeenSet = true;
66 m_datetime = std::forward<DatetimeT>(value);
67 }
68 template <typename DatetimeT = Aws::Utils::DateTime>
69 PredictorEvent& WithDatetime(DatetimeT&& value) {
70 SetDatetime(std::forward<DatetimeT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_detail;
76
77 Aws::Utils::DateTime m_datetime{};
78 bool m_detailHasBeenSet = false;
79 bool m_datetimeHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace ForecastService
84} // namespace Aws
AWS_FORECASTSERVICE_API PredictorEvent(Aws::Utils::Json::JsonView jsonValue)
AWS_FORECASTSERVICE_API PredictorEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
PredictorEvent & WithDetail(DetailT &&value)
AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetDatetime() const
PredictorEvent & WithDatetime(DatetimeT &&value)
AWS_FORECASTSERVICE_API PredictorEvent()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue