AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
SourceLogsConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/observabilityadmin/ObservabilityAdmin_EXPORTS.h>
9#include <aws/observabilityadmin/model/EncryptedLogGroupStrategy.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ObservabilityAdmin {
21namespace Model {
22
30 public:
31 AWS_OBSERVABILITYADMIN_API SourceLogsConfiguration() = default;
32 AWS_OBSERVABILITYADMIN_API SourceLogsConfiguration(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OBSERVABILITYADMIN_API SourceLogsConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetLogGroupSelectionCriteria() const { return m_logGroupSelectionCriteria; }
42 inline bool LogGroupSelectionCriteriaHasBeenSet() const { return m_logGroupSelectionCriteriaHasBeenSet; }
43 template <typename LogGroupSelectionCriteriaT = Aws::String>
44 void SetLogGroupSelectionCriteria(LogGroupSelectionCriteriaT&& value) {
45 m_logGroupSelectionCriteriaHasBeenSet = true;
46 m_logGroupSelectionCriteria = std::forward<LogGroupSelectionCriteriaT>(value);
47 }
48 template <typename LogGroupSelectionCriteriaT = Aws::String>
49 SourceLogsConfiguration& WithLogGroupSelectionCriteria(LogGroupSelectionCriteriaT&& value) {
50 SetLogGroupSelectionCriteria(std::forward<LogGroupSelectionCriteriaT>(value));
51 return *this;
52 }
54
56
65 inline const Aws::String& GetDataSourceSelectionCriteria() const { return m_dataSourceSelectionCriteria; }
66 inline bool DataSourceSelectionCriteriaHasBeenSet() const { return m_dataSourceSelectionCriteriaHasBeenSet; }
67 template <typename DataSourceSelectionCriteriaT = Aws::String>
68 void SetDataSourceSelectionCriteria(DataSourceSelectionCriteriaT&& value) {
69 m_dataSourceSelectionCriteriaHasBeenSet = true;
70 m_dataSourceSelectionCriteria = std::forward<DataSourceSelectionCriteriaT>(value);
71 }
72 template <typename DataSourceSelectionCriteriaT = Aws::String>
73 SourceLogsConfiguration& WithDataSourceSelectionCriteria(DataSourceSelectionCriteriaT&& value) {
74 SetDataSourceSelectionCriteria(std::forward<DataSourceSelectionCriteriaT>(value));
75 return *this;
76 }
78
80
86 inline EncryptedLogGroupStrategy GetEncryptedLogGroupStrategy() const { return m_encryptedLogGroupStrategy; }
87 inline bool EncryptedLogGroupStrategyHasBeenSet() const { return m_encryptedLogGroupStrategyHasBeenSet; }
89 m_encryptedLogGroupStrategyHasBeenSet = true;
90 m_encryptedLogGroupStrategy = value;
91 }
94 return *this;
95 }
97 private:
98 Aws::String m_logGroupSelectionCriteria;
99
100 Aws::String m_dataSourceSelectionCriteria;
101
103 bool m_logGroupSelectionCriteriaHasBeenSet = false;
104 bool m_dataSourceSelectionCriteriaHasBeenSet = false;
105 bool m_encryptedLogGroupStrategyHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace ObservabilityAdmin
110} // namespace Aws
AWS_OBSERVABILITYADMIN_API SourceLogsConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLogGroupSelectionCriteria(LogGroupSelectionCriteriaT &&value)
SourceLogsConfiguration & WithDataSourceSelectionCriteria(DataSourceSelectionCriteriaT &&value)
AWS_OBSERVABILITYADMIN_API SourceLogsConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
SourceLogsConfiguration & WithLogGroupSelectionCriteria(LogGroupSelectionCriteriaT &&value)
void SetDataSourceSelectionCriteria(DataSourceSelectionCriteriaT &&value)
AWS_OBSERVABILITYADMIN_API SourceLogsConfiguration()=default
SourceLogsConfiguration & WithEncryptedLogGroupStrategy(EncryptedLogGroupStrategy value)
void SetEncryptedLogGroupStrategy(EncryptedLogGroupStrategy value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue