AWS SDK for C++

AWS SDK for C++ Version 1.11.694

Loading...
Searching...
No Matches
RollingInterval.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/application-signals/model/DurationUnit.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ApplicationSignals {
20namespace Model {
21
29 public:
30 AWS_APPLICATIONSIGNALS_API RollingInterval() = default;
31 AWS_APPLICATIONSIGNALS_API RollingInterval(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APPLICATIONSIGNALS_API RollingInterval& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline DurationUnit GetDurationUnit() const { return m_durationUnit; }
40 inline bool DurationUnitHasBeenSet() const { return m_durationUnitHasBeenSet; }
41 inline void SetDurationUnit(DurationUnit value) {
42 m_durationUnitHasBeenSet = true;
43 m_durationUnit = value;
44 }
46 SetDurationUnit(value);
47 return *this;
48 }
50
52
57 inline int GetDuration() const { return m_duration; }
58 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
59 inline void SetDuration(int value) {
60 m_durationHasBeenSet = true;
61 m_duration = value;
62 }
63 inline RollingInterval& WithDuration(int value) {
64 SetDuration(value);
65 return *this;
66 }
68 private:
69 DurationUnit m_durationUnit{DurationUnit::NOT_SET};
70 bool m_durationUnitHasBeenSet = false;
71
72 int m_duration{0};
73 bool m_durationHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace ApplicationSignals
78} // namespace Aws
RollingInterval & WithDurationUnit(DurationUnit value)
AWS_APPLICATIONSIGNALS_API RollingInterval & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONSIGNALS_API RollingInterval()=default
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPLICATIONSIGNALS_API RollingInterval(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue