AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
LogsSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mq/MQ_EXPORTS.h>
9#include <aws/mq/model/PendingLogs.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace MQ {
21namespace Model {
22
30 public:
31 AWS_MQ_API LogsSummary() = default;
35
37
41 inline bool GetAudit() const { return m_audit; }
42 inline bool AuditHasBeenSet() const { return m_auditHasBeenSet; }
43 inline void SetAudit(bool value) {
44 m_auditHasBeenSet = true;
45 m_audit = value;
46 }
47 inline LogsSummary& WithAudit(bool value) {
48 SetAudit(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetAuditLogGroup() const { return m_auditLogGroup; }
58 inline bool AuditLogGroupHasBeenSet() const { return m_auditLogGroupHasBeenSet; }
59 template <typename AuditLogGroupT = Aws::String>
60 void SetAuditLogGroup(AuditLogGroupT&& value) {
61 m_auditLogGroupHasBeenSet = true;
62 m_auditLogGroup = std::forward<AuditLogGroupT>(value);
63 }
64 template <typename AuditLogGroupT = Aws::String>
65 LogsSummary& WithAuditLogGroup(AuditLogGroupT&& value) {
66 SetAuditLogGroup(std::forward<AuditLogGroupT>(value));
67 return *this;
68 }
70
72
75 inline bool GetGeneral() const { return m_general; }
76 inline bool GeneralHasBeenSet() const { return m_generalHasBeenSet; }
77 inline void SetGeneral(bool value) {
78 m_generalHasBeenSet = true;
79 m_general = value;
80 }
81 inline LogsSummary& WithGeneral(bool value) {
82 SetGeneral(value);
83 return *this;
84 }
86
88
92 inline const Aws::String& GetGeneralLogGroup() const { return m_generalLogGroup; }
93 inline bool GeneralLogGroupHasBeenSet() const { return m_generalLogGroupHasBeenSet; }
94 template <typename GeneralLogGroupT = Aws::String>
95 void SetGeneralLogGroup(GeneralLogGroupT&& value) {
96 m_generalLogGroupHasBeenSet = true;
97 m_generalLogGroup = std::forward<GeneralLogGroupT>(value);
98 }
99 template <typename GeneralLogGroupT = Aws::String>
100 LogsSummary& WithGeneralLogGroup(GeneralLogGroupT&& value) {
101 SetGeneralLogGroup(std::forward<GeneralLogGroupT>(value));
102 return *this;
103 }
105
107
111 inline const PendingLogs& GetPending() const { return m_pending; }
112 inline bool PendingHasBeenSet() const { return m_pendingHasBeenSet; }
113 template <typename PendingT = PendingLogs>
114 void SetPending(PendingT&& value) {
115 m_pendingHasBeenSet = true;
116 m_pending = std::forward<PendingT>(value);
117 }
118 template <typename PendingT = PendingLogs>
119 LogsSummary& WithPending(PendingT&& value) {
120 SetPending(std::forward<PendingT>(value));
121 return *this;
122 }
124 private:
125 bool m_audit{false};
126
127 Aws::String m_auditLogGroup;
128
129 bool m_general{false};
130
131 Aws::String m_generalLogGroup;
132
133 PendingLogs m_pending;
134 bool m_auditHasBeenSet = false;
135 bool m_auditLogGroupHasBeenSet = false;
136 bool m_generalHasBeenSet = false;
137 bool m_generalLogGroupHasBeenSet = false;
138 bool m_pendingHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace MQ
143} // namespace Aws
const PendingLogs & GetPending() const
AWS_MQ_API LogsSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPending(PendingT &&value)
AWS_MQ_API LogsSummary(Aws::Utils::Json::JsonView jsonValue)
LogsSummary & WithGeneralLogGroup(GeneralLogGroupT &&value)
bool AuditLogGroupHasBeenSet() const
Definition LogsSummary.h:58
const Aws::String & GetAuditLogGroup() const
Definition LogsSummary.h:57
bool GeneralLogGroupHasBeenSet() const
Definition LogsSummary.h:93
void SetGeneralLogGroup(GeneralLogGroupT &&value)
Definition LogsSummary.h:95
LogsSummary & WithAuditLogGroup(AuditLogGroupT &&value)
Definition LogsSummary.h:65
void SetGeneral(bool value)
Definition LogsSummary.h:77
LogsSummary & WithGeneral(bool value)
Definition LogsSummary.h:81
void SetAudit(bool value)
Definition LogsSummary.h:43
LogsSummary & WithPending(PendingT &&value)
void SetAuditLogGroup(AuditLogGroupT &&value)
Definition LogsSummary.h:60
LogsSummary & WithAudit(bool value)
Definition LogsSummary.h:47
AWS_MQ_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MQ_API LogsSummary()=default
const Aws::String & GetGeneralLogGroup() const
Definition LogsSummary.h:92
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue