AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
DurationRange.h
1
6#pragma once
7#include <aws/inspector/Inspector_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace Inspector {
17namespace Model {
18
26 public:
27 AWS_INSPECTOR_API DurationRange() = default;
28 AWS_INSPECTOR_API DurationRange(Aws::Utils::Json::JsonView jsonValue);
29 AWS_INSPECTOR_API DurationRange& operator=(Aws::Utils::Json::JsonView jsonValue);
30 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline int GetMinSeconds() const { return m_minSeconds; }
37 inline bool MinSecondsHasBeenSet() const { return m_minSecondsHasBeenSet; }
38 inline void SetMinSeconds(int value) {
39 m_minSecondsHasBeenSet = true;
40 m_minSeconds = value;
41 }
42 inline DurationRange& WithMinSeconds(int value) {
43 SetMinSeconds(value);
44 return *this;
45 }
47
49
53 inline int GetMaxSeconds() const { return m_maxSeconds; }
54 inline bool MaxSecondsHasBeenSet() const { return m_maxSecondsHasBeenSet; }
55 inline void SetMaxSeconds(int value) {
56 m_maxSecondsHasBeenSet = true;
57 m_maxSeconds = value;
58 }
59 inline DurationRange& WithMaxSeconds(int value) {
60 SetMaxSeconds(value);
61 return *this;
62 }
64 private:
65 int m_minSeconds{0};
66
67 int m_maxSeconds{0};
68 bool m_minSecondsHasBeenSet = false;
69 bool m_maxSecondsHasBeenSet = false;
70};
71
72} // namespace Model
73} // namespace Inspector
74} // namespace Aws
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
DurationRange & WithMaxSeconds(int value)
AWS_INSPECTOR_API DurationRange()=default
AWS_INSPECTOR_API DurationRange(Aws::Utils::Json::JsonView jsonValue)
DurationRange & WithMinSeconds(int value)
AWS_INSPECTOR_API DurationRange & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue