AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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#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 CloudWatchLogs
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CLOUDWATCHLOGS_API SuppressionPeriod();
36 AWS_CLOUDWATCHLOGS_API SuppressionPeriod(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CLOUDWATCHLOGS_API SuppressionPeriod& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline int GetValue() const{ return m_value; }
47 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
48 inline void SetValue(int value) { m_valueHasBeenSet = true; m_value = value; }
49 inline SuppressionPeriod& WithValue(int value) { SetValue(value); return *this;}
51
53
57 inline const SuppressionUnit& GetSuppressionUnit() const{ return m_suppressionUnit; }
58 inline bool SuppressionUnitHasBeenSet() const { return m_suppressionUnitHasBeenSet; }
59 inline void SetSuppressionUnit(const SuppressionUnit& value) { m_suppressionUnitHasBeenSet = true; m_suppressionUnit = value; }
60 inline void SetSuppressionUnit(SuppressionUnit&& value) { m_suppressionUnitHasBeenSet = true; m_suppressionUnit = std::move(value); }
61 inline SuppressionPeriod& WithSuppressionUnit(const SuppressionUnit& value) { SetSuppressionUnit(value); return *this;}
62 inline SuppressionPeriod& WithSuppressionUnit(SuppressionUnit&& value) { SetSuppressionUnit(std::move(value)); return *this;}
64 private:
65
66 int m_value;
67 bool m_valueHasBeenSet = false;
68
69 SuppressionUnit m_suppressionUnit;
70 bool m_suppressionUnitHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace CloudWatchLogs
75} // namespace Aws
SuppressionPeriod & WithSuppressionUnit(SuppressionUnit &&value)
const SuppressionUnit & GetSuppressionUnit() const
SuppressionPeriod & WithSuppressionUnit(const SuppressionUnit &value)
void SetSuppressionUnit(SuppressionUnit &&value)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDWATCHLOGS_API SuppressionPeriod & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSuppressionUnit(const SuppressionUnit &value)
AWS_CLOUDWATCHLOGS_API SuppressionPeriod(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue