AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
ArchiveDistribution.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace GuardDuty {
17namespace Model {
18
26 public:
27 AWS_GUARDDUTY_API ArchiveDistribution() = default;
28 AWS_GUARDDUTY_API ArchiveDistribution(Aws::Utils::Json::JsonView jsonValue);
30 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline long long GetArchivedCount() const { return m_archivedCount; }
37 inline bool ArchivedCountHasBeenSet() const { return m_archivedCountHasBeenSet; }
38 inline void SetArchivedCount(long long value) {
39 m_archivedCountHasBeenSet = true;
40 m_archivedCount = value;
41 }
42 inline ArchiveDistribution& WithArchivedCount(long long value) {
43 SetArchivedCount(value);
44 return *this;
45 }
47
49
52 inline long long GetUnarchivedCount() const { return m_unarchivedCount; }
53 inline bool UnarchivedCountHasBeenSet() const { return m_unarchivedCountHasBeenSet; }
54 inline void SetUnarchivedCount(long long value) {
55 m_unarchivedCountHasBeenSet = true;
56 m_unarchivedCount = value;
57 }
58 inline ArchiveDistribution& WithUnarchivedCount(long long value) {
59 SetUnarchivedCount(value);
60 return *this;
61 }
63
65
68 inline double GetArchivedPercentage() const { return m_archivedPercentage; }
69 inline bool ArchivedPercentageHasBeenSet() const { return m_archivedPercentageHasBeenSet; }
70 inline void SetArchivedPercentage(double value) {
71 m_archivedPercentageHasBeenSet = true;
72 m_archivedPercentage = value;
73 }
76 return *this;
77 }
79
81
84 inline double GetUnarchivedPercentage() const { return m_unarchivedPercentage; }
85 inline bool UnarchivedPercentageHasBeenSet() const { return m_unarchivedPercentageHasBeenSet; }
86 inline void SetUnarchivedPercentage(double value) {
87 m_unarchivedPercentageHasBeenSet = true;
88 m_unarchivedPercentage = value;
89 }
92 return *this;
93 }
95 private:
96 long long m_archivedCount{0};
97
98 long long m_unarchivedCount{0};
99
100 double m_archivedPercentage{0.0};
101
102 double m_unarchivedPercentage{0.0};
103 bool m_archivedCountHasBeenSet = false;
104 bool m_unarchivedCountHasBeenSet = false;
105 bool m_archivedPercentageHasBeenSet = false;
106 bool m_unarchivedPercentageHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace GuardDuty
111} // namespace Aws
ArchiveDistribution & WithArchivedPercentage(double value)
AWS_GUARDDUTY_API ArchiveDistribution & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GUARDDUTY_API ArchiveDistribution()=default
ArchiveDistribution & WithArchivedCount(long long value)
ArchiveDistribution & WithUnarchivedPercentage(double value)
ArchiveDistribution & WithUnarchivedCount(long long value)
AWS_GUARDDUTY_API ArchiveDistribution(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue