AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DurationRange.h
1
6#pragma once
7#include <aws/inspector/Inspector_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Inspector
20{
21namespace Model
22{
23
31 {
32 public:
33 AWS_INSPECTOR_API DurationRange();
34 AWS_INSPECTOR_API DurationRange(Aws::Utils::Json::JsonView jsonValue);
35 AWS_INSPECTOR_API DurationRange& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
37
38
40
43 inline int GetMinSeconds() const{ return m_minSeconds; }
44 inline bool MinSecondsHasBeenSet() const { return m_minSecondsHasBeenSet; }
45 inline void SetMinSeconds(int value) { m_minSecondsHasBeenSet = true; m_minSeconds = value; }
46 inline DurationRange& WithMinSeconds(int value) { SetMinSeconds(value); return *this;}
48
50
54 inline int GetMaxSeconds() const{ return m_maxSeconds; }
55 inline bool MaxSecondsHasBeenSet() const { return m_maxSecondsHasBeenSet; }
56 inline void SetMaxSeconds(int value) { m_maxSecondsHasBeenSet = true; m_maxSeconds = value; }
57 inline DurationRange& WithMaxSeconds(int value) { SetMaxSeconds(value); return *this;}
59 private:
60
61 int m_minSeconds;
62 bool m_minSecondsHasBeenSet = false;
63
64 int m_maxSeconds;
65 bool m_maxSecondsHasBeenSet = false;
66 };
67
68} // namespace Model
69} // namespace Inspector
70} // namespace Aws
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
DurationRange & WithMaxSeconds(int value)
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