AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ApplicationSignals
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_APPLICATIONSIGNALS_API RollingInterval();
36 AWS_APPLICATIONSIGNALS_API RollingInterval(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPLICATIONSIGNALS_API RollingInterval& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const DurationUnit& GetDurationUnit() const{ return m_durationUnit; }
46 inline bool DurationUnitHasBeenSet() const { return m_durationUnitHasBeenSet; }
47 inline void SetDurationUnit(const DurationUnit& value) { m_durationUnitHasBeenSet = true; m_durationUnit = value; }
48 inline void SetDurationUnit(DurationUnit&& value) { m_durationUnitHasBeenSet = true; m_durationUnit = std::move(value); }
49 inline RollingInterval& WithDurationUnit(const DurationUnit& value) { SetDurationUnit(value); return *this;}
50 inline RollingInterval& WithDurationUnit(DurationUnit&& value) { SetDurationUnit(std::move(value)); return *this;}
52
54
59 inline int GetDuration() const{ return m_duration; }
60 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
61 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
62 inline RollingInterval& WithDuration(int value) { SetDuration(value); return *this;}
64 private:
65
66 DurationUnit m_durationUnit;
67 bool m_durationUnitHasBeenSet = false;
68
69 int m_duration;
70 bool m_durationHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace ApplicationSignals
75} // namespace Aws
AWS_APPLICATIONSIGNALS_API RollingInterval()
RollingInterval & WithDurationUnit(const DurationUnit &value)
AWS_APPLICATIONSIGNALS_API RollingInterval & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
RollingInterval & WithDurationUnit(DurationUnit &&value)
AWS_APPLICATIONSIGNALS_API RollingInterval(Aws::Utils::Json::JsonView jsonValue)
void SetDurationUnit(const DurationUnit &value)
Aws::Utils::Json::JsonValue JsonValue