AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
CopyInterval.h
1
6#pragma once
7#include <aws/dlm/DLM_EXPORTS.h>
8#include <aws/dlm/model/CopyIntervalUnitValues.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace DLM {
20namespace Model {
21
29 public:
30 AWS_DLM_API CopyInterval() = default;
34
36
40 inline int GetInterval() const { return m_interval; }
41 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
42 inline void SetInterval(int value) {
43 m_intervalHasBeenSet = true;
44 m_interval = value;
45 }
46 inline CopyInterval& WithInterval(int value) {
47 SetInterval(value);
48 return *this;
49 }
51
53
58 inline CopyIntervalUnitValues GetIntervalUnit() const { return m_intervalUnit; }
59 inline bool IntervalUnitHasBeenSet() const { return m_intervalUnitHasBeenSet; }
61 m_intervalUnitHasBeenSet = true;
62 m_intervalUnit = value;
63 }
65 SetIntervalUnit(value);
66 return *this;
67 }
69 private:
70 int m_interval{0};
71
73 bool m_intervalHasBeenSet = false;
74 bool m_intervalUnitHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace DLM
79} // namespace Aws
void SetIntervalUnit(CopyIntervalUnitValues value)
AWS_DLM_API Aws::Utils::Json::JsonValue Jsonize() const
CopyInterval & WithInterval(int value)
AWS_DLM_API CopyInterval(Aws::Utils::Json::JsonView jsonValue)
AWS_DLM_API CopyInterval & operator=(Aws::Utils::Json::JsonView jsonValue)
CopyInterval & WithIntervalUnit(CopyIntervalUnitValues value)
AWS_DLM_API CopyInterval()=default
CopyIntervalUnitValues GetIntervalUnit() const
Aws::Utils::Json::JsonValue JsonValue