AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
TrendsMetricsResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9#include <aws/securityhub/model/TrendsValues.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SecurityHub {
21namespace Model {
22
30 public:
31 AWS_SECURITYHUB_API TrendsMetricsResult() = default;
32 AWS_SECURITYHUB_API TrendsMetricsResult(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
41 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
42 template <typename TimestampT = Aws::Utils::DateTime>
43 void SetTimestamp(TimestampT&& value) {
44 m_timestampHasBeenSet = true;
45 m_timestamp = std::forward<TimestampT>(value);
46 }
47 template <typename TimestampT = Aws::Utils::DateTime>
48 TrendsMetricsResult& WithTimestamp(TimestampT&& value) {
49 SetTimestamp(std::forward<TimestampT>(value));
50 return *this;
51 }
53
55
59 inline const TrendsValues& GetTrendsValues() const { return m_trendsValues; }
60 inline bool TrendsValuesHasBeenSet() const { return m_trendsValuesHasBeenSet; }
61 template <typename TrendsValuesT = TrendsValues>
62 void SetTrendsValues(TrendsValuesT&& value) {
63 m_trendsValuesHasBeenSet = true;
64 m_trendsValues = std::forward<TrendsValuesT>(value);
65 }
66 template <typename TrendsValuesT = TrendsValues>
67 TrendsMetricsResult& WithTrendsValues(TrendsValuesT&& value) {
68 SetTrendsValues(std::forward<TrendsValuesT>(value));
69 return *this;
70 }
72 private:
73 Aws::Utils::DateTime m_timestamp{};
74
75 TrendsValues m_trendsValues;
76 bool m_timestampHasBeenSet = false;
77 bool m_trendsValuesHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace SecurityHub
82} // namespace Aws
Aws::Utils::Json::JsonValue JsonValue