AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SuppressionPeriod.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/logs/model/SuppressionUnit.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CloudWatchLogs {
20namespace Model {
21
29 public:
30 AWS_CLOUDWATCHLOGS_API SuppressionPeriod() = default;
31 AWS_CLOUDWATCHLOGS_API SuppressionPeriod(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CLOUDWATCHLOGS_API SuppressionPeriod& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline int GetValue() const { return m_value; }
41 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
42 inline void SetValue(int value) {
43 m_valueHasBeenSet = true;
44 m_value = value;
45 }
46 inline SuppressionPeriod& WithValue(int value) {
47 SetValue(value);
48 return *this;
49 }
51
53
57 inline SuppressionUnit GetSuppressionUnit() const { return m_suppressionUnit; }
58 inline bool SuppressionUnitHasBeenSet() const { return m_suppressionUnitHasBeenSet; }
60 m_suppressionUnitHasBeenSet = true;
61 m_suppressionUnit = value;
62 }
64 SetSuppressionUnit(value);
65 return *this;
66 }
68 private:
69 int m_value{0};
70
72 bool m_valueHasBeenSet = false;
73 bool m_suppressionUnitHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace CloudWatchLogs
78} // namespace Aws
SuppressionPeriod & WithSuppressionUnit(SuppressionUnit value)
AWS_CLOUDWATCHLOGS_API SuppressionPeriod()=default
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDWATCHLOGS_API SuppressionPeriod & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHLOGS_API SuppressionPeriod(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue